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

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)


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 .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)


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 .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)


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 .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)


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 .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)


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 .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)


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 .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)


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}

Parameters:

  • account (String)
  • sku_group (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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

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