Google Cloud Billing Budgets V1beta1 Client - Class BudgetAmount (1.0.5)

Reference documentation and code samples for the Google Cloud Billing Budgets V1beta1 Client class BudgetAmount.

The budgeted amount for each usage period.

Generated from protobuf message google.cloud.billing.budgets.v1beta1.BudgetAmount

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ specified_amount
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.

↳ last_period_amount
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 .

getSpecifiedAmount

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.

Returns
Type
Description

hasSpecifiedAmount

setSpecifiedAmount

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.

Parameter
Name
Description
Returns
Type
Description
$this

getLastPeriodAmount

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 .

hasLastPeriodAmount

setLastPeriodAmount

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
Type
Description
$this

getBudgetAmount

Returns
Type
Description
string
Design a Mobile Site
View Site in Mobile | Classic
Share by: