- release_tracks: [GA, BETA, ALPHA]

  help_text:
    brief: |
      List all Managed Microsoft AD domain backups.
    description: |
      List all Managed Microsoft AD domain backups in the specified Managed Microsoft AD domain.

      Displays associated Active Directory domain backups.

      This command can fail for the following reasons:
        * The active account doesn't have permission to access the specified
          domain.
    examples: |
      To list all AD domain backups in the project `my-project` under domain
      `my-domain.com`, run:

        $ {command} --project=my-project --domain=my-domain.com --limit=5

  request: &request
    collection: managedidentities.projects.locations.global.domains.backups
    ALPHA:
      api_version: v1alpha1
    BETA:
      api_version: v1beta1
    GA:
      api_version: v1

  arguments:
    resource:
      spec: !REF googlecloudsdk.command_lib.active_directory.resources:domain
      help_text: |
        Name of the domain for which you want to list all associated Managed Microsoft AD domain backups.

  response:
    id_field: name

  output:
    format: |
      table(
        name.basename():label=NAME,
        backup:label=BACKUP,
        state:label=STATE,
        type:label=TYPE,
        description:label=DESCRIPTION,
        createTime.date()
      )
