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.
(== resource_for {$api_version}.resourcePolicies ==)
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.Compute.v1.Data
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
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
GroupPlacementPolicy
Resource policy for instacnes for placement configuration.
Declaration
[JsonProperty("groupPlacementPolicy")]
public virtual ResourcePolicyGroupPlacementPolicy GroupPlacementPolicy { get; set; }
Property Value
| Type | Description |
|---|---|
| ResourcePolicyGroupPlacementPolicy |
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> |
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 |
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
| Type | Description |
|---|---|
| ResourcePolicySnapshotSchedulePolicy |
Status
[Output Only] The status of resource policy creation.
Declaration
[JsonProperty("status")]
public virtual string Status { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |