Send feedback
Class ResourcePolicy (1.4.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.4.0 keyboard_arrow_down
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()
ResourcePolicy(ResourcePolicy)
public ResourcePolicy(ResourcePolicy other)
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.
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.
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.
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.
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-19 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-09-19 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-19 UTC."]]