Compute Engine v1 API - Class ResourcePolicy (3.2.0)

public sealed class ResourcePolicy : IMessage<ResourcePolicy>, IEquatable<ResourcePolicy>, IDeepCloneable<ResourcePolicy>, IBufferMessage, IMessage

Reference documentation and code samples for the Compute Engine v1 API 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

object > ResourcePolicy

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

ResourcePolicy()

public ResourcePolicy()

ResourcePolicy(ResourcePolicy)

public ResourcePolicy(ResourcePolicy other)
Parameter
Name Description
other ResourcePolicy

Properties

CreationTimestamp

public string CreationTimestamp { get; set; }

[Output Only] Creation timestamp in RFC3339 text format.

Property Value
Type Description
string

Description

public string Description { get; set; }
Property Value
Type Description
string

DiskConsistencyGroupPolicy

public ResourcePolicyDiskConsistencyGroupPolicy DiskConsistencyGroupPolicy { get; set; }

Resource policy for disk consistency groups.

Property Value
Type Description
ResourcePolicyDiskConsistencyGroupPolicy

GroupPlacementPolicy

public ResourcePolicyGroupPlacementPolicy GroupPlacementPolicy { get; set; }

Resource policy for instances for placement configuration.

Property Value
Type Description
ResourcePolicyGroupPlacementPolicy

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

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

HasName

public bool HasName { get; }

Gets whether the "name" field is set

Property Value
Type Description
bool

HasRegion

public bool HasRegion { get; }

Gets whether the "region" field is set

Property Value
Type Description
bool
public bool HasSelfLink { get; }

Gets whether the "self_link" field is set

Property Value
Type Description
bool

HasStatus

public bool HasStatus { get; }

Gets whether the "status" field is set

Property Value
Type Description
bool

Id

public ulong Id { get; set; }

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

Property Value
Type Description
ulong

InstanceSchedulePolicy

public ResourcePolicyInstanceSchedulePolicy InstanceSchedulePolicy { get; set; }

Resource policy for scheduling instance operations.

Property Value
Type Description
ResourcePolicyInstanceSchedulePolicy

Kind

public string Kind { get; set; }

[Output Only] Type of the resource. Always compute#resource_policies for resource policies.

Property Value
Type Description
string

Name

public string Name { get; set; }

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.

Property Value
Type Description
string

Region

public string Region { get; set; }
Property Value
Type Description
string

ResourceStatus

public ResourcePolicyResourceStatus ResourceStatus { get; set; }

[Output Only] The system status of the resource policy.

Property Value
Type Description
ResourcePolicyResourceStatus
public string SelfLink { get; set; }

[Output Only] Server-defined fully-qualified URL for this resource.

Property Value
Type Description
string

SnapshotSchedulePolicy

public ResourcePolicySnapshotSchedulePolicy SnapshotSchedulePolicy { get; set; }

Resource policy for persistent disks for creating snapshots.

Property Value
Type Description
ResourcePolicySnapshotSchedulePolicy

Status

public string Status { get; set; }

[Output Only] The status of resource policy creation. Check the Status enum for the list of possible values.

Property Value
Type Description
string