Google Cloud Billing Budgets V1beta1 Client - Class CustomPeriod (1.1.0)

Reference documentation and code samples for the Google Cloud Billing Budgets V1beta1 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.v1beta1.CustomPeriod

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
Google\Type\Date|null

hasStartDate

clearStartDate

setStartDate

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

Parameter
NameDescription
var Google\Type\Date
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var Google\Type\Date
Returns
TypeDescription
$this