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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-08 UTC."],[[["\u003cp\u003eThis page details the \u003ccode\u003eResourcePolicy\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Compute.V1\u003c/code\u003e namespace, which is used to manage and schedule actions for Compute Engine resources, such as persistent disk snapshots.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version documented is 3.6.0, and documentation for versions ranging from 1.0.0 to 3.6.0 of the \u003ccode\u003eResourcePolicy\u003c/code\u003e class are available to view.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eResourcePolicy\u003c/code\u003e class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eObject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties such as \u003ccode\u003eCreationTimestamp\u003c/code\u003e, \u003ccode\u003eDescription\u003c/code\u003e, \u003ccode\u003eId\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, and several policy-related properties like \u003ccode\u003eGroupPlacementPolicy\u003c/code\u003e, \u003ccode\u003eInstanceSchedulePolicy\u003c/code\u003e, and \u003ccode\u003eSnapshotSchedulePolicy\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe properties have outputs like \u003ccode\u003eCreationTimestamp\u003c/code\u003e, \u003ccode\u003eId\u003c/code\u003e, and \u003ccode\u003eSelfLink\u003c/code\u003e, and the ResourcePolicy resource has a \u003ccode\u003estatus\u003c/code\u003e that can be used to check the state of the resource policy creation.\u003c/p\u003e\n"]]],[],null,[]]