Module: Google::Cloud::Channel::V1::CloudChannelService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/channel/v1/cloud_channel_service/paths.rb
Overview
Path helper methods for the CloudChannelService API.
Instance Method Summary collapse
-
#account_path(account:) ⇒ ::String
Create a fully-qualified Account resource string.
-
#channel_partner_link_path(account:, channel_partner_link:) ⇒ ::String
Create a fully-qualified ChannelPartnerLink resource string.
-
#channel_partner_repricing_config_path(account:, channel_partner:, channel_partner_repricing_config:) ⇒ ::String
Create a fully-qualified ChannelPartnerRepricingConfig resource string.
-
#customer_path(account:, customer:) ⇒ ::String
Create a fully-qualified Customer resource string.
-
#customer_repricing_config_path(account:, customer:, customer_repricing_config:) ⇒ ::String
Create a fully-qualified CustomerRepricingConfig resource string.
-
#entitlement_path(account:, customer:, entitlement:) ⇒ ::String
Create a fully-qualified Entitlement resource string.
-
#offer_path(account:, offer:) ⇒ ::String
Create a fully-qualified Offer resource string.
-
#product_path(product:) ⇒ ::String
Create a fully-qualified Product resource string.
-
#sku_group_path(account:, sku_group:) ⇒ ::String
Create a fully-qualified SkuGroup resource string.
Instance Method Details
#account_path(account:) ⇒ ::String
Create a fully-qualified Account resource string.
The resource will be in the following format:
accounts/{account}
37 38 39 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/paths.rb', line 37 def account_path account: "accounts/#{account}" end |
#channel_partner_link_path(account:, channel_partner_link:) ⇒ ::String
Create a fully-qualified ChannelPartnerLink resource string.
The resource will be in the following format:
accounts/{account}/channelPartnerLinks/{channel_partner_link}
52 53 54 55 56 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/paths.rb', line 52 def channel_partner_link_path account:, channel_partner_link: raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" "accounts/#{account}/channelPartnerLinks/#{channel_partner_link}" end |
#channel_partner_repricing_config_path(account:, channel_partner:, channel_partner_repricing_config:) ⇒ ::String
Create a fully-qualified ChannelPartnerRepricingConfig resource string.
The resource will be in the following format:
accounts/{account}/channelPartnerLinks/{channel_partner}/channelPartnerRepricingConfigs/{channel_partner_repricing_config}
70 71 72 73 74 75 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/paths.rb', line 70 def channel_partner_repricing_config_path account:, channel_partner:, channel_partner_repricing_config: raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" raise ::ArgumentError, "channel_partner cannot contain /" if channel_partner.to_s.include? "/" "accounts/#{account}/channelPartnerLinks/#{channel_partner}/channelPartnerRepricingConfigs/#{channel_partner_repricing_config}" end |
#customer_path(account:, customer:) ⇒ ::String
Create a fully-qualified Customer resource string.
The resource will be in the following format:
accounts/{account}/customers/{customer}
88 89 90 91 92 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/paths.rb', line 88 def customer_path account:, customer: raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" "accounts/#{account}/customers/#{customer}" end |
#customer_repricing_config_path(account:, customer:, customer_repricing_config:) ⇒ ::String
Create a fully-qualified CustomerRepricingConfig resource string.
The resource will be in the following format:
accounts/{account}/customers/{customer}/customerRepricingConfigs/{customer_repricing_config}
106 107 108 109 110 111 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/paths.rb', line 106 def customer_repricing_config_path account:, customer:, customer_repricing_config: raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" raise ::ArgumentError, "customer cannot contain /" if customer.to_s.include? "/" "accounts/#{account}/customers/#{customer}/customerRepricingConfigs/#{customer_repricing_config}" end |
#entitlement_path(account:, customer:, entitlement:) ⇒ ::String
Create a fully-qualified Entitlement resource string.
The resource will be in the following format:
accounts/{account}/customers/{customer}/entitlements/{entitlement}
125 126 127 128 129 130 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/paths.rb', line 125 def entitlement_path account:, customer:, entitlement: raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" raise ::ArgumentError, "customer cannot contain /" if customer.to_s.include? "/" "accounts/#{account}/customers/#{customer}/entitlements/#{entitlement}" end |
#offer_path(account:, offer:) ⇒ ::String
Create a fully-qualified Offer resource string.
The resource will be in the following format:
accounts/{account}/offers/{offer}
143 144 145 146 147 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/paths.rb', line 143 def offer_path account:, offer: raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" "accounts/#{account}/offers/#{offer}" end |
#product_path(product:) ⇒ ::String
Create a fully-qualified Product resource string.
The resource will be in the following format:
products/{product}
159 160 161 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/paths.rb', line 159 def product_path product: "products/#{product}" end |
#sku_group_path(account:, sku_group:) ⇒ ::String
Create a fully-qualified SkuGroup resource string.
The resource will be in the following format:
accounts/{account}/skuGroups/{sku_group}
174 175 176 177 178 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/paths.rb', line 174 def sku_group_path account:, sku_group: raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" "accounts/#{account}/skuGroups/#{sku_group}" end |