- release_tracks: [ALPHA, BETA, GA]

  help_text:
    brief: Describe a membership.
    description: Describe a membership in a fleet.
    examples: |
      First retrieve the ID of the membership using the command below. The output of this command
      lists all the fleet's members, with their unique IDs in the NAME column:

        $ {parent_command} list

      Then describe it:

        $ {command} MEMBERSHIP

  request:
    collection: gkehub.projects.locations.memberships
    modify_request_hooks:
    - googlecloudsdk.command_lib.container.fleet.memberships.util:SetMembershipLocation
    ALPHA:
      api_version: v1alpha
    BETA:
      api_version: v1beta
    GA:
      api_version: v1

  arguments:
    resource:
      help_text: The cluster membership to describe.
      spec: !REF googlecloudsdk.command_lib.container.fleet.resources:membership
