public sealed class VmExtensionPolicy : IMessage<VmExtensionPolicy>, IEquatable<VmExtensionPolicy>, IDeepCloneable<VmExtensionPolicy>, IBufferMessage, IMessageReference documentation and code samples for the Compute Engine v1 API class VmExtensionPolicy.
Represents a VM extension policy.
Implements
IMessageVmExtensionPolicy, IEquatableVmExtensionPolicy, IDeepCloneableVmExtensionPolicy, IBufferMessage, IMessageNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
VmExtensionPolicy()
public VmExtensionPolicy()VmExtensionPolicy(VmExtensionPolicy)
public VmExtensionPolicy(VmExtensionPolicy other)| Parameter | |
|---|---|
| Name | Description |
other |
VmExtensionPolicy |
Properties
CreationTimestamp
public string CreationTimestamp { get; set; }Output only. [Output Only] Creation timestamp inRFC3339 text format.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Description
public string Description { get; set; }An optional description of this resource.
| Property Value | |
|---|---|
| Type | Description |
string |
|
ExtensionPolicies
public MapField<string, VmExtensionPolicyExtensionPolicy> ExtensionPolicies { get; }Required. A map of extension names (for example, "ops-agent") to their corresponding policy configurations.
| Property Value | |
|---|---|
| Type | Description |
MapFieldstringVmExtensionPolicyExtensionPolicy |
|
GlobalResourceLink
public string GlobalResourceLink { get; set; }Optional. Output only. [Output Only] Link to the global policy that manages this zone policy, if applicable.
| Property Value | |
|---|---|
| Type | Description |
string |
|
HasCreationTimestamp
public bool HasCreationTimestamp { get; }Gets whether the "creation_timestamp" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasDescription
public bool HasDescription { get; }Gets whether the "description" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasGlobalResourceLink
public bool HasGlobalResourceLink { get; }Gets whether the "global_resource_link" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasId
public bool HasId { get; }Gets whether the "id" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasKind
public bool HasKind { get; }Gets whether the "kind" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasManagedByGlobal
public bool HasManagedByGlobal { get; }Gets whether the "managed_by_global" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasName
public bool HasName { get; }Gets whether the "name" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasPriority
public bool HasPriority { get; }Gets whether the "priority" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasSelfLink
public bool HasSelfLink { get; }Gets whether the "self_link" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasSelfLinkWithId
public bool HasSelfLinkWithId { get; }Gets whether the "self_link_with_id" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasState
public bool HasState { get; }Gets whether the "state" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasUpdateTimestamp
public bool HasUpdateTimestamp { get; }Gets whether the "update_timestamp" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
Id
public ulong Id { get; set; }Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
| Property Value | |
|---|---|
| Type | Description |
ulong |
|
InstanceSelectors
public RepeatedField<VmExtensionPolicyInstanceSelector> InstanceSelectors { get; }Optional. Selectors to target VMs for this policy. VMs are selected if they match any of the provided selectors (logical OR). If this list is empty, the policy applies to all VMs.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldVmExtensionPolicyInstanceSelector |
|
Kind
public string Kind { get; set; }Output only. [Output Only] Type of the resource. Alwayscompute#vmExtensionPolicy.
| Property Value | |
|---|---|
| Type | Description |
string |
|
ManagedByGlobal
public bool ManagedByGlobal { get; set; }Optional. Output only. [Output Only] Indicates if this policy is managed by a global policy.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
Name
public string Name { get; set; }Name of the resource. Provided by the client when the resource is created.
The name must be 1-63 characters long, and comply withRFC1035.
Specifically, the name must be 1-63 characters long and match the regular
expression [a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all
following characters must be a dash, lowercase letter, or digit, except
the last character, which cannot be a dash.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Priority
public int Priority { get; set; }Optional. Priority of this policy. Used to resolve conflicts when multiple policies apply to the same extension. The policy priority is an integer from 0 to 65535, inclusive. Lower integers indicate higher priorities. If you do not specify a priority when creating a rule, it is assigned a priority of 1000. If priorities are equal, the policy with the most recent creation timestamp takes precedence.
| Property Value | |
|---|---|
| Type | Description |
int |
|
SelfLink
public string SelfLink { get; set; }Output only. [Output Only] Server-defined fully-qualified URL for this resource.
| Property Value | |
|---|---|
| Type | Description |
string |
|
SelfLinkWithId
public string SelfLinkWithId { get; set; }Output only. [Output Only] Server-defined URL for this resource's resource id.
| Property Value | |
|---|---|
| Type | Description |
string |
|
State
public string State { get; set; }Optional. Output only. [Output Only] Current state of the policy: ACTIVE or DELETING. Check the State enum for the list of possible values.
| Property Value | |
|---|---|
| Type | Description |
string |
|
UpdateTimestamp
public string UpdateTimestamp { get; set; }Output only. [Output Only] Update timestamp inRFC3339 text format.
| Property Value | |
|---|---|
| Type | Description |
string |
|