- release_tracks: [ALPHA, BETA, GA]

  help_text:
    brief: List all Privileged Access Manager (PAM) entitlements under a parent.
    description: List all Privileged Access Manager (PAM) entitlements in a project/folder/organization location.
    examples: |
      The following command lists all entitlements in a project named `sample-project` and in
      location `global`:

      $ {command} --project=sample-project --location=global

      The following command lists all entitlements in a folder with ID ``FOLDER_ID'' and in
      location `global`:

      $ {command} --folder=FOLDER_ID --location=global

      The following command lists all entitlements in an organization with ID ``ORGANIZATION_ID''
      and in location `global`:

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

  request:
    ALPHA:
      api_version: v1alpha
    BETA:
      api_version: v1beta
    GA:
      api_version: v1
    collection:
    - privilegedaccessmanager.projects.locations.entitlements
    - privilegedaccessmanager.folders.locations.entitlements
    - privilegedaccessmanager.organizations.locations.entitlements

  arguments:
    resource:
      spec: !REF googlecloudsdk.command_lib.pam.resources:location
      help_text: |
        Location of the entitlements.
