module Google::Cloud::Billing::Budgets::V1beta1::BudgetService::Paths

Path helper methods for the BudgetService API.

Public Instance Methods

billing_account_path(billing_account: "billingAccounts/ click to toggle source

Create a fully-qualified BillingAccount resource string.

The resource will be in the following format:

`billingAccounts/{billing_account}`

@param billing_account [String]

@return [::String]

# File lib/google/cloud/billing/budgets/v1beta1/budget_service/paths.rb, line 38
def billing_account_path billing_account:
  "billingAccounts/#{billing_account}"
end
budget_path(billing_account:, budget: raise ::ArgumentError, "billing_account cannot contain /" if billing_account.to_s.include? "/") click to toggle source

Create a fully-qualified Budget resource string.

The resource will be in the following format:

`billingAccounts/{billing_account}/budgets/{budget}`

@param billing_account [String] @param budget [String]

@return [::String]

# File lib/google/cloud/billing/budgets/v1beta1/budget_service/paths.rb, line 53
def budget_path billing_account:, budget:
  raise ::ArgumentError, "billing_account cannot contain /" if billing_account.to_s.include? "/"

  "billingAccounts/#{billing_account}/budgets/#{budget}"
end