
                         b    S r SSKJr  SSKJr  SSKJr  SSKJr   " S S\R                  5      r
g)z&Describing Compute Engine commitments.    )base_classes)base)flagsc                   <    \ rS rSrSrSS0r\S 5       rS rS r	Sr
g	)
Describe   z%Describe a Compute Engine commitment.EXAMPLESz
        To describe the commitment called ``commitment-1'' in the ``us-central1''
        region, run:

          $ {command} commitment-1 --region=us-central1
      c                 L    [         R                  " S5      R                  U SS9  g )NFdescribe)operation_type)r   MakeCommitmentArgAddArgument)parsers    +lib/surface/compute/commitments/describe.pyArgsDescribe.Args#   s%    	E"..z / +    c                     g)Nzcompute.commitments )selfs    r   
CollectionDescribe.Collection(   s     r   c                    [         R                  " U R                  5       5      nUR                  n[        R
                  " S5      R                  UU[        R                  " UR                  5      S9nUR                  R                  R                  nUR                  R                  nUR                  UR                  5       UR                  UR                   S9nUR#                  U5      $ )NF)scope_lister)
commitmentprojectregion)r   ComputeApiHolderReleaseTrack	resourcesr   r   ResolveAsResourcecompute_flagsGetDefaultScopeListerclientapitools_clientregionCommitmentsmessages"ComputeRegionCommitmentsGetRequestNamer   r   Get)r   argsholderr    commitment_refservicer'   requests           r   RunDescribe.Run+   s    **4+<+<+>?F  I,,U3EE"88G F IN
 mm++==G}}%%H99!&&(&&$$ : G
 ;;wr   r   N)__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r   r0   __static_attributes__r   r   r   r   r      s2    - 
- + +! r   r   N)r6   googlecloudsdk.api_lib.computer   googlecloudsdk.callioper   "googlecloudsdk.command_lib.computer   r"   .googlecloudsdk.command_lib.compute.commitmentsDescribeCommandr   r   r   r   <module>r?      s*    - 8 ( E @" t## " r   