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
System.Object
ResourcePolicy
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Google.Apis.Compute.v1.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
| Type |
Description |
| System.String |
|
Description
Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
| Type |
Description |
| System.String |
|
ETag
Declaration
public virtual string ETag { get; set; }
Property Value
| Type |
Description |
| System.String |
|
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
| Type |
Description |
| System.Nullable<System.UInt64> |
|
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
| Type |
Description |
| System.String |
|
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
| Type |
Description |
| System.String |
|
Region
Declaration
[JsonProperty("region")]
public virtual string Region { get; set; }
Property Value
| Type |
Description |
| System.String |
|
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
| Type |
Description |
| System.String |
|
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
| Type |
Description |
| System.String |
|
Implements