Module: Google::Ads::AdManager::V1::LiveStreamService::Paths
- Extended by:
- Paths
- Included in:
- Paths, Rest::Client
- Defined in:
- lib/google/ads/ad_manager/v1/live_stream_service/paths.rb
Overview
Path helper methods for the LiveStreamService API.
Instance Method Summary collapse
-
#cdn_config_path(network_code:, cdn_config:) ⇒ ::String
Create a fully-qualified CdnConfig resource string.
-
#live_stream_path(network_code:, live_stream:) ⇒ ::String
Create a fully-qualified LiveStream resource string.
-
#network_path(network_code:) ⇒ ::String
Create a fully-qualified Network resource string.
Instance Method Details
#cdn_config_path(network_code:, cdn_config:) ⇒ ::String
Create a fully-qualified CdnConfig resource string.
The resource will be in the following format:
networks/{network_code}/cdnConfigs/{cdn_config}
38 39 40 41 42 |
# File 'lib/google/ads/ad_manager/v1/live_stream_service/paths.rb', line 38 def cdn_config_path network_code:, cdn_config: raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" "networks/#{network_code}/cdnConfigs/#{cdn_config}" end |
#live_stream_path(network_code:, live_stream:) ⇒ ::String
Create a fully-qualified LiveStream resource string.
The resource will be in the following format:
networks/{network_code}/liveStreams/{live_stream}
55 56 57 58 59 |
# File 'lib/google/ads/ad_manager/v1/live_stream_service/paths.rb', line 55 def live_stream_path network_code:, live_stream: raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" "networks/#{network_code}/liveStreams/#{live_stream}" end |
#network_path(network_code:) ⇒ ::String
Create a fully-qualified Network resource string.
The resource will be in the following format:
networks/{network_code}
71 72 73 |
# File 'lib/google/ads/ad_manager/v1/live_stream_service/paths.rb', line 71 def network_path network_code: "networks/#{network_code}" end |