Module: Google::Cloud::Billing::Budgets::V1::BudgetService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/billing/budgets/v1/budget_service/paths.rb
Overview
Path helper methods for the BudgetService API.
Instance Method Summary collapse
-
#billing_account_path(billing_account:) ⇒ ::String
Create a fully-qualified BillingAccount resource string.
-
#budget_path(billing_account:, budget:) ⇒ ::String
Create a fully-qualified Budget resource string.
Instance Method Details
#billing_account_path(billing_account:) ⇒ ::String
Create a fully-qualified BillingAccount resource string.
The resource will be in the following format:
billingAccounts/{billing_account}
38 39 40 |
# File 'lib/google/cloud/billing/budgets/v1/budget_service/paths.rb', line 38 def billing_account_path billing_account: "billingAccounts/#{billing_account}" end |
#budget_path(billing_account:, budget:) ⇒ ::String
Create a fully-qualified Budget resource string.
The resource will be in the following format:
billingAccounts/{billing_account}/budgets/{budget}
53 54 55 56 57 |
# File 'lib/google/cloud/billing/budgets/v1/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 |