public sealed class PolicyBinding.Types.Target : IMessage<PolicyBinding.Types.Target>, IEquatable<PolicyBinding.Types.Target>, IDeepCloneable<PolicyBinding.Types.Target>, IBufferMessage, IMessageReference documentation and code samples for the Identity and Access Management (IAM) v3beta API class PolicyBinding.Types.Target.
The full resource name of the resource to which the policy will be bound. Immutable once set.
Implements
IMessagePolicyBindingTypesTarget, IEquatablePolicyBindingTypesTarget, IDeepCloneablePolicyBindingTypesTarget, IBufferMessage, IMessageNamespace
Google.Cloud.Iam.V3BetaAssembly
Google.Cloud.Iam.V3Beta.dll
Constructors
Target()
public Target()Target(Target)
public Target(PolicyBinding.Types.Target other)| Parameter | |
|---|---|
| Name | Description |
other |
PolicyBindingTypesTarget |
Properties
HasPrincipalSet
public bool HasPrincipalSet { get; }Gets whether the "principal_set" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasResource
public bool HasResource { get; }Gets whether the "resource" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
PrincipalSet
public string PrincipalSet { get; set; }Immutable. The full resource name that's 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, or organization.
Examples:
- For bindings parented by an organization:
- Organization:
//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID - Workforce Identity:
//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID - Workspace Identity:
//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID
- Organization:
- For bindings parented by a folder:
- Folder:
//cloudresourcemanager.googleapis.com/folders/FOLDER_ID
- Folder:
- For bindings parented by a project:
- Project:
//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER//cloudresourcemanager.googleapis.com/projects/PROJECT_ID
- Workload Identity Pool:
//iam.googleapis.com/projects/PROJECT_NUMBER/locations/LOCATION/workloadIdentityPools/WORKLOAD_POOL_ID
- Project:
| Property Value | |
|---|---|
| Type | Description |
string |
|
Resource
public string Resource { get; set; }Immutable. The full resource name that's used for access policy bindings.
Examples:
- Organization:
//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID - Folder:
//cloudresourcemanager.googleapis.com/folders/FOLDER_ID - Project:
//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER//cloudresourcemanager.googleapis.com/projects/PROJECT_ID
| Property Value | |
|---|---|
| Type | Description |
string |
|
TargetCase
public PolicyBinding.Types.Target.TargetOneofCase TargetCase { get; }| Property Value | |
|---|---|
| Type | Description |
PolicyBindingTypesTargetTargetOneofCase |
|