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
-
#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
#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}
38 39 40 41 42 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/paths.rb', line 38 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}
56 57 58 59 60 61 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/paths.rb', line 56 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}
74 75 76 77 78 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/paths.rb', line 74 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}
92 93 94 95 96 97 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/paths.rb', line 92 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}
111 112 113 114 115 116 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/paths.rb', line 111 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}
129 130 131 132 133 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/paths.rb', line 129 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}
145 146 147 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/paths.rb', line 145 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}
160 161 162 163 164 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/paths.rb', line 160 def sku_group_path account:, sku_group: raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" "accounts/#{account}/skuGroups/#{sku_group}" end |