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 latest version available for the \u003ccode\u003eDeployPolicyResourceSelector\u003c/code\u003e is 3.4.0, but the current page is focused on version 3.3.0 of the Google Cloud Deploy v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeployPolicyResourceSelector\u003c/code\u003e class is used to specify the resources that a deploy policy should apply to.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces such as \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\u003eThe \u003ccode\u003eDeployPolicyResourceSelector\u003c/code\u003e class includes properties for \u003ccode\u003eDeliveryPipeline\u003c/code\u003e and \u003ccode\u003eTarget\u003c/code\u003e attributes to define the scope of the deploy policy.\u003c/p\u003e\n"],["\u003cp\u003eThere are numerous older versions available for \u003ccode\u003eDeployPolicyResourceSelector\u003c/code\u003e, all the way down to version 1.0.0, that can be accessed via the provided links.\u003c/p\u003e\n"]]],[],null,[]]