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
-
(::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.
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.
#last_period_amount=
def last_period_amount=(value) -> ::Google::Cloud::Billing::Budgets::V1beta1::LastPeriodAmount
-
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.
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.
-
(::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.
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.
#specified_amount
def specified_amount() -> ::Google::Type::Money
-
(::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.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.
#specified_amount=
def specified_amount=(value) -> ::Google::Type::Money
-
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.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.
-
(::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.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.