Backup and DR Service V1 API - Class Google::Cloud::BackupDR::V1::AllocationAffinity (v0.3.0)

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

#consume_allocation_type=

def consume_allocation_type=(value) -> ::Google::Cloud::BackupDR::V1::AllocationAffinity::Type
Parameter
Returns

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