Reference documentation and code samples for the Backup and DR Service V1 API class Google::Cloud::BackupDR::V1::AllocationAffinity.
Specifies the reservations that this instance can consume from.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#consume_allocation_type
def consume_allocation_type() -> ::Google::Cloud::BackupDR::V1::AllocationAffinity::Type
Returns
- (::Google::Cloud::BackupDR::V1::AllocationAffinity::Type) — Optional. Specifies the type of reservation from which this instance can consume
#consume_allocation_type=
def consume_allocation_type=(value) -> ::Google::Cloud::BackupDR::V1::AllocationAffinity::Type
Parameter
- value (::Google::Cloud::BackupDR::V1::AllocationAffinity::Type) — Optional. Specifies the type of reservation from which this instance can consume
Returns
- (::Google::Cloud::BackupDR::V1::AllocationAffinity::Type) — Optional. Specifies the type of reservation from which this instance can consume
#key
def key() -> ::String
Returns
- (::String) — Optional. Corresponds to the label key of a reservation resource.
#key=
def key=(value) -> ::String
Parameter
- value (::String) — Optional. Corresponds to the label key of a reservation resource.
Returns
- (::String) — Optional. Corresponds to the label key of a reservation resource.
#values
def values() -> ::Array<::String>
Returns
- (::Array<::String>) — Optional. Corresponds to the label values of a reservation resource.
#values=
def values=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — Optional. Corresponds to the label values of a reservation resource.
Returns
- (::Array<::String>) — Optional. Corresponds to the label values of a reservation resource.