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.

Inheritance

object > PolicyBinding.Types.Target

Namespace

Google.Cloud.Iam.V3Beta

Assembly

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

PrincipalSet

public string PrincipalSet { get; 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.

Examples:

  • For binding's 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
  • For binding's parented by a folder:
    • Folder: //cloudresourcemanager.googleapis.com/folders/FOLDER_ID
  • For binding's 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
Property Value
Type Description
string

TargetCase

public PolicyBinding.Types.Target.TargetOneofCase TargetCase { get; }
Property Value
Type Description
PolicyBindingTypesTargetTargetOneofCase