Identity and Access Management (IAM) v3beta API - Class CreatePolicyBindingRequest (1.0.0-beta01)
public sealed class CreatePolicyBindingRequest : IMessage<CreatePolicyBindingRequest>, IEquatable<CreatePolicyBindingRequest>, IDeepCloneable<CreatePolicyBindingRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Identity and Access Management (IAM) v3beta API class CreatePolicyBindingRequest.
Required. The parent resource where this policy binding will be created.
The binding parent is the closest Resource Manager resource (project,
folder or organization) to the binding target.
[[["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."],[],[],null,["# Identity and Access Management (IAM) v3beta API - Class CreatePolicyBindingRequest (1.0.0-beta01)\n\n public sealed class CreatePolicyBindingRequest : IMessage\u003cCreatePolicyBindingRequest\u003e, IEquatable\u003cCreatePolicyBindingRequest\u003e, IDeepCloneable\u003cCreatePolicyBindingRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Identity and Access Management (IAM) v3beta API class CreatePolicyBindingRequest.\n\nRequest message for CreatePolicyBinding method. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreatePolicyBindingRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreatePolicyBindingRequest](/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.CreatePolicyBindingRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreatePolicyBindingRequest](/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.CreatePolicyBindingRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreatePolicyBindingRequest](/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.CreatePolicyBindingRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Iam.V3Beta](/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.Iam.V3Beta.dll\n\nConstructors\n------------\n\n### CreatePolicyBindingRequest()\n\n public CreatePolicyBindingRequest()\n\n### CreatePolicyBindingRequest(CreatePolicyBindingRequest)\n\n public CreatePolicyBindingRequest(CreatePolicyBindingRequest other)\n\nProperties\n----------\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The parent resource where this policy binding will be created.\nThe binding parent is the closest Resource Manager resource (project,\nfolder or organization) to the binding target.\n\nFormat:\n\n- `projects/{project_id}/locations/{location}`\n- `projects/{project_number}/locations/{location}`\n- `folders/{folder_id}/locations/{location}`\n- `organizations/{organization_id}/locations/{location}`\n\n### ParentAsFolderLocationName\n\n public FolderLocationName ParentAsFolderLocationName { get; set; }\n\n[FolderLocationName](/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.FolderLocationName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.CreatePolicyBindingRequest#Google_Cloud_Iam_V3Beta_CreatePolicyBindingRequest_Parent) resource name property.\n\n### ParentAsLocationName\n\n public LocationName ParentAsLocationName { get; set; }\n\n[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.CreatePolicyBindingRequest#Google_Cloud_Iam_V3Beta_CreatePolicyBindingRequest_Parent) resource name property.\n\n### ParentAsOrganizationLocationName\n\n public OrganizationLocationName ParentAsOrganizationLocationName { get; set; }\n\n[OrganizationLocationName](/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.OrganizationLocationName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.CreatePolicyBindingRequest#Google_Cloud_Iam_V3Beta_CreatePolicyBindingRequest_Parent) resource name property.\n\n### ParentAsResourceName\n\n public IResourceName ParentAsResourceName { get; set; }\n\n[IResourceName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.CreatePolicyBindingRequest#Google_Cloud_Iam_V3Beta_CreatePolicyBindingRequest_Parent) resource name property.\n\n### PolicyBinding\n\n public PolicyBinding PolicyBinding { get; set; }\n\nRequired. The policy binding to create.\n\n### PolicyBindingId\n\n public string PolicyBindingId { get; set; }\n\nRequired. The ID to use for the policy binding, which will become the final\ncomponent of the policy binding's resource name.\n\nThis value must start with a lowercase letter followed by up to 62\nlowercase letters, numbers, hyphens, or dots. Pattern,\n/\\[a-z\\]\\[a-z0-9-.\\]{2,62}/.\n\n### ValidateOnly\n\n public bool ValidateOnly { get; set; }\n\nOptional. If set, validate the request and preview the creation, but do not\nactually post it."]]