module Google::Cloud::Channel::V1::CloudChannelService::Paths

Path helper methods for the CloudChannelService API.

Public Instance Methods

customer_path(account:, customer: raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/") click to toggle source

Create a fully-qualified Customer resource string.

The resource will be in the following format:

`accounts/{account}/customers/{customer}`

@param account [String] @param customer [String]

@return [::String]

# File lib/google/cloud/channel/v1/cloud_channel_service/paths.rb, line 38
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: raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/") click to toggle source

Create a fully-qualified Entitlement resource string.

The resource will be in the following format:

`accounts/{account}/customers/{customer}/entitlements/{entitlement}`

@param account [String] @param customer [String] @param entitlement [String]

@return [::String]

# File lib/google/cloud/channel/v1/cloud_channel_service/paths.rb, line 56
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: raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/") click to toggle source

Create a fully-qualified Offer resource string.

The resource will be in the following format:

`accounts/{account}/offers/{offer}`

@param account [String] @param offer [String]

@return [::String]

# File lib/google/cloud/channel/v1/cloud_channel_service/paths.rb, line 74
def offer_path account:, offer:
  raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/"

  "accounts/#{account}/offers/#{offer}"
end
product_path(product: "products/ click to toggle source

Create a fully-qualified Product resource string.

The resource will be in the following format:

`products/{product}`

@param product [String]

@return [::String]

# File lib/google/cloud/channel/v1/cloud_channel_service/paths.rb, line 90
def product_path product:
  "products/#{product}"
end