public sealed class ResourcePolicy : IMessage<ResourcePolicy>, IEquatable<ResourcePolicy>, IDeepCloneable<ResourcePolicy>, IBufferMessage, IMessageReference 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.
Implements
IMessage<ResourcePolicy>, IEquatable<ResourcePolicy>, IDeepCloneable<ResourcePolicy>, IBufferMessage, IMessageNamespace
Google.Cloud.Compute.V1Assembly
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 |
|
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 |
Boolean |
|
HasDescription
public bool HasDescription { get; }Gets whether the "description" field is set
| Property Value | |
|---|---|
| Type | Description |
Boolean |
|
HasId
public bool HasId { get; }Gets whether the "id" field is set
| Property Value | |
|---|---|
| Type | Description |
Boolean |
|
HasKind
public bool HasKind { get; }Gets whether the "kind" field is set
| Property Value | |
|---|---|
| Type | Description |
Boolean |
|
HasName
public bool HasName { get; }Gets whether the "name" field is set
| Property Value | |
|---|---|
| Type | Description |
Boolean |
|
HasRegion
public bool HasRegion { get; }Gets whether the "region" field is set
| Property Value | |
|---|---|
| Type | Description |
Boolean |
|
HasSelfLink
public bool HasSelfLink { get; }Gets whether the "self_link" field is set
| Property Value | |
|---|---|
| Type | Description |
Boolean |
|
HasStatus
public bool HasStatus { get; }Gets whether the "status" field is set
| Property Value | |
|---|---|
| Type | Description |
Boolean |
|
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 |
UInt64 |
|
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 |
|
SelfLink
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 |
|