Reference documentation and code samples for the Compute V1 Client class CapacityHistoryResponse.
Contains the capacity history.
Generated from protobuf message google.cloud.compute.v1.CapacityHistoryResponse
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ location |
string
Output only. The location (region or zone) for which the capacity history is returned. It is returned as a URL - For example,https://www.googleapis.com/compute/v1/projects/project/zones/zone. |
↳ machine_type |
string
The machine type for which the capacity history is returned. |
↳ preemption_history |
array<CapacityHistoryResponsePreemptionRecord>
The preemption history for the requested machine type and location. |
↳ price_history |
array<CapacityHistoryResponsePriceRecord>
The price history for the requested machine type and location. |
getLocation
Output only. The location (region or zone) for which the capacity history is returned.
It is returned as a URL - For example,https://www.googleapis.com/compute/v1/projects/project/zones/zone.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasLocation
clearLocation
setLocation
Output only. The location (region or zone) for which the capacity history is returned.
It is returned as a URL - For example,https://www.googleapis.com/compute/v1/projects/project/zones/zone.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMachineType
The machine type for which the capacity history is returned.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasMachineType
clearMachineType
setMachineType
The machine type for which the capacity history is returned.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPreemptionHistory
The preemption history for the requested machine type and location.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<CapacityHistoryResponsePreemptionRecord> |
|
setPreemptionHistory
The preemption history for the requested machine type and location.
| Parameter | |
|---|---|
| Name | Description |
var |
array<CapacityHistoryResponsePreemptionRecord>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPriceHistory
The price history for the requested machine type and location.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<CapacityHistoryResponsePriceRecord> |
|
setPriceHistory
The price history for the requested machine type and location.
| Parameter | |
|---|---|
| Name | Description |
var |
array<CapacityHistoryResponsePriceRecord>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|