Reference documentation and code samples for the Cloud Dataproc V1 API class Google::Cloud::Dataproc::V1::ReservationAffinity.
Reservation Affinity for consuming Zonal reservation.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#consume_reservation_type
def consume_reservation_type() -> ::Google::Cloud::Dataproc::V1::ReservationAffinity::Type
Returns
- (::Google::Cloud::Dataproc::V1::ReservationAffinity::Type) — Optional. Type of reservation to consume
#consume_reservation_type=
def consume_reservation_type=(value) -> ::Google::Cloud::Dataproc::V1::ReservationAffinity::Type
Parameter
- value (::Google::Cloud::Dataproc::V1::ReservationAffinity::Type) — Optional. Type of reservation to consume
Returns
- (::Google::Cloud::Dataproc::V1::ReservationAffinity::Type) — Optional. Type of reservation to consume
#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 resource.
#values=
def values=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — Optional. Corresponds to the label values of reservation resource.
Returns
- (::Array<::String>) — Optional. Corresponds to the label values of reservation resource.