Reference documentation and code samples for the Cloud Workstations V1BETA API class Google::Cloud::Workstations::V1beta::WorkstationConfig::Host::GceInstance::ReservationAffinity.
ReservationAffinity is the configuration of the desired reservation from which instances can consume resources.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#consume_reservation_type
def consume_reservation_type() -> ::Google::Cloud::Workstations::V1beta::WorkstationConfig::Host::GceInstance::ReservationAffinity::Type
Returns
- (::Google::Cloud::Workstations::V1beta::WorkstationConfig::Host::GceInstance::ReservationAffinity::Type) — Optional. Corresponds to the type of reservation consumption.
#consume_reservation_type=
def consume_reservation_type=(value) -> ::Google::Cloud::Workstations::V1beta::WorkstationConfig::Host::GceInstance::ReservationAffinity::Type
Parameter
- value (::Google::Cloud::Workstations::V1beta::WorkstationConfig::Host::GceInstance::ReservationAffinity::Type) — Optional. Corresponds to the type of reservation consumption.
Returns
- (::Google::Cloud::Workstations::V1beta::WorkstationConfig::Host::GceInstance::ReservationAffinity::Type) — Optional. Corresponds to the type of reservation consumption.
#key
def key() -> ::String
Returns
- (::String) — Optional. Corresponds to the label key of reservation resource.
#key=
def key=(value) -> ::String
Parameter
- value (::String) — Optional. Corresponds to the label key of reservation resource.
Returns
- (::String) — Optional. Corresponds to the label key of reservation resource.
#values
def values() -> ::Array<::String>
Returns
- (::Array<::String>) — Optional. Corresponds to the label values of reservation resources. Valid values are either the name of a reservation in the same project or "projects/{project}/reservations/{reservation}" to target a shared reservation in the same zone but in a different project.
#values=
def values=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — Optional. Corresponds to the label values of reservation resources. Valid values are either the name of a reservation in the same project or "projects/{project}/reservations/{reservation}" to target a shared reservation in the same zone but in a different project.
Returns
- (::Array<::String>) — Optional. Corresponds to the label values of reservation resources. Valid values are either the name of a reservation in the same project or "projects/{project}/reservations/{reservation}" to target a shared reservation in the same zone but in a different project.