public sealed class DeployPolicyResourceSelector : IMessage<DeployPolicyResourceSelector>, IEquatable<DeployPolicyResourceSelector>, IDeepCloneable<DeployPolicyResourceSelector>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Deploy v1 API class DeployPolicyResourceSelector.
Contains information on the resources to select for a deploy policy.
Attributes provided must all match the resource in order for policy
restrictions to apply. For example, if delivery pipelines attributes given
are an id "prod" and labels "foo: bar", a delivery pipeline resource must
match both that id and have that label in order to be subject to the policy.
[[["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-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eDeployPolicyResourceSelector\u003c/code\u003e class in the Google Cloud Deploy v1 API is used to define resource selection criteria for deploy policies.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows specification of attributes for delivery pipelines and targets to enforce policy restrictions based on matching attributes.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this document is 3.4.0, and there are multiple prior versions of the \u003ccode\u003eDeployPolicyResourceSelector\u003c/code\u003e, dating back to version 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDeployPolicyResourceSelector\u003c/code\u003e is a class that implements \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\u003e\u003ccode\u003eDeployPolicyResourceSelector\u003c/code\u003e contains two optional properties that are used to enforce policies, \u003ccode\u003eDeliveryPipeline\u003c/code\u003e and \u003ccode\u003eTarget\u003c/code\u003e, that each have their own set of attributes.\u003c/p\u003e\n"]]],[],null,[]]