Google Cloud Billing V1 Client - Class ListSkusRequest (1.6.0)

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

Request message for ListSkus.

Generated from protobuf message google.cloud.billing.v1.ListSkusRequest

Namespace

Google \ Cloud \ Billing \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The name of the service. Example: "services/DA34-426B-A397"

↳ start_time Google\Protobuf\Timestamp

Optional inclusive start time of the time range for which the pricing versions will be returned. Timestamps in the future are not allowed. The time range has to be within a single calendar month in America/Los_Angeles timezone. Time range as a whole is optional. If not specified, the latest pricing will be returned (up to 12 hours old at most).

↳ end_time Google\Protobuf\Timestamp

Optional exclusive end time of the time range for which the pricing versions will be returned. Timestamps in the future are not allowed. The time range has to be within a single calendar month in America/Los_Angeles timezone. Time range as a whole is optional. If not specified, the latest pricing will be returned (up to 12 hours old at most).

↳ currency_code string

The ISO 4217 currency code for the pricing info in the response proto. Will use the conversion rate as of start_time. Optional. If not specified USD will be used.

↳ page_size int

Requested page size. Defaults to 5000.

↳ page_token string

A token identifying a page of results to return. This should be a next_page_token value returned from a previous ListSkus call. If unspecified, the first page of results is returned.

getParent

Required. The name of the service.

Example: "services/DA34-426B-A397"

Returns
TypeDescription
string

setParent

Required. The name of the service.

Example: "services/DA34-426B-A397"

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getStartTime

Optional inclusive start time of the time range for which the pricing versions will be returned. Timestamps in the future are not allowed.

The time range has to be within a single calendar month in America/Los_Angeles timezone. Time range as a whole is optional. If not specified, the latest pricing will be returned (up to 12 hours old at most).

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

Optional inclusive start time of the time range for which the pricing versions will be returned. Timestamps in the future are not allowed.

The time range has to be within a single calendar month in America/Los_Angeles timezone. Time range as a whole is optional. If not specified, the latest pricing will be returned (up to 12 hours old at most).

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getEndTime

Optional exclusive end time of the time range for which the pricing versions will be returned. Timestamps in the future are not allowed.

The time range has to be within a single calendar month in America/Los_Angeles timezone. Time range as a whole is optional. If not specified, the latest pricing will be returned (up to 12 hours old at most).

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

Optional exclusive end time of the time range for which the pricing versions will be returned. Timestamps in the future are not allowed.

The time range has to be within a single calendar month in America/Los_Angeles timezone. Time range as a whole is optional. If not specified, the latest pricing will be returned (up to 12 hours old at most).

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getCurrencyCode

The ISO 4217 currency code for the pricing info in the response proto.

Will use the conversion rate as of start_time. Optional. If not specified USD will be used.

Returns
TypeDescription
string

setCurrencyCode

The ISO 4217 currency code for the pricing info in the response proto.

Will use the conversion rate as of start_time. Optional. If not specified USD will be used.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPageSize

Requested page size. Defaults to 5000.

Returns
TypeDescription
int

setPageSize

Requested page size. Defaults to 5000.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPageToken

A token identifying a page of results to return. This should be a next_page_token value returned from a previous ListSkus call. If unspecified, the first page of results is returned.

Returns
TypeDescription
string

setPageToken

A token identifying a page of results to return. This should be a next_page_token value returned from a previous ListSkus call. If unspecified, the first page of results is returned.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameter
NameDescription
parent string

Required. The name of the service. Example: "services/DA34-426B-A397" Please see Google\Cloud\Billing\V1\CloudCatalogClient::serviceName() for help formatting this field.

Returns
TypeDescription
Google\Cloud\Billing\V1\ListSkusRequest