Compute Engine v1 API - Class ResourcePolicy (2.10.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
NameDescription
otherResourcePolicy

Properties

CreationTimestamp

public string CreationTimestamp { get; set; }

[Output Only] Creation timestamp in RFC3339 text format.

Property Value
TypeDescription
string

Description

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

DiskConsistencyGroupPolicy

public ResourcePolicyDiskConsistencyGroupPolicy DiskConsistencyGroupPolicy { get; set; }

Resource policy for disk consistency groups.

Property Value
TypeDescription
ResourcePolicyDiskConsistencyGroupPolicy

GroupPlacementPolicy

public ResourcePolicyGroupPlacementPolicy GroupPlacementPolicy { get; set; }

Resource policy for instances for placement configuration.

Property Value
TypeDescription
ResourcePolicyGroupPlacementPolicy

HasCreationTimestamp

public bool HasCreationTimestamp { get; }

Gets whether the "creation_timestamp" field is set

Property Value
TypeDescription
bool

HasDescription

public bool HasDescription { get; }

Gets whether the "description" field is set

Property Value
TypeDescription
bool

HasId

public bool HasId { get; }

Gets whether the "id" field is set

Property Value
TypeDescription
bool

HasKind

public bool HasKind { get; }

Gets whether the "kind" field is set

Property Value
TypeDescription
bool

HasName

public bool HasName { get; }

Gets whether the "name" field is set

Property Value
TypeDescription
bool

HasRegion

public bool HasRegion { get; }

Gets whether the "region" field is set

Property Value
TypeDescription
bool
public bool HasSelfLink { get; }

Gets whether the "self_link" field is set

Property Value
TypeDescription
bool

HasStatus

public bool HasStatus { get; }

Gets whether the "status" field is set

Property Value
TypeDescription
bool

Id

public ulong Id { get; set; }

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

Property Value
TypeDescription
ulong

InstanceSchedulePolicy

public ResourcePolicyInstanceSchedulePolicy InstanceSchedulePolicy { get; set; }

Resource policy for scheduling instance operations.

Property Value
TypeDescription
ResourcePolicyInstanceSchedulePolicy

Kind

public string Kind { get; set; }

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

Property Value
TypeDescription
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
TypeDescription
string

Region

public string Region { get; set; }
Property Value
TypeDescription
string

ResourceStatus

public ResourcePolicyResourceStatus ResourceStatus { get; set; }

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

Property Value
TypeDescription
ResourcePolicyResourceStatus
public string SelfLink { get; set; }

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

Property Value
TypeDescription
string

SnapshotSchedulePolicy

public ResourcePolicySnapshotSchedulePolicy SnapshotSchedulePolicy { get; set; }

Resource policy for persistent disks for creating snapshots.

Property Value
TypeDescription
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
TypeDescription
string