Compute V1 Client - Class CapacityHistoryRequestLocationPolicy (2.14.1)

Reference documentation and code samples for the Compute V1 Client class CapacityHistoryRequestLocationPolicy.

Location policy for this request.

Generated from protobuf message google.cloud.compute.v1.CapacityHistoryRequestLocationPolicy

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ location string

The region or zone to get capacity history for. It can be a partial or full URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - projects/project/zones/zone - zones/zone This field is optional.

getLocation

The region or zone to get capacity history for.

It can be a partial or full URL. For example, the following are valid values:

Returns
Type Description
string

hasLocation

clearLocation

setLocation

The region or zone to get capacity history for.

It can be a partial or full URL. For example, the following are valid values:

Parameter
Name Description
var string
Returns
Type Description
$this