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.
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.
[[["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 2025-03-31 UTC."],[[["The latest version available for `Google.Cloud.Compute.V1.ResourcePolicy` is 3.6.0, with a variety of previous versions accessible, ranging from 3.5.0 down to 1.0.0."],["`ResourcePolicy` objects in Google Cloud Compute allow scheduling actions for resources like persistent disk snapshots, and are part of the `Google.Cloud.Compute.V1` namespace."],["`ResourcePolicy` objects can utilize resource policies for instances or persistent disks, such as `GroupPlacementPolicy`, `InstanceSchedulePolicy`, and `SnapshotSchedulePolicy`."],["The `ResourcePolicy` class implements several interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, providing a range of functionalities for data handling."],["`ResourcePolicy` objects have properties such as `CreationTimestamp`, `Description`, `Id`, and `Status` that provide details about the resource and its state, all having a `Has` counterpart to know if they are set."]]],[]]