Module: Google::Ads::AdManager::V1::OperatingSystemService::Paths
- Extended by:
- Paths
- Included in:
- Paths, Rest::Client
- Defined in:
- lib/google/ads/ad_manager/v1/operating_system_service/paths.rb
Overview
Path helper methods for the OperatingSystemService API.
Instance Method Summary collapse
-
#network_path(network_code:) ⇒ ::String
Create a fully-qualified Network resource string.
-
#operating_system_path(network_code:, operating_system:) ⇒ ::String
Create a fully-qualified OperatingSystem resource string.
Instance Method Details
#network_path(network_code:) ⇒ ::String
Create a fully-qualified Network resource string.
The resource will be in the following format:
networks/{network_code}
37 38 39 |
# File 'lib/google/ads/ad_manager/v1/operating_system_service/paths.rb', line 37 def network_path network_code: "networks/#{network_code}" end |
#operating_system_path(network_code:, operating_system:) ⇒ ::String
Create a fully-qualified OperatingSystem resource string.
The resource will be in the following format:
networks/{network_code}/operatingSystems/{operating_system}
52 53 54 55 56 |
# File 'lib/google/ads/ad_manager/v1/operating_system_service/paths.rb', line 52 def network_code:, operating_system: raise ::ArgumentError, "network_code cannot contain /" if network_code.to_s.include? "/" "networks/#{network_code}/operatingSystems/#{}" end |