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 \ V1Methods
__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:
- https://www.googleapis.com/compute/v1/projects/project/zones/zone
- projects/project/zones/zone
- zones/zone This field is optional.
| 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:
- https://www.googleapis.com/compute/v1/projects/project/zones/zone
- projects/project/zones/zone
- zones/zone This field is optional.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|