Identity and Access Management (IAM) v3beta API - Class PolicyBinding.Types.Target (1.0.0-beta01)
public sealed class PolicyBinding.Types.Target : IMessage<PolicyBinding.Types.Target>, IEquatable<PolicyBinding.Types.Target>, IDeepCloneable<PolicyBinding.Types.Target>, IBufferMessage, IMessage
Reference documentation and code samples for the Identity and Access Management (IAM) v3beta API class PolicyBinding.Types.Target.
Target is the full resource name of the resource to which the policy will
be bound. Immutable once set.
Immutable. Full Resource Name used for principal access boundary policy
bindings. The principal set must be directly parented by the policy
binding's parent or same as the parent if the target is a
project/folder/organization.
[[["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 PolicyBinding.Types.Target (1.0.0-beta01)\n\n public sealed class PolicyBinding.Types.Target : IMessage\u003cPolicyBinding.Types.Target\u003e, IEquatable\u003cPolicyBinding.Types.Target\u003e, IDeepCloneable\u003cPolicyBinding.Types.Target\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Identity and Access Management (IAM) v3beta API class PolicyBinding.Types.Target.\n\nTarget is the full resource name of the resource to which the policy will\nbe bound. Immutable once set. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e PolicyBinding.Types.Target \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PolicyBinding](/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.PolicyBinding)[Types](/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.PolicyBinding.Types)[Target](/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.PolicyBinding.Types.Target), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PolicyBinding](/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.PolicyBinding)[Types](/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.PolicyBinding.Types)[Target](/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.PolicyBinding.Types.Target), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PolicyBinding](/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.PolicyBinding)[Types](/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.PolicyBinding.Types)[Target](/dotnet/docs/reference/Google.Cloud.Iam.V3Beta/latest/Google.Cloud.Iam.V3Beta.PolicyBinding.Types.Target), [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### Target()\n\n public Target()\n\n### Target(Target)\n\n public Target(PolicyBinding.Types.Target other)\n\nProperties\n----------\n\n### HasPrincipalSet\n\n public bool HasPrincipalSet { get; }\n\nGets whether the \"principal_set\" field is set\n\n### PrincipalSet\n\n public string PrincipalSet { get; set; }\n\nImmutable. Full Resource Name used for principal access boundary policy\nbindings. The principal set must be directly parented by the policy\nbinding's parent or same as the parent if the target is a\nproject/folder/organization.\n\nExamples:\n\n- For binding's parented by an organization:\n - Organization: `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`\n - Workforce Identity: `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`\n - Workspace Identity: `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`\n- For binding's parented by a folder:\n - Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`\n- For binding's parented by a project:\n - Project:\n - `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`\n - `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`\n - Workload Identity Pool: `//iam.googleapis.com/projects/PROJECT_NUMBER/locations/LOCATION/workloadIdentityPools/WORKLOAD_POOL_ID`\n\n### TargetCase\n\n public PolicyBinding.Types.Target.TargetOneofCase TargetCase { get; }"]]