Class GuestPolicies.Assignment (2.22.0)

public static final class GuestPolicies.Assignment extends GeneratedMessageV3 implements GuestPolicies.AssignmentOrBuilder

An assignment represents the group or groups of VM instances that the policy applies to.

If an assignment is empty, it applies to all VM instances. Otherwise, the targeted VM instances must meet all the criteria specified. So if both labels and zones are specified, the policy applies to VM instances with those labels and in those zones.

Protobuf type google.cloud.osconfig.v1beta.Assignment

Static Fields

GROUP_LABELS_FIELD_NUMBER

public static final int GROUP_LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

INSTANCES_FIELD_NUMBER

public static final int INSTANCES_FIELD_NUMBER
Field Value
TypeDescription
int

INSTANCE_NAME_PREFIXES_FIELD_NUMBER

public static final int INSTANCE_NAME_PREFIXES_FIELD_NUMBER
Field Value
TypeDescription
int

OS_TYPES_FIELD_NUMBER

public static final int OS_TYPES_FIELD_NUMBER
Field Value
TypeDescription
int

ZONES_FIELD_NUMBER

public static final int ZONES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GuestPolicies.Assignment getDefaultInstance()
Returns
TypeDescription
GuestPolicies.Assignment

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static GuestPolicies.Assignment.Builder newBuilder()
Returns
TypeDescription
GuestPolicies.Assignment.Builder

newBuilder(GuestPolicies.Assignment prototype)

public static GuestPolicies.Assignment.Builder newBuilder(GuestPolicies.Assignment prototype)
Parameter
NameDescription
prototypeGuestPolicies.Assignment
Returns
TypeDescription
GuestPolicies.Assignment.Builder

parseDelimitedFrom(InputStream input)

public static GuestPolicies.Assignment parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GuestPolicies.Assignment