- release_tracks: [ALPHA, GA]

  help_text:
    brief: Get the IAM policy for a code repository index repository group.
    description: |
      *{command}* displays the IAM policy associated with a code repository index repository 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 a target ``my-repository-group'', run:

        $ {command} my-repository-group --region=us-central1 --code-repository-index=my-index

  request:
    ALPHA:
      api_version: v1alpha
    GA:
      api_version: v1
    collection: cloudaicompanion.projects.locations.codeRepositoryIndexes.repositoryGroups

  arguments:
    resource:
      help_text: The repository group for which to display the IAM policy.
      spec: !REF googlecloudsdk.command_lib.gemini.resources:repository_group
