Reference documentation and code samples for the Billing Budgets V1beta1 API class Google::Cloud::Billing::Budgets::V1beta1::BudgetAmount.
The budgeted amount for each usage period.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#last_period_amount
def last_period_amount() -> ::Google::Cloud::Billing::Budgets::V1beta1::LastPeriodAmount
Returns
- (::Google::Cloud::Billing::Budgets::V1beta1::LastPeriodAmount) — 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.
#last_period_amount=
def last_period_amount=(value) -> ::Google::Cloud::Billing::Budgets::V1beta1::LastPeriodAmount
Parameter
- value (::Google::Cloud::Billing::Budgets::V1beta1::LastPeriodAmount) — 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.
Returns
- (::Google::Cloud::Billing::Budgets::V1beta1::LastPeriodAmount) — 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.
#specified_amount
def specified_amount() -> ::Google::Type::Money
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. Thecurrency_code
is provided on output.
#specified_amount=
def specified_amount=(value) -> ::Google::Type::Money
Parameter
-
value (::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. Thecurrency_code
is provided on output.
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. Thecurrency_code
is provided on output.