Module: Google::Cloud::Video::LiveStream::V1::LivestreamService::Paths

Extended by:
Paths
Included in:
Client, Paths, Rest::Client
Defined in:
lib/google/cloud/video/live_stream/v1/livestream_service/paths.rb

Overview

Path helper methods for the LivestreamService API.

Instance Method Summary collapse

Instance Method Details

#asset_path(project:, location:, asset:) ⇒ ::String

Create a fully-qualified Asset resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/assets/{asset}

Parameters:

  • project (String)
  • location (String)
  • asset (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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

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

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

#channel_path(project:, location:, channel:) ⇒ ::String

Create a fully-qualified Channel resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/channels/{channel}

Parameters:

  • project (String)
  • location (String)
  • channel (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


59
60
61
62
63
64
# File 'lib/google/cloud/video/live_stream/v1/livestream_service/paths.rb', line 59

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

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

#clip_path(project:, location:, channel:, clip:) ⇒ ::String

Create a fully-qualified Clip resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/channels/{channel}/clips/{clip}

Parameters:

  • project (String)
  • location (String)
  • channel (String)
  • clip (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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

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

  "projects/#{project}/locations/#{location}/channels/#{channel}/clips/#{clip}"
end

#event_path(project:, location:, channel:, event:) ⇒ ::String

Create a fully-qualified Event resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/channels/{channel}/events/{event}

Parameters:

  • project (String)
  • location (String)
  • channel (String)
  • event (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


100
101
102
103
104
105
106
# File 'lib/google/cloud/video/live_stream/v1/livestream_service/paths.rb', line 100

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

  "projects/#{project}/locations/#{location}/channels/#{channel}/events/#{event}"
end

#input_path(project:, location:, input:) ⇒ ::String

Create a fully-qualified Input resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/inputs/{input}

Parameters:

  • project (String)
  • location (String)
  • input (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


120
121
122
123
124
125
# File 'lib/google/cloud/video/live_stream/v1/livestream_service/paths.rb', line 120

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

  "projects/#{project}/locations/#{location}/inputs/#{input}"
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)


138
139
140
141
142
# File 'lib/google/cloud/video/live_stream/v1/livestream_service/paths.rb', line 138

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

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

#network_path(project:, network:) ⇒ ::String

Create a fully-qualified Network resource string.

The resource will be in the following format:

projects/{project}/global/networks/{network}

Parameters:

  • project (String)
  • network (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


155
156
157
158
159
# File 'lib/google/cloud/video/live_stream/v1/livestream_service/paths.rb', line 155

def network_path project:, network:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

  "projects/#{project}/global/networks/#{network}"
end

#pool_path(project:, location:, pool:) ⇒ ::String

Create a fully-qualified Pool resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/pools/{pool}

Parameters:

  • project (String)
  • location (String)
  • pool (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


173
174
175
176
177
178
# File 'lib/google/cloud/video/live_stream/v1/livestream_service/paths.rb', line 173

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

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

#secret_version_path(project:, secret:, version:) ⇒ ::String

Create a fully-qualified SecretVersion resource string.

The resource will be in the following format:

projects/{project}/secrets/{secret}/versions/{version}

Parameters:

  • project (String)
  • secret (String)
  • version (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


192
193
194
195
196
197
# File 'lib/google/cloud/video/live_stream/v1/livestream_service/paths.rb', line 192

def secret_version_path project:, secret:, version:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/"

  "projects/#{project}/secrets/#{secret}/versions/#{version}"
end