Module: Google::Cloud::Commerce::Consumer::Procurement::V1::LicenseManagementService::Paths

Extended by:
Paths
Included in:
Client, Paths, Rest::Client
Defined in:
lib/google/cloud/commerce/consumer/procurement/v1/license_management_service/paths.rb

Overview

Path helper methods for the LicenseManagementService API.

Instance Method Summary collapse

Instance Method Details

#license_pool_path(billing_account:, order:) ⇒ ::String

Create a fully-qualified LicensePool resource string.

The resource will be in the following format:

billingAccounts/{billing_account}/orders/{order}/licensePool

Parameters:

  • billing_account (String)
  • order (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


40
41
42
43
44
# File 'lib/google/cloud/commerce/consumer/procurement/v1/license_management_service/paths.rb', line 40

def license_pool_path billing_account:, order:
  raise ::ArgumentError, "billing_account cannot contain /" if .to_s.include? "/"

  "billingAccounts/#{}/orders/#{order}/licensePool"
end