
    8                        S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r  SSK	Jr  SSKJ
r
  SS	KJr  \R"                  " \R$                  R&                  5       " S
 S\R(                  5      5       rSSSS.\l        \R"                  " \R$                  R.                  \R$                  R0                  5       " S S\5      5       rg)z*Command for describing instance templates.    )absolute_import)division)unicode_literals)base_classes)base)flags)scope)	arg_utilsc                   f    \ rS rSrSrSrSr\S 5       r\	S 5       r
\	S 5       r\	S 5       rS	 rS
rg)
DescribeGA   z-Describe a virtual machine instance template.TFc                     [         R                  " U R                  S9[        l        [        R                  R                  USS9  U R                  (       a$  UR                  SSSS.[        R                  SS	9  g g )
N)include_regionaldescribe)operation_typez--viewz_Output contains all configuration details of the instance template, including partner metadata.zqDefault output view. Output contains all configuration details of the instance template, except partner metadata.)FULLBASICz9Specifies the information that the output should contain.)choicestypehelp)
r   MakeInstanceTemplateArgsupport_region_flagr   InstanceTemplateArgAddArgument	view_flagadd_argumentr
   ChoiceToEnumName)clsparsers     2lib/surface/compute/instance_templates/describe.pyArgsDescribeGA.Args#   s~    %*%B%B00&2J"""..z /  }}
;P	 ))J       c                     UR                  5       S:X  a  U R                  R                  $ U R                  R                  $ Nzcompute.instanceTemplates)
Collectionapitools_clientinstanceTemplatesregionInstanceTemplatesclientrefs     r    GetServiceClientDescribeGA.GetServiceClient;   s6    
~~66##555##;;;r#   c                     UR                  5       S:X  a  U R                  R                  $ U R                  R                  $ r%   )r&   messages"ComputeInstanceTemplatesGetRequest(ComputeRegionInstanceTemplatesGetRequestr*   s     r    GetRequestMessageDescribeGA.GetRequestMessageB   s2    
~~66__???__EEEr#   c                 t    U S:X  a  UR                   R                  $ U S:X  a  UR                   R                  $ g )Nr   r   )ViewValueValuesEnumr   r   )viewrequest_messages     r    GetViewEnumValueDescribeGA.GetViewEnumValueI   s7    v~00555	00666r#   c                 `   [         R                  " U R                  5       5      nUR                  n[        R
                  R                  UUR                  [        R                  " U5      [        R                  R                  S9nU R                  X45      nU R                  X45      nU R                  (       aJ  UR!                  USU" S0 UR#                  5       DSU R%                  UR&                  U5      0D64/5      S   $ UR!                  USU" S0 UR#                  5       D64/5      S   $ )N)scope_listerdefault_scopeGetr7   r    )r   ComputeApiHolderReleaseTrackr+   r   r   ResolveAsResource	resourcescompute_flagsGetDefaultScopeListercompute_scope	ScopeEnumGLOBALr-   r3   r   MakeRequestsAsDictr9   r7   )selfargsholderr+   instance_template_refservice_clientr8   s          r    RunDescribeGA.RunQ   s9   **4+<+<+>?F]]F&::LL"88@#--44	 M  **6IN,,VKO~~  


 %,,.(())_	# 	"	 	
 	 	 9/6689!    	
	 r#   r?   N)__name__
__module____qualname____firstlineno____doc__r   r   classmethodr!   staticmethodr-   r3   r9   rP   __static_attributes__r?   r#   r    r   r      se    5) . < < F F  r#   r   z,Describe a virtual machine instance templatez        *{command}* displays all data associated with a Google Compute
        Engine virtual machine instance template.
        z{        To describe the instance template named 'INSTANCE-TEMPLATE', run:

          $ {command} INSTANCE-TEMPLATE
        )briefDESCRIPTIONEXAMPLESc                       \ rS rSrSrSrg)DescribeBeta   Tr?   N)rR   rS   rT   rU   r   rY   r?   r#   r    r^   r^      s    )r#   r^   N)rV   
__future__r   r   r   googlecloudsdk.api_lib.computer   googlecloudsdk.callioper   "googlecloudsdk.command_lib.computer   rD   r	   rF   5googlecloudsdk.command_lib.compute.instance_templates$googlecloudsdk.command_lib.util.apisr
   ReleaseTracksrA   GADescribeCommandr   detailed_helpALPHABETAr^   r?   r#   r    <module>rl      s    1 &  ' 7 ( E E G : D%%(()P%% P *Ph <
  D%%++T->->-C-CD:  Er#   