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
- (::Google::Cloud::CapacityPlanner::V1beta::UsageHistory::AggregationMethod) — Optional. Aggregation Method of the historical reservation usage
#aggregation_method=
def aggregation_method=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::UsageHistory::AggregationMethod
- value (::Google::Cloud::CapacityPlanner::V1beta::UsageHistory::AggregationMethod) — Optional. Aggregation Method of the historical reservation usage
- (::Google::Cloud::CapacityPlanner::V1beta::UsageHistory::AggregationMethod) — Optional. Aggregation Method of the historical reservation usage
#cloud_resource_type
def cloud_resource_type() -> ::String
- (::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
- 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".
- (::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
- (::Google::Type::Date) — Optional. The end date of reservations usage.
#end_date=
def end_date=(value) -> ::Google::Type::Date
- value (::Google::Type::Date) — Optional. The end date of reservations usage.
- (::Google::Type::Date) — Optional. The end date of reservations usage.
#gpu_type
def gpu_type() -> ::String
- (::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
- 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.
- (::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
- (::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
- value (::Boolean) — Optional. Whether to include pending for approval reservations in the response. This field is only applicable for future reservations.
- (::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
- (::Google::Cloud::CapacityPlanner::V1beta::TimeSeries::LocationType) — Optional. The location level of the reservations usage timeseries.
#location_level=
def location_level=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::TimeSeries::LocationType
- value (::Google::Cloud::CapacityPlanner::V1beta::TimeSeries::LocationType) — Optional. The location level of the reservations usage timeseries.
- (::Google::Cloud::CapacityPlanner::V1beta::TimeSeries::LocationType) — Optional. The location level of the reservations usage timeseries.
#machine_family
def machine_family() -> ::String
- (::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
- 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.
- (::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
- (::Google::Cloud::CapacityPlanner::V1beta::MachineShape) — Optional. The machine_shape as a filter to select matching reservations.
#machine_shape=
def machine_shape=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::MachineShape
- value (::Google::Cloud::CapacityPlanner::V1beta::MachineShape) — Optional. The machine_shape as a filter to select matching reservations.
- (::Google::Cloud::CapacityPlanner::V1beta::MachineShape) — Optional. The machine_shape as a filter to select matching reservations.
#ownership_type
def ownership_type() -> ::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::OwnershipType
- (::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::OwnershipType) — Optional. Types of ownerships to filter reservations based on. In case of OWNED, it filters reservations which are owned by selected parent project/folder/organization. If unspecified, all types are included.
#ownership_type=
def ownership_type=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::OwnershipType
- value (::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::OwnershipType) — Optional. Types of ownerships to filter reservations based on. In case of OWNED, it filters reservations which are owned by selected parent project/folder/organization. If unspecified, all types are included.
- (::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::OwnershipType) — Optional. Types of ownerships to filter reservations based on. In case of OWNED, it filters reservations which are owned by selected parent project/folder/organization. If unspecified, all types are included.
#parent
def parent() -> ::String
-
(::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
-
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}
-
(::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
- (::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::ReservationDataLevel) — Optional. Reservations output data format.
#reservation_data_level=
def reservation_data_level=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::ReservationDataLevel
- value (::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::ReservationDataLevel) — Optional. Reservations output data format.
- (::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::ReservationDataLevel) — Optional. Reservations output data format.
#reservation_type
def reservation_type() -> ::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::ReservationType
- (::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::ReservationType) — Optional. The Reservation type for example, future reservation request and allocation. If unspecified, all types are included.
#reservation_type=
def reservation_type=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::ReservationType
- value (::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::ReservationType) — Optional. The Reservation type for example, future reservation request and allocation. If unspecified, all types are included.
- (::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::ReservationType) — Optional. The Reservation type for example, future reservation request and allocation. If unspecified, all types are included.
#share_type
def share_type() -> ::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::ShareType
- (::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::ShareType) — Optional. Types of share settings to filter reservations in response. If unspecified, all types are included.
#share_type=
def share_type=(value) -> ::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::ShareType
- value (::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::ShareType) — Optional. Types of share settings to filter reservations in response. If unspecified, all types are included.
- (::Google::Cloud::CapacityPlanner::V1beta::QueryReservationsRequest::ShareType) — Optional. Types of share settings to filter reservations in response. If unspecified, all types are included.
#start_date
def start_date() -> ::Google::Type::Date
- (::Google::Type::Date) — Optional. The start date of reservations usage.
#start_date=
def start_date=(value) -> ::Google::Type::Date
- value (::Google::Type::Date) — Optional. The start date of reservations usage.
- (::Google::Type::Date) — Optional. The start date of reservations usage.