public sealed class GetPolicyRequest : IMessage<GetPolicyRequest>, IEquatable<GetPolicyRequest>, IDeepCloneable<GetPolicyRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Organization Policy v2 API class GetPolicyRequest.
The request sent to the [GetPolicy]
[google.cloud.orgpolicy.v2.OrgPolicy.GetPolicy] method.
[[["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-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eGetPolicyRequest\u003c/code\u003e class within the Google Cloud Organization Policy v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API is 2.7.0, and there are multiple prior versions available, dating back to version 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetPolicyRequest\u003c/code\u003e 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 in its functionality.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetPolicyRequest\u003c/code\u003e class includes two constructors and properties, such as \u003ccode\u003eName\u003c/code\u003e, which is the resource name of the policy, and \u003ccode\u003ePolicyName\u003c/code\u003e, a typed view over the resource name property.\u003c/p\u003e\n"],["\u003cp\u003eThis class is used to construct the request for the \u003ccode\u003eGetPolicy\u003c/code\u003e method, and it inherits methods from the base \u003ccode\u003eobject\u003c/code\u003e class such as \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]