- release_tracks: [ALPHA, BETA, GA]
  help_text:
    brief: Add an IAM policy binding to a Policy Tag Taxonomy.
    description: Add an IAM policy binding to a Policy Tag Taxonomy.

    examples: |
      To add an IAM policy binding for the role of 'roles/editor' for the user 'test-user@gmail.com'
      with taxonomy 'TAXONOMY' in location 'LOCATION', run:

        $ {command} TAXONOMY --location='LOCATION' --member='user:test-user@gmail.com' --role='roles/editor'

      See https://cloud.google.com/iam/docs/managing-policies for details of
      policy role and member types.

  request:
    collection: datacatalog.projects.locations.taxonomies
    GA:
      api_version: v1

  arguments:
    resource:
      help_text: Policy tag taxonomy for which to add an IAM policy binding.
      spec: !REF googlecloudsdk.command_lib.data_catalog.resources:taxonomy
