Google Cloud Billing Budgets V1 Client - Class CustomPeriod (2.0.3)

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

All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).

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

Namespace

Google \ Cloud \ Billing \ Budgets \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ start_date Google\Type\Date

Required. The start date must be after January 1, 2017.

↳ end_date Google\Type\Date

Optional. The end date of the time period. Budgets with elapsed end date won't be processed. If unset, specifies to track all usage incurred since the start_date.

getStartDate

Required. The start date must be after January 1, 2017.

Returns
Type Description
Google\Type\Date|null

hasStartDate

clearStartDate

setStartDate

Required. The start date must be after January 1, 2017.

Parameter
Name Description
var Google\Type\Date
Returns
Type Description
$this

getEndDate

Optional. The end date of the time period. Budgets with elapsed end date won't be processed. If unset, specifies to track all usage incurred since the start_date.

Returns
Type Description
Google\Type\Date|null

hasEndDate

clearEndDate

setEndDate

Optional. The end date of the time period. Budgets with elapsed end date won't be processed. If unset, specifies to track all usage incurred since the start_date.

Parameter
Name Description
var Google\Type\Date
Returns
Type Description
$this