Class ResourcePolicy (1.3.0)

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

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

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
Boolean

HasDescription

public bool HasDescription { get; }

Gets whether the "description" field is set

Property Value
TypeDescription
Boolean

HasId

public bool HasId { get; }

Gets whether the "id" field is set

Property Value
TypeDescription
Boolean

HasKind

public bool HasKind { get; }

Gets whether the "kind" field is set

Property Value
TypeDescription
Boolean

HasName

public bool HasName { get; }

Gets whether the "name" field is set

Property Value
TypeDescription
Boolean

HasRegion

public bool HasRegion { get; }

Gets whether the "region" field is set

Property Value
TypeDescription
Boolean
public bool HasSelfLink { get; }

Gets whether the "self_link" field is set

Property Value
TypeDescription
Boolean

HasStatus

public bool HasStatus { get; }

Gets whether the "status" field is set

Property Value
TypeDescription
Boolean

Id

public ulong Id { get; set; }

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

Property Value
TypeDescription
UInt64

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