- release_tracks: [GA]
  universe_compatible: false

  help_text:
    brief: |
      List cleanup policies of an Artifact Registry repository.
    description: |
      List cleanup policies of an Artifact Registry repository.

      This command can fail for the following reasons:
        * The specified repository does not exist.
        * The active account does not have permission to list cleanup policies.

    examples: |
      To list cleanup policies for the repository `my-repo`, run:

         $ {command} my-repo

  arguments:
    resource:
      spec: !REF googlecloudsdk.command_lib.artifacts.resources:repository_without_property
      help_text: |
        The parent Artifact Registry repository for the list of cleanup policies.

  command_type: DESCRIBE
  request:
    api_version: v1
    collection: artifactregistry.projects.locations.repositories

  response:
    modify_response_hooks:
    - googlecloudsdk.command_lib.artifacts.util:AppendParentInfoToListPackagesResponse
    - googlecloudsdk.command_lib.artifacts.cleanup_policy_util:RepositoryToCleanupPoliciesResponse

  output:
    format: json
