Capacity Planner V1BETA API - Class Google::Cloud::CapacityPlanner::V1beta::ExportReservationsUsageRequest (v0.2.0)

Reference documentation and code samples for the Capacity Planner V1BETA API class Google::Cloud::CapacityPlanner::V1beta::ExportReservationsUsageRequest.

The ExportReservationsUsage request

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#cloud_resource_type

def cloud_resource_type() -> ::String
Returns
  • (::String) — Required. The resource for the ReservationsUsage values to return. Possible values include "gce-vcpus", "gce-ram", "gce-local-ssd", and "gce-gpu".

#cloud_resource_type=

def cloud_resource_type=(value) -> ::String
Parameter
  • value (::String) — Required. The resource for the ReservationsUsage values to return. Possible values include "gce-vcpus", "gce-ram", "gce-local-ssd", and "gce-gpu".
Returns
  • (::String) — Required. The resource for the ReservationsUsage values to return. Possible values include "gce-vcpus", "gce-ram", "gce-local-ssd", and "gce-gpu".

#end_date

def end_date() -> ::Google::Type::Date
Returns

#end_date=

def end_date=(value) -> ::Google::Type::Date
Parameter
Returns

#gpu_type

def gpu_type() -> ::String
Returns
  • (::String) — Optional. The GPU type to query reservations and usage by. For example: NVIDIA T4.

    Note: The following fields are mutually exclusive: gpu_type, machine_family, machine_shape. If a field in that set is populated, all other fields in the set will automatically be cleared.

#gpu_type=

def gpu_type=(value) -> ::String
Parameter
  • value (::String) — Optional. The GPU type to query reservations and usage by. For example: NVIDIA T4.

    Note: The following fields are mutually exclusive: gpu_type, machine_family, machine_shape. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::String) — Optional. The GPU type to query reservations and usage by. For example: NVIDIA T4.

    Note: The following fields are mutually exclusive: gpu_type, machine_family, machine_shape. If a field in that set is populated, all other fields in the set will automatically be cleared.

#location_level

def location_level() -> ::Google::Cloud::CapacityPlanner::V1beta::TimeSeries::LocationType
Returns

#location_level=

def location_level=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::TimeSeries::LocationType
Parameter
Returns

#machine_family

def machine_family() -> ::String
Returns
  • (::String) — Optional. The machine family to query reservations and usage by. For example: n1, n2d.

    Note: The following fields are mutually exclusive: machine_family, machine_shape, gpu_type. If a field in that set is populated, all other fields in the set will automatically be cleared.

#machine_family=

def machine_family=(value) -> ::String
Parameter
  • value (::String) — Optional. The machine family to query reservations and usage by. For example: n1, n2d.

    Note: The following fields are mutually exclusive: machine_family, machine_shape, gpu_type. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::String) — Optional. The machine family to query reservations and usage by. For example: n1, n2d.

    Note: The following fields are mutually exclusive: machine_family, machine_shape, gpu_type. If a field in that set is populated, all other fields in the set will automatically be cleared.

#machine_shape

def machine_shape() -> ::Google::Cloud::CapacityPlanner::V1beta::MachineShape
Returns
  • (::Google::Cloud::CapacityPlanner::V1beta::MachineShape) — Optional. The machine_shape as a filter to select matching reservations and its usage.

    Note: The following fields are mutually exclusive: machine_shape, machine_family, gpu_type. If a field in that set is populated, all other fields in the set will automatically be cleared.

#machine_shape=

def machine_shape=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::MachineShape
Parameter
  • value (::Google::Cloud::CapacityPlanner::V1beta::MachineShape) — Optional. The machine_shape as a filter to select matching reservations and its usage.

    Note: The following fields are mutually exclusive: machine_shape, machine_family, gpu_type. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::CapacityPlanner::V1beta::MachineShape) — Optional. The machine_shape as a filter to select matching reservations and its usage.

    Note: The following fields are mutually exclusive: machine_shape, machine_family, gpu_type. If a field in that set is populated, all other fields in the set will automatically be cleared.

#output_config

def output_config() -> ::Google::Cloud::CapacityPlanner::V1beta::OutputConfig
Returns

#output_config=

def output_config=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::OutputConfig
Parameter
Returns

#parent

def parent() -> ::String
Returns
  • (::String) — Required. The compute engine resource and location of the reservationsusage. 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 of the reservationsusage. 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 of the reservationsusage. The format is: projects/{project}/locations/{location} or organizations/{organization}/locations/{location} or folders/{folder}/locations/{location}

#share_type

def share_type() -> ::Google::Cloud::CapacityPlanner::V1beta::ExportReservationsUsageRequest::ShareType
Returns

#share_type=

def share_type=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::ExportReservationsUsageRequest::ShareType
Parameter
Returns

#start_date

def start_date() -> ::Google::Type::Date
Returns

#start_date=

def start_date=(value) -> ::Google::Type::Date
Parameter
Returns

#usage_aggregation_method

def usage_aggregation_method() -> ::Google::Cloud::CapacityPlanner::V1beta::UsageHistory::AggregationMethod
Returns

#usage_aggregation_method=

def usage_aggregation_method=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::UsageHistory::AggregationMethod
Parameter
Returns