Class ResourcePolicy
Represents a Resource Policy resource. You can use resource policies to schedule actions for some Compute Engine
resources. For example, you can use them to schedule persistent disk snapshots.
Inheritance
ResourcePolicy
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class ResourcePolicy : IDirectResponseSchema
Properties
CreationTimestamp
[Output Only] Creation timestamp in RFC3339 text format.
Declaration
[JsonProperty("creationTimestamp")]
public virtual string CreationTimestamp { get; set; }
Property Value
Description
Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
DiskConsistencyGroupPolicy
Resource policy for disk consistency groups.
Declaration
[JsonProperty("diskConsistencyGroupPolicy")]
public virtual ResourcePolicyDiskConsistencyGroupPolicy DiskConsistencyGroupPolicy { get; set; }
Property Value
ETag
Declaration
public virtual string ETag { get; set; }
Property Value
GroupPlacementPolicy
Resource policy for instances for placement configuration.
Declaration
[JsonProperty("groupPlacementPolicy")]
public virtual ResourcePolicyGroupPlacementPolicy GroupPlacementPolicy { get; set; }
Property Value
Id
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
Declaration
[JsonProperty("id")]
public virtual ulong? Id { get; set; }
Property Value
InstanceSchedulePolicy
Resource policy for scheduling instance operations.
Declaration
[JsonProperty("instanceSchedulePolicy")]
public virtual ResourcePolicyInstanceSchedulePolicy InstanceSchedulePolicy { get; set; }
Property Value
Kind
[Output Only] Type of the resource. Always compute#resource_policies for resource policies.
Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
Name
The name of the resource, provided by the client when initially creating the resource. The resource name
must be 1-63 characters long, and comply with RFC1035. 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.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Region
Declaration
[JsonProperty("region")]
public virtual string Region { get; set; }
Property Value
ResourceStatus
[Output Only] The system status of the resource policy.
Declaration
[JsonProperty("resourceStatus")]
public virtual ResourcePolicyResourceStatus ResourceStatus { get; set; }
Property Value
SelfLink
[Output Only] Server-defined fully-qualified URL for this resource.
Declaration
[JsonProperty("selfLink")]
public virtual string SelfLink { get; set; }
Property Value
SelfLinkWithId
[Output Only] Server-defined URL for this resource with the resource id.
Declaration
[JsonProperty("selfLinkWithId")]
public virtual string SelfLinkWithId { get; set; }
Property Value
SnapshotSchedulePolicy
Resource policy for persistent disks for creating snapshots.
Declaration
[JsonProperty("snapshotSchedulePolicy")]
public virtual ResourcePolicySnapshotSchedulePolicy SnapshotSchedulePolicy { get; set; }
Property Value
Status
[Output Only] The status of resource policy creation.
Declaration
[JsonProperty("status")]
public virtual string Status { get; set; }
Property Value
VmMaintenancePolicy
Resource policy applicable to VMs for infrastructure maintenance.
Declaration
[JsonProperty("vmMaintenancePolicy")]
public virtual ResourcePolicyVmMaintenancePolicy VmMaintenancePolicy { get; set; }
Property Value
WorkloadPolicy
Declaration
[JsonProperty("workloadPolicy")]
public virtual ResourcePolicyWorkloadPolicy WorkloadPolicy { get; set; }
Property Value
Implements