Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class AllocationAffinity.
Specifies the reservations that this instance can consume from.
Generated from protobuf message google.cloud.backupdr.v1.AllocationAffinity
Namespace
Google \ Cloud \ BackupDR \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ consume_allocation_type
int
Optional. Specifies the type of reservation from which this instance can consume
↳ key
string
Optional. Corresponds to the label key of a reservation resource.
↳ values
array
Optional. Corresponds to the label values of a reservation resource.
getConsumeAllocationType
Optional. Specifies the type of reservation from which this instance can consume
int
hasConsumeAllocationType
clearConsumeAllocationType
setConsumeAllocationType
Optional. Specifies the type of reservation from which this instance can consume
var
int
$this
getKey
Optional. Corresponds to the label key of a reservation resource.
string
hasKey
clearKey
setKey
Optional. Corresponds to the label key of a reservation resource.
var
string
$this
getValues
Optional. Corresponds to the label values of a reservation resource.
setValues
Optional. Corresponds to the label values of a reservation resource.
var
string[]
$this