Module: Google::Cloud::Channel::V1::CloudChannelService::Paths
- Extended by:
- Paths
- 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.
-
#customer_path(account:, customer:) ⇒ ::String
Create a fully-qualified Customer 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.
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 |
#customer_path(account:, customer:) ⇒ ::String
Create a fully-qualified Customer resource string.
The resource will be in the following format:
accounts/{account}/customers/{customer}
55 56 57 58 59 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/paths.rb', line 55 def customer_path account:, customer: raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" "accounts/#{account}/customers/#{customer}" 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}
73 74 75 76 77 78 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/paths.rb', line 73 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}
91 92 93 94 95 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/paths.rb', line 91 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}
107 108 109 |
# File 'lib/google/cloud/channel/v1/cloud_channel_service/paths.rb', line 107 def product_path product: "products/#{product}" end |