release_tracks: [BETA, GA]

help_text:
  brief: |
    List `AuthzPolicy` resources.
  description: |
    List all `AuthzPolicy` resources in the specified location of the
    current project.
  examples: |
      To list all `AuthzPolicy` resources in the current project located
      in `us-central1` region run:

        $ {command} --location=us-central1

request: &request
  BETA:
    api_version: v1beta1
  GA:
    api_version: v1

  collection: networksecurity.projects.locations.authzPolicies

arguments:
  resource:
    spec: !REF googlecloudsdk.command_lib.network_security.resources:location
    help_text: |
      The parent location.

response:
  id_field: name

output:
  format: |
      table(
        name.basename():label=NAME,
        target.loadBalancingScheme,
        updateTime.date(unit=1000, tz_default=UTC):label=LAST_MODIFIED
      )
