release_tracks: [ALPHA, BETA, GA]

help_text:
  brief: |
    List address groups.
  description: |
    List all address groups in the specified location of an organization.
  examples: |
    To list address groups in an organization, run:

      $ {command} --location=global --organization=1234

request: &request
  ALPHA:
    api_version: v1alpha1
  BETA:
    api_version: v1beta1
  GA:
    api_version: v1
  collection: networksecurity.organizations.locations.addressGroups

arguments:
  resource:
    spec: !REF googlecloudsdk.command_lib.network_security.resources:orgLocation
    help_text: |
      The organization of the address groups to display.

response:
  id_field: name

output:
  format: |
    table(
       name.basename():label=NAME,
       type:label=TYPE,
       capacity:label=CAPACITY,
       items.len():label=USAGE
     )
