Capacity Planner V1BETA API - Class Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest (v0.1.0)

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

The QueryReservations request.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#aggregation_method

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

#aggregation_method=

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

#cloud_resource_type

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

#cloud_resource_type=

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

#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 for the reserved 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 reserved 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 reserved 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.

#include_unapproved_reservations

def include_unapproved_reservations() -> ::Boolean
Returns
  • (::Boolean) — Optional. Whether to include pending for approval reservations in the response. This field is only applicable for future reservations.

#include_unapproved_reservations=

def include_unapproved_reservations=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Optional. Whether to include pending for approval reservations in the response. This field is only applicable for future reservations.
Returns
  • (::Boolean) — Optional. Whether to include pending for approval reservations in the response. This field is only applicable for future reservations.

#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 use to select the aggregate reserved values to return. Possible values include "n1", and "n2d" etc. Empty machine_family will return results matching all machine families.

#machine_family=

def machine_family=(value) -> ::String
Parameter
  • value (::String) — Optional. The machine family to use to select the aggregate reserved values to return. Possible values include "n1", and "n2d" etc. Empty machine_family will return results matching all machine families.
Returns
  • (::String) — Optional. The machine family to use to select the aggregate reserved values to return. Possible values include "n1", and "n2d" etc. Empty machine_family will return results matching all machine families.

#machine_shape

def machine_shape() -> ::Google::Cloud::CapacityPlanner::V1beta::MachineShape
Returns

#machine_shape=

def machine_shape=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::MachineShape
Parameter
Returns

#ownership_type

def ownership_type() -> ::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::OwnershipType
Returns

#ownership_type=

def ownership_type=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::OwnershipType
Parameter
Returns

#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}

#reservation_data_level

def reservation_data_level() -> ::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::ReservationDataLevel
Returns

#reservation_data_level=

def reservation_data_level=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::ReservationDataLevel
Parameter
Returns

#reservation_type

def reservation_type() -> ::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::ReservationType
Returns

#reservation_type=

def reservation_type=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::ReservationType
Parameter
Returns

#share_type

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

#share_type=

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

#start_date

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

#start_date=

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