public sealed class AllocationAffinity : IMessage<AllocationAffinity>, IEquatable<AllocationAffinity>, IDeepCloneable<AllocationAffinity>, IBufferMessage, IMessage
Reference documentation and code samples for the Backup and DR Service v1 API class AllocationAffinity.
Specifies the reservations that this instance can consume from.
Implements
IMessageAllocationAffinity, IEquatableAllocationAffinity, IDeepCloneableAllocationAffinity, IBufferMessage, IMessageNamespace
Google.Cloud.BackupDR.V1Assembly
Google.Cloud.BackupDR.V1.dll
Constructors
AllocationAffinity()
public AllocationAffinity()
AllocationAffinity(AllocationAffinity)
public AllocationAffinity(AllocationAffinity other)
Parameter | |
---|---|
Name | Description |
other |
AllocationAffinity |
Properties
ConsumeAllocationType
public AllocationAffinity.Types.Type ConsumeAllocationType { get; set; }
Optional. Specifies the type of reservation from which this instance can consume
Property Value | |
---|---|
Type | Description |
AllocationAffinityTypesType |
HasConsumeAllocationType
public bool HasConsumeAllocationType { get; }
Gets whether the "consume_allocation_type" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasKey
public bool HasKey { get; }
Gets whether the "key" field is set
Property Value | |
---|---|
Type | Description |
bool |
Key
public string Key { get; set; }
Optional. Corresponds to the label key of a reservation resource.
Property Value | |
---|---|
Type | Description |
string |
Values
public RepeatedField<string> Values { get; }
Optional. Corresponds to the label values of a reservation resource.
Property Value | |
---|---|
Type | Description |
RepeatedFieldstring |