- release_tracks: [GA]
  help_text:
    brief: Remove an IAM policy binding from a Data Catalog entry group.
    description: Remove an IAM policy binding from a Data Catalog entry group.
    examples: |
      To remove an IAM policy binding for the role of 'roles/editor' for the
      user 'test-user@gmail.com' on entry group 'group1' with location
      'us-central1', run:

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

      To remove an IAM policy binding for the role of 'roles/editor' from all
      authenticated users on entry group 'group1' with location
      'us-central1', run:

        $ {command} --location=us-central1 group1 --member='allAuthenticatedUsers' --role='roles/editor'

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

  request:
    api_version: v1
    collection: datacatalog.projects.locations.entryGroups

  arguments:
    resource:
      help_text: Entry group from which to remove the IAM policy binding.
      spec: !REF googlecloudsdk.command_lib.data_catalog.resources:entry_group
      is_positional: true

- release_tracks: [ALPHA, BETA]
  help_text:
    brief: Remove an IAM policy binding from a Data Catalog entry group.
    description: Remove an IAM policy binding from a Data Catalog entry group.
    examples: |
      To remove an IAM policy binding for the role of 'roles/editor' for the
      user 'test-user@gmail.com' on entry group 'group1' with location
      'us-central1', run:

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

      To remove an IAM policy binding for the role of 'roles/editor' from all
      authenticated users on entry group 'group1' with location
      'us-central1', run:

        $ {command} --location=us-central1 group1 --member='allAuthenticatedUsers' --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.entryGroups

  arguments:
    resource:
      help_text: Entry group from which to remove the IAM policy binding.
      spec: !REF googlecloudsdk.command_lib.data_catalog.resources:entry_group
      is_positional: true
