public sealed class GetPolicyRequest : IMessage<GetPolicyRequest>, IEquatable<GetPolicyRequest>, IDeepCloneable<GetPolicyRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Identity and Access Management (IAM) v2 API class GetPolicyRequest.
Required. The resource name of the policy to retrieve. Format:
policies/{attachment_point}/denypolicies/{policy_id}
Use the URL-encoded full resource name, which means that the forward-slash
character, /, must be written as %2F. For example,
policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy.
For organizations and folders, use the numeric ID in the full resource
name. For projects, you can use the alphanumeric or the numeric ID.
[[["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-03-21 UTC."],[[["The latest version of the `GetPolicyRequest` class is 1.3.0, part of the Google Cloud Identity and Access Management (IAM) v2 API."],["`GetPolicyRequest` serves as the request message for retrieving a policy, as described in the documentation."],["This class inherits from the `object` class and implements interfaces such as `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The `GetPolicyRequest` class contains a `Name` property of type string, which is a required field representing the resource name of the policy being retrieved, with specific formatting requirements."],["There are two constructors available for creating an instance of `GetPolicyRequest`: a default constructor and a constructor that copies data from another `GetPolicyRequest` object."]]],[]]