
    C                         d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z ddlm
Z
  G d d	ej                        Zy
)z&Describing Compute Engine commitments.    )absolute_import)division)unicode_literals)base_classes)base)flagsc                   4    e Zd ZdZddiZed        Zd Zd Zy)Describez%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                 P    t        j                  d      j                  | d       y )NFdescribe)operation_type)r   MakeCommitmentArgAddArgument)parsers    +lib/surface/compute/commitments/describe.pyArgszDescribe.Args&   s%    	E"..z / +    c                      y)Nzcompute.commitments )selfs    r   
CollectionzDescribe.Collection+   s     r   c                    t        j                  | j                               }|j                  }t	        j
                  d      j                  ||t        j                  |j                              }|j                  j                  j                  }|j                  j                  }|j                  |j                         |j                  |j                         }|j#                  |      S )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   RunzDescribe.Run.   s    **4+<+<+>?F  I,,U3EE"88G F IN
 mm++==G}}%%H99!&&(&&$$ : G
 ;;wr   N)	__name__
__module____qualname____doc__detailed_helpstaticmethodr   r   r0   r   r   r   r
   r
      s2    - 
- + +! r   r
   N)r4   
__future__r   r   r   googlecloudsdk.api_lib.computer   googlecloudsdk.callioper   "googlecloudsdk.command_lib.computer   r"   .googlecloudsdk.command_lib.compute.commitmentsDescribeCommandr
   r   r   r   <module>r=      s1    - &  ' 7 ( E @" t## " r   