Show / Hide Table of Contents

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
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Compute.alpha.Data
Assembly: Google.Apis.Compute.alpha.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
string

Description

Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
Type Description
string

DiskConsistencyGroupPolicy

Resource policy for disk consistency groups.

Declaration
[JsonProperty("diskConsistencyGroupPolicy")]
public virtual ResourcePolicyDiskConsistencyGroupPolicy DiskConsistencyGroupPolicy { get; set; }
Property Value
Type Description
ResourcePolicyDiskConsistencyGroupPolicy

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

GroupPlacementPolicy

Resource policy for instances 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
ulong?

InstanceSchedulePolicy

Resource policy for scheduling instance operations.

Declaration
[JsonProperty("instanceSchedulePolicy")]
public virtual ResourcePolicyInstanceSchedulePolicy InstanceSchedulePolicy { get; set; }
Property Value
Type Description
ResourcePolicyInstanceSchedulePolicy

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
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
string

Region

Declaration
[JsonProperty("region")]
public virtual string Region { get; set; }
Property Value
Type Description
string

ResourceStatus

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

Declaration
[JsonProperty("resourceStatus")]
public virtual ResourcePolicyResourceStatus ResourceStatus { get; set; }
Property Value
Type Description
ResourcePolicyResourceStatus

SelfLink

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

Declaration
[JsonProperty("selfLink")]
public virtual string SelfLink { get; set; }
Property Value
Type Description
string

SelfLinkWithId

[Output Only] Server-defined URL for this resource with the resource id.

Declaration
[JsonProperty("selfLinkWithId")]
public virtual string SelfLinkWithId { get; set; }
Property Value
Type Description
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
string

VmMaintenancePolicy

Resource policy applicable to VMs for infrastructure maintenance.

Declaration
[JsonProperty("vmMaintenancePolicy")]
public virtual ResourcePolicyVmMaintenancePolicy VmMaintenancePolicy { get; set; }
Property Value
Type Description
ResourcePolicyVmMaintenancePolicy

WorkloadPolicy

Declaration
[JsonProperty("workloadPolicy")]
public virtual ResourcePolicyWorkloadPolicy WorkloadPolicy { get; set; }
Property Value
Type Description
ResourcePolicyWorkloadPolicy

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX