public sealed class GetPolicyOptions : IMessage<GetPolicyOptions>, IEquatable<GetPolicyOptions>, IDeepCloneable<GetPolicyOptions>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Identity and Access Management (IAM) v1 API class GetPolicyOptions.
Optional. The maximum policy version that will be used to format the
policy.
Valid values are 0, 1, and 3. Requests specifying an invalid value will be
rejected.
Requests for policies with any conditional role bindings must specify
version 3. Policies with no conditional role bindings may specify any valid
value or leave the field unset.
The policy in the response might use the policy version that you specified,
or it might use a lower policy version. For example, if you specify version
3, but the policy has no conditional role bindings, the response uses
version 1.
To learn which resources support conditions in their IAM policies, see the
IAM
documentation.
[[["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\u003eThis document provides reference documentation for the \u003ccode\u003eGetPolicyOptions\u003c/code\u003e class within the Google Cloud Identity and Access Management (IAM) v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetPolicyOptions\u003c/code\u003e class encapsulates settings used when calling \u003ccode\u003eGetIamPolicy\u003c/code\u003e and it implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetPolicyOptions\u003c/code\u003e has two constructors: a default constructor and a copy constructor that takes another \u003ccode\u003eGetPolicyOptions\u003c/code\u003e instance as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains a property called \u003ccode\u003eRequestedPolicyVersion\u003c/code\u003e which controls the maximum policy version used to format a policy and accepts values of 0, 1, or 3.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of the \u003ccode\u003eGetPolicyOptions\u003c/code\u003e class available, from version 2.2.0 all the way up to the latest 3.4.0, which are all accessible through their respective documentation pages.\u003c/p\u003e\n"]]],[],null,[]]