
                             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
  ej                  dd	d
d      Z G d dej                        Zy)z1A command that describes a registered gcloud API.    )absolute_import)division)unicode_literals)base)flags)
propertiesz--enforce-collection
store_trueTzFail unless resource belongs to specified collection. This is applicable only if method being called is GET or DELETE and resource identifier is URL.)actiondefaulthelpc                   &    e Zd ZdZed        Zd Zy)Callz-Calls an API method with specific parameters.c                 ,   t         j                  j                  |        t         j                  j                  |        t        j                  |        t         j
                  j                  |        | j                  dt         j                  d       y )Nmethodz%The name of the API method to invoke.)r
   r   )r   API_VERSION_FLAGAddToParserCOLLECTION_FLAGENFORCE_COLLECTION_FLAGRAW_FLAGAddDynamicPositionalMethodDynamicPositionalAction)parsers    %lib/surface/meta/apis/methods/call.pyArgsz	Call.Args'   sl    	&&v.	%%f-''/	NNv&
224   6    c                     t         j                  j                  j                  j	                  d       |j
                  j                         }|S )NT)r   VALUEScore
enable_griSetr   r   )selfargsresponses      r   RunzCall.Run2   s9    %%))$/{{!HOr   N)__name__
__module____qualname____doc__staticmethodr   r$    r   r   r   r   $   s    56 6r   r   N)r(   
__future__r   r   r   googlecloudsdk.callioper   $googlecloudsdk.command_lib.meta.apisr   googlecloudsdk.corer   Argumentr   Commandr   r*   r   r   <module>r1      sM     8 &  ' ( 6 * ($--
+	, 4<< r   