Class: Google::Cloud::Billing::Budgets::V1beta1::BudgetAmount

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/billing/budgets/v1beta1/budget_model.rb

Overview

The budgeted amount for each usage period.

Instance Attribute Summary collapse

Instance Attribute Details

#last_period_amount::Google::Cloud::Billing::Budgets::V1beta1::LastPeriodAmount

Returns Use the last period's actual spend as the budget for the present period. LastPeriodAmount can only be set when the budget's time period is a Filter.calendar_period. It cannot be set in combination with Filter.custom_period.

Note: The following fields are mutually exclusive: last_period_amount, specified_amount. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:



88
89
90
91
# File 'proto_docs/google/cloud/billing/budgets/v1beta1/budget_model.rb', line 88

class BudgetAmount
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#specified_amount::Google::Type::Money

Returns A specified amount to use as the budget. currency_code is optional. If specified when creating a budget, it must match the currency of the billing account. If specified when updating a budget, it must match the currency_code of the existing budget. The currency_code is provided on output.

Note: The following fields are mutually exclusive: specified_amount, last_period_amount. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Type::Money)

    A specified amount to use as the budget. currency_code is optional. If specified when creating a budget, it must match the currency of the billing account. If specified when updating a budget, it must match the currency_code of the existing budget. The currency_code is provided on output.

    Note: The following fields are mutually exclusive: specified_amount, last_period_amount. If a field in that set is populated, all other fields in the set will automatically be cleared.



88
89
90
91
# File 'proto_docs/google/cloud/billing/budgets/v1beta1/budget_model.rb', line 88

class BudgetAmount
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end