Reference documentation and code samples for the Google Cloud Capacity Planner V1beta Client class ExportUsageHistoriesRequest.
The ExportUsageHistories request
Next : 12
Generated from protobuf message google.cloud.capacityplanner.v1beta.ExportUsageHistoriesRequest
Namespace
Google \ Cloud \ CapacityPlanner \ V1betaMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The compute engine resource and location for the time series values to return. The format is: projects/{project}/locations/{location} or organizations/{organization}/locations/{location} or folders/{folder}/locations/{location} |
↳ is_spot |
bool
Optional. Set true to export usage for spot resources. |
↳ machine_family |
string
Optional. The machine family for the |
↳ machine_shape |
MachineShape
Optional. The machine shape for the time series values to export. |
↳ disk_type |
string
Optional. The disk_type for the |
↳ gpu_type |
string
Optional. The GPU type for the |
↳ tpu_type |
string
Optional. The TPU type for the |
↳ resource_type |
string
Required. The resource for the |
↳ usage_aggregation_method |
int
Optional. The method that should be used to convert sampled usage data to daily usage values. AGGREGATION_METHOD_UNSPECIFIED will return results matching all the aggregation methods. |
↳ start_date |
Google\Type\Date
Optional. The start date of usage. |
↳ end_date |
Google\Type\Date
Optional. The end date of usage. |
↳ output_config |
OutputConfig
Required. Output configuration indicating where the results will be output to. |
getParent
Required. The compute engine resource and location for the time series values to return. The format is: projects/{project}/locations/{location} or organizations/{organization}/locations/{location} or folders/{folder}/locations/{location}
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. The compute engine resource and location for the time series values to return. The format is: projects/{project}/locations/{location} or organizations/{organization}/locations/{location} or folders/{folder}/locations/{location}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getIsSpot
Optional. Set true to export usage for spot resources.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setIsSpot
Optional. Set true to export usage for spot resources.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMachineFamily
Optional. The machine family for the UsageHistory values to return.
Possible values include "n1", and "n2d". See https://cloud.google.com/compute/docs/machine-types for more examples.
| Returns | |
|---|---|
| Type | Description |
string |
|
setMachineFamily
Optional. The machine family for the UsageHistory values to return.
Possible values include "n1", and "n2d". See https://cloud.google.com/compute/docs/machine-types for more examples.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMachineShape
Optional. The machine shape for the time series values to export.
| Returns | |
|---|---|
| Type | Description |
MachineShape|null |
|
hasMachineShape
clearMachineShape
setMachineShape
Optional. The machine shape for the time series values to export.
| Parameter | |
|---|---|
| Name | Description |
var |
MachineShape
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDiskType
Optional. The disk_type for the UsageHistory values to return request
with persistent-disk resource_type. Possible values include "pd-ssd",
"pd-standard", "pd-balanced", and "pd-extreme".
| Returns | |
|---|---|
| Type | Description |
string |
|
setDiskType
Optional. The disk_type for the UsageHistory values to return request
with persistent-disk resource_type. Possible values include "pd-ssd",
"pd-standard", "pd-balanced", and "pd-extreme".
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getGpuType
Optional. The GPU type for the UsageHistory values to return. Sample
values are "nvidia-tesla-t4", and "nvidia-tesla-a100". See
https://cloud.google.com/compute/docs/gpus for a list. Empty gpu_type
will return results matching all GPUs.
| Returns | |
|---|---|
| Type | Description |
string |
|
setGpuType
Optional. The GPU type for the UsageHistory values to return. Sample
values are "nvidia-tesla-t4", and "nvidia-tesla-a100". See
https://cloud.google.com/compute/docs/gpus for a list. Empty gpu_type
will return results matching all GPUs.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTpuType
Optional. The TPU type for the UsageHistory values to return. Empty
tpu_type will return results matching all TPUs.
| Returns | |
|---|---|
| Type | Description |
string |
|
setTpuType
Optional. The TPU type for the UsageHistory values to return. Empty
tpu_type will return results matching all TPUs.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getResourceType
Required. The resource for the UsageHistory values to return. Possible
values include "gce-vcpus", "gce-ram", "gce-local-ssd",
"gce-persistent-disk", "gce-gpu" and "gce-tpu".
| Returns | |
|---|---|
| Type | Description |
string |
|
setResourceType
Required. The resource for the UsageHistory values to return. Possible
values include "gce-vcpus", "gce-ram", "gce-local-ssd",
"gce-persistent-disk", "gce-gpu" and "gce-tpu".
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUsageAggregationMethod
Optional. The method that should be used to convert sampled usage data to daily usage values. AGGREGATION_METHOD_UNSPECIFIED will return results matching all the aggregation methods.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type AggregationMethod. |
setUsageAggregationMethod
Optional. The method that should be used to convert sampled usage data to daily usage values. AGGREGATION_METHOD_UNSPECIFIED will return results matching all the aggregation methods.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type AggregationMethod. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getStartDate
Optional. The start date of usage.
| Returns | |
|---|---|
| Type | Description |
Google\Type\Date|null |
|
hasStartDate
clearStartDate
setStartDate
Optional. The start date of usage.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Type\Date
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEndDate
Optional. The end date of usage.
| Returns | |
|---|---|
| Type | Description |
Google\Type\Date|null |
|
hasEndDate
clearEndDate
setEndDate
Optional. The end date of usage.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Type\Date
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getOutputConfig
Required. Output configuration indicating where the results will be output to.
| Returns | |
|---|---|
| Type | Description |
OutputConfig|null |
|
hasOutputConfig
clearOutputConfig
setOutputConfig
Required. Output configuration indicating where the results will be output to.
| Parameter | |
|---|---|
| Name | Description |
var |
OutputConfig
|
| Returns | |
|---|---|
| Type | Description |
$this |
|