- release_tracks: [ALPHA, BETA]
  help_text:
    brief: |
      Describe a Cloud SQL integration against a Managed Microsoft AD domain.
    description: |
      Describe a Cloud SQL integration against a Managed Microsoft AD domain.

      Displays all details of a Cloud SQL integration given a valid integration ID.
    examples: |
      To describe a Cloud SQL integration with the ID
      `my-integration` under the managed AD domain `my-domain`, run:

        $ {command} my-integration --domain=my-domain --project=my-project


  request:
    ALPHA:
      api_version: v1alpha1
    BETA:
      api_version: v1beta1
    collection: managedidentities.projects.locations.global.domains.sqlIntegrations

  arguments:
    resource:
      spec: !REF googlecloudsdk.command_lib.active_directory.resources:sql_integration
      help_text: |
        Arguments and flags that specify the SQL integration you want to describe.

  response:
    id_field: name

  output:
    format: |
      table(
        name.basename():label=NAME,
        sqlInstance:label=SQL_INSTANCE,
        state:label=STATE,
        createTime.date()
      )
