Reference documentation and code samples for the Capacity Planner V1BETA API class Google::Cloud::CapacityPlanner::V1beta::ExportUsageHistoriesRequest.
The ExportUsageHistories
request
Next : 12
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#disk_type
def disk_type() -> ::String
Returns
-
(::String) — 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".
#disk_type=
def disk_type=(value) -> ::String
Parameter
-
value (::String) — 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
-
(::String) — 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".
#end_date
def end_date() -> ::Google::Type::Date
Returns
- (::Google::Type::Date) — Optional. The end date of usage.
#end_date=
def end_date=(value) -> ::Google::Type::Date
Parameter
- value (::Google::Type::Date) — Optional. The end date of usage.
Returns
- (::Google::Type::Date) — Optional. The end date of usage.
#gpu_type
def gpu_type() -> ::String
Returns
-
(::String) — 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.
#gpu_type=
def gpu_type=(value) -> ::String
Parameter
-
value (::String) — 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
-
(::String) — 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.
#is_spot
def is_spot() -> ::Boolean
Returns
- (::Boolean) — Optional. Set true to export usage for spot resources.
#is_spot=
def is_spot=(value) -> ::Boolean
Parameter
- value (::Boolean) — Optional. Set true to export usage for spot resources.
Returns
- (::Boolean) — Optional. Set true to export usage for spot resources.
#machine_family
def machine_family() -> ::String
Returns
-
(::String) — 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.
#machine_family=
def machine_family=(value) -> ::String
Parameter
-
value (::String) — 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
-
(::String) — 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.
#machine_shape
def machine_shape() -> ::Google::Cloud::CapacityPlanner::V1beta::MachineShape
Returns
- (::Google::Cloud::CapacityPlanner::V1beta::MachineShape) — Optional. The machine shape for the time series values to export.
#machine_shape=
def machine_shape=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::MachineShape
Parameter
- value (::Google::Cloud::CapacityPlanner::V1beta::MachineShape) — Optional. The machine shape for the time series values to export.
Returns
- (::Google::Cloud::CapacityPlanner::V1beta::MachineShape) — Optional. The machine shape for the time series values to export.
#output_config
def output_config() -> ::Google::Cloud::CapacityPlanner::V1beta::OutputConfig
Returns
- (::Google::Cloud::CapacityPlanner::V1beta::OutputConfig) — Required. Output configuration indicating where the results will be output to.
#output_config=
def output_config=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::OutputConfig
Parameter
- value (::Google::Cloud::CapacityPlanner::V1beta::OutputConfig) — Required. Output configuration indicating where the results will be output to.
Returns
- (::Google::Cloud::CapacityPlanner::V1beta::OutputConfig) — Required. Output configuration indicating where the results will be output to.
#parent
def parent() -> ::String
Returns
- (::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}
#parent=
def parent=(value) -> ::String
Parameter
- value (::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}
Returns
- (::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}
#resource_type
def resource_type() -> ::String
Returns
-
(::String) — 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".
#resource_type=
def resource_type=(value) -> ::String
Parameter
-
value (::String) — 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
-
(::String) — 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".
#start_date
def start_date() -> ::Google::Type::Date
Returns
- (::Google::Type::Date) — Optional. The start date of usage.
#start_date=
def start_date=(value) -> ::Google::Type::Date
Parameter
- value (::Google::Type::Date) — Optional. The start date of usage.
Returns
- (::Google::Type::Date) — Optional. The start date of usage.
#tpu_type
def tpu_type() -> ::String
Returns
-
(::String) — Optional. The TPU type for the
UsageHistory
values to return. Empty tpu_type will return results matching all TPUs.
#tpu_type=
def tpu_type=(value) -> ::String
Parameter
-
value (::String) — Optional. The TPU type for the
UsageHistory
values to return. Empty tpu_type will return results matching all TPUs.
Returns
-
(::String) — Optional. The TPU type for the
UsageHistory
values to return. Empty tpu_type will return results matching all TPUs.
#usage_aggregation_method
def usage_aggregation_method() -> ::Google::Cloud::CapacityPlanner::V1beta::UsageHistory::AggregationMethod
Returns
- (::Google::Cloud::CapacityPlanner::V1beta::UsageHistory::AggregationMethod) — 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.
#usage_aggregation_method=
def usage_aggregation_method=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::UsageHistory::AggregationMethod
Parameter
- value (::Google::Cloud::CapacityPlanner::V1beta::UsageHistory::AggregationMethod) — 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
- (::Google::Cloud::CapacityPlanner::V1beta::UsageHistory::AggregationMethod) — 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.