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

Instance Method Details

#account_path(account:) ⇒ ::String

Create a fully-qualified Account resource string.

The resource will be in the following format:

accounts/{account}

Parameters:

  • account (String)

Returns:

  • (::String)


37
38
39
# File 'lib/google/cloud/channel/v1/cloud_channel_service/paths.rb', line 37

def  account:
  "accounts/#{}"
end

Create a fully-qualified ChannelPartnerLink resource string.

The resource will be in the following format:

accounts/{account}/channelPartnerLinks/{channel_partner_link}

Parameters:

  • account (String)
  • channel_partner_link (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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 .to_s.include? "/"

  "accounts/#{}/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}

Parameters:

  • account (String)
  • channel_partner (String)
  • channel_partner_repricing_config (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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 .to_s.include? "/"
  raise ::ArgumentError, "channel_partner cannot contain /" if channel_partner.to_s.include? "/"

  "accounts/#{}/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}

Parameters:

  • account (String)
  • customer (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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 .to_s.include? "/"

  "accounts/#{}/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}

Parameters:

  • account (String)
  • customer (String)
  • customer_repricing_config (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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 .to_s.include? "/"
  raise ::ArgumentError, "customer cannot contain /" if customer.to_s.include? "/"

  "accounts/#{}/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}

Parameters:

  • account (String)
  • customer (String)
  • entitlement (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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 .to_s.include? "/"
  raise ::ArgumentError, "customer cannot contain /" if customer.to_s.include? "/"

  "accounts/#{}/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}

Parameters:

  • account (String)
  • offer (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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 .to_s.include? "/"

  "accounts/#{}/offers/#{offer}"
end

#product_path(product:) ⇒ ::String

Create a fully-qualified Product resource string.

The resource will be in the following format:

products/{product}

Parameters:

  • product (String)

Returns:

  • (::String)


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}

Parameters:

  • account (String)
  • sku_group (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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 .to_s.include? "/"

  "accounts/#{}/skuGroups/#{sku_group}"
end