public sealed class PatchInstanceFilter : IMessage<PatchInstanceFilter>, IEquatable<PatchInstanceFilter>, IDeepCloneable<PatchInstanceFilter>, IBufferMessage, IMessage
A filter to target VM instances for patching. The targeted VMs must meet all criteria specified. So if both labels and zones are specified, the patch job targets only VMs with those labels and in those zones.
Implements
IMessage<PatchInstanceFilter>, IEquatable<PatchInstanceFilter>, IDeepCloneable<PatchInstanceFilter>, IBufferMessage, IMessageNamespace
Google.Cloud.OsConfig.V1Assembly
Google.Cloud.OsConfig.V1.dll
Constructors
PatchInstanceFilter()
public PatchInstanceFilter()
PatchInstanceFilter(PatchInstanceFilter)
public PatchInstanceFilter(PatchInstanceFilter other)
Parameter | |
---|---|
Name | Description |
other | PatchInstanceFilter |
Properties
All
public bool All { get; set; }
Target all VM instances in the project. If true, no other criteria is permitted.
Property Value | |
---|---|
Type | Description |
Boolean |
GroupLabels
public RepeatedField<PatchInstanceFilter.Types.GroupLabel> GroupLabels { get; }
Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances.
Property Value | |
---|---|
Type | Description |
RepeatedField<PatchInstanceFilter.Types.GroupLabel> |
InstanceNamePrefixes
public RepeatedField<string> InstanceNamePrefixes { get; }
Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group VMs when targeting configs, for example prefix="prod-".
Property Value | |
---|---|
Type | Description |
RepeatedField<String> |
Instances
public RepeatedField<string> Instances { get; }
Targets any of the VM instances specified. Instances are specified by their
URI in the form zones/[ZONE]/instances/[INSTANCE_NAME]
,
projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]
, or
https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]
Property Value | |
---|---|
Type | Description |
RepeatedField<String> |
Zones
public RepeatedField<string> Zones { get; }
Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
Property Value | |
---|---|
Type | Description |
RepeatedField<String> |