Video Stitcher V1 API - Class Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client (v0.2.0)

Reference documentation and code samples for the Video Stitcher V1 API class Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.

Client for the VideoStitcherService service.

Video-On-Demand content stitching API allows you to insert ads into (VoD) video on demand files. You will be able to render custom scrubber bars with highlighted ads, enforce ad policies, allow seamless playback and tracking on native players and monetize content with any standard VMAP compliant ad server.

Inherits

  • Object

Methods

.configure

def self.configure() { |config| ... } -> Client::Configuration

Configure the VideoStitcherService Client class.

See Configuration for a description of the configuration fields.

Yields
  • (config) — Configure the Client client.
Yield Parameter
Example
# Modify the configuration for all VideoStitcherService clients
::Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.configure do |config|
  config.timeout = 10.0
end

#configure

def configure() { |config| ... } -> Client::Configuration

Configure the VideoStitcherService Client instance.

The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.

See Configuration for a description of the configuration fields.

Yields
  • (config) — Configure the Client client.
Yield Parameter

#create_cdn_key

def create_cdn_key(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::CdnKey
def create_cdn_key(parent: nil, cdn_key: nil, cdn_key_id: nil) -> ::Google::Cloud::Video::Stitcher::V1::CdnKey

Creates a new CDN key.

Overloads
def create_cdn_key(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::CdnKey
Pass arguments to create_cdn_key via a request object, either of type CreateCdnKeyRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Video::Stitcher::V1::CreateCdnKeyRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_cdn_key(parent: nil, cdn_key: nil, cdn_key_id: nil) -> ::Google::Cloud::Video::Stitcher::V1::CdnKey
Pass arguments to create_cdn_key via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The project in which the CDN key should be created, in the form of projects/{project_number}/locations/{location}.
  • cdn_key (::Google::Cloud::Video::Stitcher::V1::CdnKey, ::Hash) — Required. The CDN key resource to create.
  • cdn_key_id (::String) — Required. The ID to use for the CDN key, which will become the final component of the CDN key's resource name.

    This value should conform to RFC-1034, which restricts to lower-case letters, numbers, and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.

Yields
  • (response, operation) — Access the result along with the RPC operation
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the RPC is aborted.
Example

Basic example

require "google/cloud/video/stitcher/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Video::Stitcher::V1::CreateCdnKeyRequest.new

# Call the create_cdn_key method.
result = client.create_cdn_key request

# The returned object is of type Google::Cloud::Video::Stitcher::V1::CdnKey.
p result

#create_live_session

def create_live_session(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::LiveSession
def create_live_session(parent: nil, live_session: nil) -> ::Google::Cloud::Video::Stitcher::V1::LiveSession

Creates a new live session.

Overloads
def create_live_session(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::LiveSession
Pass arguments to create_live_session via a request object, either of type CreateLiveSessionRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Video::Stitcher::V1::CreateLiveSessionRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_live_session(parent: nil, live_session: nil) -> ::Google::Cloud::Video::Stitcher::V1::LiveSession
Pass arguments to create_live_session via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The project and location in which the live session should be created, in the form of projects/{project_number}/locations/{location}.
  • live_session (::Google::Cloud::Video::Stitcher::V1::LiveSession, ::Hash) — Required. Parameters for creating a live session.
Yields
  • (response, operation) — Access the result along with the RPC operation
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the RPC is aborted.
Example

Basic example

require "google/cloud/video/stitcher/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Video::Stitcher::V1::CreateLiveSessionRequest.new

# Call the create_live_session method.
result = client.create_live_session request

# The returned object is of type Google::Cloud::Video::Stitcher::V1::LiveSession.
p result

#create_slate

def create_slate(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::Slate
def create_slate(parent: nil, slate_id: nil, slate: nil) -> ::Google::Cloud::Video::Stitcher::V1::Slate

Creates a slate.

Overloads
def create_slate(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::Slate
Pass arguments to create_slate via a request object, either of type CreateSlateRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Video::Stitcher::V1::CreateSlateRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_slate(parent: nil, slate_id: nil, slate: nil) -> ::Google::Cloud::Video::Stitcher::V1::Slate
Pass arguments to create_slate via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The project in which the slate should be created, in the form of projects/{project_number}.
  • slate_id (::String) — Required. The unique identifier for the slate. This value should conform to RFC-1034, which restricts to lower-case letters, numbers, and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.
  • slate (::Google::Cloud::Video::Stitcher::V1::Slate, ::Hash) — Required. The slate to create.
Yields
  • (response, operation) — Access the result along with the RPC operation
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the RPC is aborted.
Example

Basic example

require "google/cloud/video/stitcher/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Video::Stitcher::V1::CreateSlateRequest.new

# Call the create_slate method.
result = client.create_slate request

# The returned object is of type Google::Cloud::Video::Stitcher::V1::Slate.
p result

#create_vod_session

def create_vod_session(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::VodSession
def create_vod_session(parent: nil, vod_session: nil) -> ::Google::Cloud::Video::Stitcher::V1::VodSession

Creates a client side playback VOD session and returns the full tracking and playback metadata of the session.

Overloads
def create_vod_session(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::VodSession
Pass arguments to create_vod_session via a request object, either of type CreateVodSessionRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Video::Stitcher::V1::CreateVodSessionRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_vod_session(parent: nil, vod_session: nil) -> ::Google::Cloud::Video::Stitcher::V1::VodSession
Pass arguments to create_vod_session via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The project and location in which the VOD session should be created, in the form of projects/{project_number}/locations/{location}.
  • vod_session (::Google::Cloud::Video::Stitcher::V1::VodSession, ::Hash) — Required. Parameters for creating a session.
Yields
  • (response, operation) — Access the result along with the RPC operation
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the RPC is aborted.
Example

Basic example

require "google/cloud/video/stitcher/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Video::Stitcher::V1::CreateVodSessionRequest.new

# Call the create_vod_session method.
result = client.create_vod_session request

# The returned object is of type Google::Cloud::Video::Stitcher::V1::VodSession.
p result

#delete_cdn_key

def delete_cdn_key(request, options = nil) -> ::Google::Protobuf::Empty
def delete_cdn_key(name: nil) -> ::Google::Protobuf::Empty

Deletes the specified CDN key.

Overloads
def delete_cdn_key(request, options = nil) -> ::Google::Protobuf::Empty
Pass arguments to delete_cdn_key via a request object, either of type DeleteCdnKeyRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Video::Stitcher::V1::DeleteCdnKeyRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_cdn_key(name: nil) -> ::Google::Protobuf::Empty
Pass arguments to delete_cdn_key via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameter
  • name (::String) — Required. The name of the CDN key to be deleted, in the form of projects/{project_number}/locations/{location}/cdnKeys/{id}.
Yields
  • (response, operation) — Access the result along with the RPC operation
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the RPC is aborted.
Example

Basic example

require "google/cloud/video/stitcher/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Video::Stitcher::V1::DeleteCdnKeyRequest.new

# Call the delete_cdn_key method.
result = client.delete_cdn_key request

# The returned object is of type Google::Protobuf::Empty.
p result

#delete_slate

def delete_slate(request, options = nil) -> ::Google::Protobuf::Empty
def delete_slate(name: nil) -> ::Google::Protobuf::Empty

Deletes the specified slate.

Overloads
def delete_slate(request, options = nil) -> ::Google::Protobuf::Empty
Pass arguments to delete_slate via a request object, either of type DeleteSlateRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Video::Stitcher::V1::DeleteSlateRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_slate(name: nil) -> ::Google::Protobuf::Empty
Pass arguments to delete_slate via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameter
  • name (::String) — Required. The name of the slate to be deleted, in the form of projects/{project_number}/locations/{location}/slates/{id}.
Yields
  • (response, operation) — Access the result along with the RPC operation
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the RPC is aborted.
Example

Basic example

require "google/cloud/video/stitcher/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Video::Stitcher::V1::DeleteSlateRequest.new

# Call the delete_slate method.
result = client.delete_slate request

# The returned object is of type Google::Protobuf::Empty.
p result

#get_cdn_key

def get_cdn_key(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::CdnKey
def get_cdn_key(name: nil) -> ::Google::Cloud::Video::Stitcher::V1::CdnKey

Returns the specified CDN key.

Overloads
def get_cdn_key(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::CdnKey
Pass arguments to get_cdn_key via a request object, either of type GetCdnKeyRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Video::Stitcher::V1::GetCdnKeyRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_cdn_key(name: nil) -> ::Google::Cloud::Video::Stitcher::V1::CdnKey
Pass arguments to get_cdn_key via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameter
  • name (::String) — Required. The name of the CDN key to be retrieved, in the form of projects/{project}/locations/{location}/cdnKeys/{id}.
Yields
  • (response, operation) — Access the result along with the RPC operation
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the RPC is aborted.
Example

Basic example

require "google/cloud/video/stitcher/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Video::Stitcher::V1::GetCdnKeyRequest.new

# Call the get_cdn_key method.
result = client.get_cdn_key request

# The returned object is of type Google::Cloud::Video::Stitcher::V1::CdnKey.
p result

#get_live_ad_tag_detail

def get_live_ad_tag_detail(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::LiveAdTagDetail
def get_live_ad_tag_detail(name: nil) -> ::Google::Cloud::Video::Stitcher::V1::LiveAdTagDetail

Returns the specified ad tag detail for the specified live session.

Overloads
def get_live_ad_tag_detail(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::LiveAdTagDetail
Pass arguments to get_live_ad_tag_detail via a request object, either of type GetLiveAdTagDetailRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Video::Stitcher::V1::GetLiveAdTagDetailRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_live_ad_tag_detail(name: nil) -> ::Google::Cloud::Video::Stitcher::V1::LiveAdTagDetail
Pass arguments to get_live_ad_tag_detail via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameter
  • name (::String) — Required. The resource name in the form of projects/{project}/locations/{location}/liveSessions/{live_session}/liveAdTagDetails/{live_ad_tag_detail}.
Yields
  • (response, operation) — Access the result along with the RPC operation
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the RPC is aborted.
Example

Basic example

require "google/cloud/video/stitcher/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Video::Stitcher::V1::GetLiveAdTagDetailRequest.new

# Call the get_live_ad_tag_detail method.
result = client.get_live_ad_tag_detail request

# The returned object is of type Google::Cloud::Video::Stitcher::V1::LiveAdTagDetail.
p result

#get_live_session

def get_live_session(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::LiveSession
def get_live_session(name: nil) -> ::Google::Cloud::Video::Stitcher::V1::LiveSession

Returns the details for the specified live session.

Overloads
def get_live_session(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::LiveSession
Pass arguments to get_live_session via a request object, either of type GetLiveSessionRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Video::Stitcher::V1::GetLiveSessionRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_live_session(name: nil) -> ::Google::Cloud::Video::Stitcher::V1::LiveSession
Pass arguments to get_live_session via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameter
  • name (::String) — Required. The name of the live session, in the form of projects/{project_number}/locations/{location}/liveSessions/{id}.
Yields
  • (response, operation) — Access the result along with the RPC operation
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the RPC is aborted.
Example

Basic example

require "google/cloud/video/stitcher/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Video::Stitcher::V1::GetLiveSessionRequest.new

# Call the get_live_session method.
result = client.get_live_session request

# The returned object is of type Google::Cloud::Video::Stitcher::V1::LiveSession.
p result

#get_slate

def get_slate(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::Slate
def get_slate(name: nil) -> ::Google::Cloud::Video::Stitcher::V1::Slate

Returns the specified slate.

Overloads
def get_slate(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::Slate
Pass arguments to get_slate via a request object, either of type GetSlateRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Video::Stitcher::V1::GetSlateRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_slate(name: nil) -> ::Google::Cloud::Video::Stitcher::V1::Slate
Pass arguments to get_slate via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameter
  • name (::String) — Required. The name of the slate to be retrieved, of the slate, in the form of projects/{project_number}/locations/{location}/slates/{id}.
Yields
  • (response, operation) — Access the result along with the RPC operation
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the RPC is aborted.
Example

Basic example

require "google/cloud/video/stitcher/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Video::Stitcher::V1::GetSlateRequest.new

# Call the get_slate method.
result = client.get_slate request

# The returned object is of type Google::Cloud::Video::Stitcher::V1::Slate.
p result

#get_vod_ad_tag_detail

def get_vod_ad_tag_detail(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::VodAdTagDetail
def get_vod_ad_tag_detail(name: nil) -> ::Google::Cloud::Video::Stitcher::V1::VodAdTagDetail

Returns the specified ad tag detail for the specified VOD session.

Overloads
def get_vod_ad_tag_detail(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::VodAdTagDetail
Pass arguments to get_vod_ad_tag_detail via a request object, either of type GetVodAdTagDetailRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Video::Stitcher::V1::GetVodAdTagDetailRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_vod_ad_tag_detail(name: nil) -> ::Google::Cloud::Video::Stitcher::V1::VodAdTagDetail
Pass arguments to get_vod_ad_tag_detail via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameter
  • name (::String) — Required. The name of the ad tag detail for the specified VOD session, in the form of projects/{project}/locations/{location}/vodSessions/{vod_session_id}/vodAdTagDetails/{vod_ad_tag_detail}.
Yields
  • (response, operation) — Access the result along with the RPC operation
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the RPC is aborted.
Example

Basic example

require "google/cloud/video/stitcher/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Video::Stitcher::V1::GetVodAdTagDetailRequest.new

# Call the get_vod_ad_tag_detail method.
result = client.get_vod_ad_tag_detail request

# The returned object is of type Google::Cloud::Video::Stitcher::V1::VodAdTagDetail.
p result

#get_vod_session

def get_vod_session(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::VodSession
def get_vod_session(name: nil) -> ::Google::Cloud::Video::Stitcher::V1::VodSession

Returns the full tracking, playback metadata, and relevant ad-ops logs for the specified VOD session.

Overloads
def get_vod_session(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::VodSession
Pass arguments to get_vod_session via a request object, either of type GetVodSessionRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Video::Stitcher::V1::GetVodSessionRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_vod_session(name: nil) -> ::Google::Cloud::Video::Stitcher::V1::VodSession
Pass arguments to get_vod_session via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameter
  • name (::String) — Required. The name of the VOD session to be retrieved, in the form of projects/{project_number}/locations/{location}/vodSessions/{id}.
Yields
  • (response, operation) — Access the result along with the RPC operation
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the RPC is aborted.
Example

Basic example

require "google/cloud/video/stitcher/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Video::Stitcher::V1::GetVodSessionRequest.new

# Call the get_vod_session method.
result = client.get_vod_session request

# The returned object is of type Google::Cloud::Video::Stitcher::V1::VodSession.
p result

#get_vod_stitch_detail

def get_vod_stitch_detail(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::VodStitchDetail
def get_vod_stitch_detail(name: nil) -> ::Google::Cloud::Video::Stitcher::V1::VodStitchDetail

Returns the specified stitching information for the specified VOD session.

Overloads
def get_vod_stitch_detail(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::VodStitchDetail
Pass arguments to get_vod_stitch_detail via a request object, either of type GetVodStitchDetailRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Video::Stitcher::V1::GetVodStitchDetailRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_vod_stitch_detail(name: nil) -> ::Google::Cloud::Video::Stitcher::V1::VodStitchDetail
Pass arguments to get_vod_stitch_detail via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameter
  • name (::String) — Required. The name of the stitch detail in the specified VOD session, in the form of projects/{project}/locations/{location}/vodSessions/{vod_session_id}/vodStitchDetails/{id}.
Yields
  • (response, operation) — Access the result along with the RPC operation
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the RPC is aborted.
Example

Basic example

require "google/cloud/video/stitcher/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Video::Stitcher::V1::GetVodStitchDetailRequest.new

# Call the get_vod_stitch_detail method.
result = client.get_vod_stitch_detail request

# The returned object is of type Google::Cloud::Video::Stitcher::V1::VodStitchDetail.
p result

#initialize

def initialize() { |config| ... } -> Client

Create a new VideoStitcherService client object.

Yields
  • (config) — Configure the VideoStitcherService client.
Yield Parameter
Returns
  • (Client) — a new instance of Client
Example
# Create a client using the default configuration
client = ::Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new

# Create a client using a custom configuration
client = ::Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new do |config|
  config.timeout = 10.0
end

#list_cdn_keys

def list_cdn_keys(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Video::Stitcher::V1::CdnKey>
def list_cdn_keys(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Video::Stitcher::V1::CdnKey>

Lists all CDN keys in the specified project and location.

Overloads
def list_cdn_keys(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Video::Stitcher::V1::CdnKey>
Pass arguments to list_cdn_keys via a request object, either of type ListCdnKeysRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Video::Stitcher::V1::ListCdnKeysRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_cdn_keys(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Video::Stitcher::V1::CdnKey>
Pass arguments to list_cdn_keys via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The project that contains the list of CDN keys, in the form of projects/{project_number}/locations/{location}.
  • page_size (::Integer) — Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
  • page_token (::String) — A token identifying a page of results the server should return.
  • filter (::String) — Filtering results
  • order_by (::String) — Hint for how to order the results
Yields
  • (response, operation) — Access the result along with the RPC operation
Yield Parameters
Returns
Raises
  • (::Google::Cloud::Error) — if the RPC is aborted.
Example

Basic example

require "google/cloud/video/stitcher/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Video::Stitcher::V1::ListCdnKeysRequest.new

# Call the list_cdn_keys method.
result = client.list_cdn_keys request

# The returned object is of type Gapic::PagedEnumerable. You can
# iterate over all elements by calling #each, and the enumerable
# will lazily make API calls to fetch subsequent pages. Other
# methods are also available for managing paging directly.
result.each do |response|
  # Each element is of type ::Google::Cloud::Video::Stitcher::V1::CdnKey.
  p response
end

#list_live_ad_tag_details

def list_live_ad_tag_details(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Video::Stitcher::V1::LiveAdTagDetail>
def list_live_ad_tag_details(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Video::Stitcher::V1::LiveAdTagDetail>

Return the list of ad tag details for the specified live session.

Overloads
def list_live_ad_tag_details(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Video::Stitcher::V1::LiveAdTagDetail>
Pass arguments to list_live_ad_tag_details via a request object, either of type ListLiveAdTagDetailsRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Video::Stitcher::V1::ListLiveAdTagDetailsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_live_ad_tag_details(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Video::Stitcher::V1::LiveAdTagDetail>
Pass arguments to list_live_ad_tag_details via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The resource parent in the form of projects/{project}/locations/{location}/liveSessions/{live_session}.
  • page_size (::Integer) — The maximum number of items to return.
  • page_token (::String) — The pagination token returned from a previous List request.
Yields
  • (response, operation) — Access the result along with the RPC operation
Yield Parameters
Returns
Raises
  • (::Google::Cloud::Error) — if the RPC is aborted.
Example

Basic example

require "google/cloud/video/stitcher/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Video::Stitcher::V1::ListLiveAdTagDetailsRequest.new

# Call the list_live_ad_tag_details method.
result = client.list_live_ad_tag_details request

# The returned object is of type Gapic::PagedEnumerable. You can
# iterate over all elements by calling #each, and the enumerable
# will lazily make API calls to fetch subsequent pages. Other
# methods are also available for managing paging directly.
result.each do |response|
  # Each element is of type ::Google::Cloud::Video::Stitcher::V1::LiveAdTagDetail.
  p response
end

#list_slates

def list_slates(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Video::Stitcher::V1::Slate>
def list_slates(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Video::Stitcher::V1::Slate>

Lists all slates in the specified project and location.

Overloads
def list_slates(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Video::Stitcher::V1::Slate>
Pass arguments to list_slates via a request object, either of type ListSlatesRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Video::Stitcher::V1::ListSlatesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_slates(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Video::Stitcher::V1::Slate>
Pass arguments to list_slates via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The project to list slates, in the form of projects/{project_number}.
  • page_size (::Integer) — Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
  • page_token (::String) — A token identifying a page of results the server should return.
  • filter (::String) — Filtering results
  • order_by (::String) — Hint for how to order the results
Yields
  • (response, operation) — Access the result along with the RPC operation
Yield Parameters
Returns
Raises
  • (::Google::Cloud::Error) — if the RPC is aborted.
Example

Basic example

require "google/cloud/video/stitcher/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Video::Stitcher::V1::ListSlatesRequest.new

# Call the list_slates method.
result = client.list_slates request

# The returned object is of type Gapic::PagedEnumerable. You can
# iterate over all elements by calling #each, and the enumerable
# will lazily make API calls to fetch subsequent pages. Other
# methods are also available for managing paging directly.
result.each do |response|
  # Each element is of type ::Google::Cloud::Video::Stitcher::V1::Slate.
  p response
end

#list_vod_ad_tag_details

def list_vod_ad_tag_details(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Video::Stitcher::V1::VodAdTagDetail>
def list_vod_ad_tag_details(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Video::Stitcher::V1::VodAdTagDetail>

Return the list of ad tag details for the specified VOD session.

Overloads
def list_vod_ad_tag_details(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Video::Stitcher::V1::VodAdTagDetail>
Pass arguments to list_vod_ad_tag_details via a request object, either of type ListVodAdTagDetailsRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Video::Stitcher::V1::ListVodAdTagDetailsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_vod_ad_tag_details(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Video::Stitcher::V1::VodAdTagDetail>
Pass arguments to list_vod_ad_tag_details via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The VOD session which the ad tag details belong to, in the form of projects/{project}/locations/{location}/vodSessions/{vod_session_id}.
  • page_size (::Integer) — The maximum number of items to return.
  • page_token (::String) — The next_page_token value returned from a previous List request, if any.
Yields
  • (response, operation) — Access the result along with the RPC operation
Yield Parameters
Returns
Raises
  • (::Google::Cloud::Error) — if the RPC is aborted.
Example

Basic example

require "google/cloud/video/stitcher/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Video::Stitcher::V1::ListVodAdTagDetailsRequest.new

# Call the list_vod_ad_tag_details method.
result = client.list_vod_ad_tag_details request

# The returned object is of type Gapic::PagedEnumerable. You can
# iterate over all elements by calling #each, and the enumerable
# will lazily make API calls to fetch subsequent pages. Other
# methods are also available for managing paging directly.
result.each do |response|
  # Each element is of type ::Google::Cloud::Video::Stitcher::V1::VodAdTagDetail.
  p response
end

#list_vod_stitch_details

def list_vod_stitch_details(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Video::Stitcher::V1::VodStitchDetail>
def list_vod_stitch_details(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Video::Stitcher::V1::VodStitchDetail>

Returns a list of detailed stitching information of the specified VOD session.

Overloads
def list_vod_stitch_details(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Video::Stitcher::V1::VodStitchDetail>
Pass arguments to list_vod_stitch_details via a request object, either of type ListVodStitchDetailsRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Video::Stitcher::V1::ListVodStitchDetailsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_vod_stitch_details(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Video::Stitcher::V1::VodStitchDetail>
Pass arguments to list_vod_stitch_details via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • parent (::String) — Required. The VOD session where the stitch details belong to, in the form of projects/{project}/locations/{location}/vodSessions/{id}.
  • page_size (::Integer) — The maximum number of items to return.
  • page_token (::String) — The next_page_token value returned from a previous List request, if any.
Yields
  • (response, operation) — Access the result along with the RPC operation
Yield Parameters
Returns
Raises
  • (::Google::Cloud::Error) — if the RPC is aborted.
Example

Basic example

require "google/cloud/video/stitcher/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Video::Stitcher::V1::ListVodStitchDetailsRequest.new

# Call the list_vod_stitch_details method.
result = client.list_vod_stitch_details request

# The returned object is of type Gapic::PagedEnumerable. You can
# iterate over all elements by calling #each, and the enumerable
# will lazily make API calls to fetch subsequent pages. Other
# methods are also available for managing paging directly.
result.each do |response|
  # Each element is of type ::Google::Cloud::Video::Stitcher::V1::VodStitchDetail.
  p response
end

#update_cdn_key

def update_cdn_key(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::CdnKey
def update_cdn_key(cdn_key: nil, update_mask: nil) -> ::Google::Cloud::Video::Stitcher::V1::CdnKey

Updates the specified CDN key. Only update fields specified in the call method body.

Overloads
def update_cdn_key(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::CdnKey
Pass arguments to update_cdn_key via a request object, either of type UpdateCdnKeyRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Video::Stitcher::V1::UpdateCdnKeyRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_cdn_key(cdn_key: nil, update_mask: nil) -> ::Google::Cloud::Video::Stitcher::V1::CdnKey
Pass arguments to update_cdn_key via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
  • cdn_key (::Google::Cloud::Video::Stitcher::V1::CdnKey, ::Hash) — Required. The CDN key resource which replaces the resource on the server.
  • update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. The update mask applies to the resource. For the FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
Yields
  • (response, operation) — Access the result along with the RPC operation
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the RPC is aborted.
Example

Basic example

require "google/cloud/video/stitcher/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Video::Stitcher::V1::UpdateCdnKeyRequest.new

# Call the update_cdn_key method.
result = client.update_cdn_key request

# The returned object is of type Google::Cloud::Video::Stitcher::V1::CdnKey.
p result

#update_slate

def update_slate(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::Slate
def update_slate(slate: nil, update_mask: nil) -> ::Google::Cloud::Video::Stitcher::V1::Slate

Updates the specified slate.

Overloads
def update_slate(request, options = nil) -> ::Google::Cloud::Video::Stitcher::V1::Slate
Pass arguments to update_slate via a request object, either of type UpdateSlateRequest or an equivalent Hash.
Parameters
  • request (::Google::Cloud::Video::Stitcher::V1::UpdateSlateRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
  • options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_slate(slate: nil, update_mask: nil) -> ::Google::Cloud::Video::Stitcher::V1::Slate
Pass arguments to update_slate via keyword arguments. Note that at least one keyword argument is required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash as a request object (see above).
Parameters
Yields
  • (response, operation) — Access the result along with the RPC operation
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the RPC is aborted.
Example

Basic example

require "google/cloud/video/stitcher/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Video::Stitcher::V1::UpdateSlateRequest.new

# Call the update_slate method.
result = client.update_slate request

# The returned object is of type Google::Cloud::Video::Stitcher::V1::Slate.
p result