- release_tracks: [GA]

  help_text:
    brief: Get the IAM policy for a Data Catalog entry group.
    description: |
      *{command}* displays the IAM policy associated with a Data Catalog entry group.  If
      formatted as JSON, the output can be edited and used as a policy file for *set-iam-policy*.
      The output includes an "etag" field identifying the version emitted and allowing detection of
      concurrent policy updates; see $ {parent_command} set-iam-policy for additional details.
    examples: |
      To print the IAM policy for entry group 'group1' in 'us-central1', run:

        $ {command} --location=us-central1 group1

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

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

- release_tracks: [ALPHA, BETA]

  help_text:
    brief: Get the IAM policy for a Data Catalog entry group.
    description: |
      *{command}* displays the IAM policy associated with a Data Catalog entry group.  If
      formatted as JSON, the output can be edited and used as a policy file for *set-iam-policy*.
      The output includes an "etag" field identifying the version emitted and allowing detection of
      concurrent policy updates; see $ {parent_command} set-iam-policy for additional details.
    examples: |
      To print the IAM policy for entry group 'group1' in 'us-central1', run:

        $ {command} --location=us-central1 group1

  request:
    collection: datacatalog.projects.locations.entryGroups

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