Google Cloud Billing Budgets V1 Client - Class CreateBudgetRequest (1.2.2)

Reference documentation and code samples for the Google Cloud Billing Budgets V1 Client class CreateBudgetRequest.

Request for CreateBudget

Generated from protobuf message google.cloud.billing.budgets.v1.CreateBudgetRequest

Namespace

Google \ Cloud \ Billing \ Budgets \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The name of the billing account to create the budget in. Values are of the form billingAccounts/{billingAccountId}.

↳ budget Google\Cloud\Billing\Budgets\V1\Budget

Required. Budget to create.

getParent

Required. The name of the billing account to create the budget in. Values are of the form billingAccounts/{billingAccountId}.

Returns
TypeDescription
string

setParent

Required. The name of the billing account to create the budget in. Values are of the form billingAccounts/{billingAccountId}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBudget

Required. Budget to create.

Returns
TypeDescription
Google\Cloud\Billing\Budgets\V1\Budget|null

hasBudget

clearBudget

setBudget

Required. Budget to create.

Parameter
NameDescription
var Google\Cloud\Billing\Budgets\V1\Budget
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. The name of the billing account to create the budget in. Values are of the form billingAccounts/{billingAccountId}. Please see Google\Cloud\Billing\Budgets\V1\BudgetServiceClient::billingAccountName() for help formatting this field.

budget Google\Cloud\Billing\Budgets\V1\Budget

Required. Budget to create.

Returns
TypeDescription
Google\Cloud\Billing\Budgets\V1\CreateBudgetRequest