Module: Google::Cloud::Video::Stitcher::V1::VideoStitcherService::Paths

Extended by:
Paths
Included in:
Client, Paths
Defined in:
lib/google/cloud/video/stitcher/v1/video_stitcher_service/paths.rb

Overview

Path helper methods for the VideoStitcherService API.

Instance Method Summary collapse

Instance Method Details

#cdn_key_path(project:, location:, cdn_key:) ⇒ ::String

Create a fully-qualified CdnKey resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/cdnKeys/{cdn_key}

Parameters:

  • project (String)
  • location (String)
  • cdn_key (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


40
41
42
43
44
45
# File 'lib/google/cloud/video/stitcher/v1/video_stitcher_service/paths.rb', line 40

def cdn_key_path project:, location:, cdn_key:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/cdnKeys/#{cdn_key}"
end

#live_ad_tag_detail_path(project:, location:, live_session:, live_ad_tag_detail:) ⇒ ::String

Create a fully-qualified LiveAdTagDetail resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/liveSessions/{live_session}/liveAdTagDetails/{live_ad_tag_detail}

Parameters:

  • project (String)
  • location (String)
  • live_session (String)
  • live_ad_tag_detail (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


60
61
62
63
64
65
66
# File 'lib/google/cloud/video/stitcher/v1/video_stitcher_service/paths.rb', line 60

def live_ad_tag_detail_path project:, location:, live_session:, live_ad_tag_detail:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
  raise ::ArgumentError, "live_session cannot contain /" if live_session.to_s.include? "/"

  "projects/#{project}/locations/#{location}/liveSessions/#{live_session}/liveAdTagDetails/#{live_ad_tag_detail}"
end

#live_config_path(project:, location:, live_config:) ⇒ ::String

Create a fully-qualified LiveConfig resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/liveConfigs/{live_config}

Parameters:

  • project (String)
  • location (String)
  • live_config (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


80
81
82
83
84
85
# File 'lib/google/cloud/video/stitcher/v1/video_stitcher_service/paths.rb', line 80

def live_config_path project:, location:, live_config:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/liveConfigs/#{live_config}"
end

#live_session_path(project:, location:, live_session:) ⇒ ::String

Create a fully-qualified LiveSession resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/liveSessions/{live_session}

Parameters:

  • project (String)
  • location (String)
  • live_session (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


99
100
101
102
103
104
# File 'lib/google/cloud/video/stitcher/v1/video_stitcher_service/paths.rb', line 99

def live_session_path project:, location:, live_session:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/liveSessions/#{live_session}"
end

#location_path(project:, location:) ⇒ ::String

Create a fully-qualified Location resource string.

The resource will be in the following format:

projects/{project}/locations/{location}

Parameters:

  • project (String)
  • location (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


117
118
119
120
121
# File 'lib/google/cloud/video/stitcher/v1/video_stitcher_service/paths.rb', line 117

def location_path project:, location:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

  "projects/#{project}/locations/#{location}"
end

#slate_path(project:, location:, slate:) ⇒ ::String

Create a fully-qualified Slate resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/slates/{slate}

Parameters:

  • project (String)
  • location (String)
  • slate (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


135
136
137
138
139
140
# File 'lib/google/cloud/video/stitcher/v1/video_stitcher_service/paths.rb', line 135

def slate_path project:, location:, slate:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/slates/#{slate}"
end

#vod_ad_tag_detail_path(project:, location:, vod_session:, vod_ad_tag_detail:) ⇒ ::String

Create a fully-qualified VodAdTagDetail resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/vodSessions/{vod_session}/vodAdTagDetails/{vod_ad_tag_detail}

Parameters:

  • project (String)
  • location (String)
  • vod_session (String)
  • vod_ad_tag_detail (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


155
156
157
158
159
160
161
# File 'lib/google/cloud/video/stitcher/v1/video_stitcher_service/paths.rb', line 155

def vod_ad_tag_detail_path project:, location:, vod_session:, vod_ad_tag_detail:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
  raise ::ArgumentError, "vod_session cannot contain /" if vod_session.to_s.include? "/"

  "projects/#{project}/locations/#{location}/vodSessions/#{vod_session}/vodAdTagDetails/#{vod_ad_tag_detail}"
end

#vod_config_path(project:, location:, vod_config:) ⇒ ::String

Create a fully-qualified VodConfig resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/vodConfigs/{vod_config}

Parameters:

  • project (String)
  • location (String)
  • vod_config (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


175
176
177
178
179
180
# File 'lib/google/cloud/video/stitcher/v1/video_stitcher_service/paths.rb', line 175

def vod_config_path project:, location:, vod_config:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/vodConfigs/#{vod_config}"
end

#vod_session_path(project:, location:, vod_session:) ⇒ ::String

Create a fully-qualified VodSession resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/vodSessions/{vod_session}

Parameters:

  • project (String)
  • location (String)
  • vod_session (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


194
195
196
197
198
199
# File 'lib/google/cloud/video/stitcher/v1/video_stitcher_service/paths.rb', line 194

def vod_session_path project:, location:, vod_session:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/vodSessions/#{vod_session}"
end

#vod_stitch_detail_path(project:, location:, vod_session:, vod_stitch_detail:) ⇒ ::String

Create a fully-qualified VodStitchDetail resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/vodSessions/{vod_session}/vodStitchDetails/{vod_stitch_detail}

Parameters:

  • project (String)
  • location (String)
  • vod_session (String)
  • vod_stitch_detail (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


214
215
216
217
218
219
220
# File 'lib/google/cloud/video/stitcher/v1/video_stitcher_service/paths.rb', line 214

def vod_stitch_detail_path project:, location:, vod_session:, vod_stitch_detail:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
  raise ::ArgumentError, "vod_session cannot contain /" if vod_session.to_s.include? "/"

  "projects/#{project}/locations/#{location}/vodSessions/#{vod_session}/vodStitchDetails/#{vod_stitch_detail}"
end