lib/google/cloud/channel/v1/cloud_channel_service/paths.rb in google-cloud-channel-v1-0.10.0 vs lib/google/cloud/channel/v1/cloud_channel_service/paths.rb in google-cloud-channel-v1-0.11.0

- old
+ new

@@ -40,10 +40,29 @@ "accounts/#{account}/channelPartnerLinks/#{channel_partner_link}" end ## + # 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}` + # + # @param account [String] + # @param channel_partner [String] + # @param channel_partner_repricing_config [String] + # + # @return [::String] + 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 + + ## # Create a fully-qualified Customer resource string. # # The resource will be in the following format: # # `accounts/{account}/customers/{customer}` @@ -54,9 +73,28 @@ # @return [::String] def customer_path account:, customer: raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" "accounts/#{account}/customers/#{customer}" + end + + ## + # Create a fully-qualified CustomerRepricingConfig resource string. + # + # The resource will be in the following format: + # + # `accounts/{account}/customers/{customer}/customerRepricingConfigs/{customer_repricing_config}` + # + # @param account [String] + # @param customer [String] + # @param customer_repricing_config [String] + # + # @return [::String] + 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 ## # Create a fully-qualified Entitlement resource string. #