
    q	                     Z    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\	5      r
g	)
z-API client library for Application Templates.    )absolute_import)division)unicode_literals)utils)basec                   Z    \ rS rSrSr\R                  R                  4S jr  SS jr	Sr
g)ApplicationTemplatesClient   z:Client for Application Templates in the Design Center API.c                     [         R                  " U5      U l        [         R                  " U5      U l        U R                  R
                  U l        g )N)r   GetClientInstanceclientGetMessagesModulemessages.projects_locations_spaces_applicationTemplates_service)selfrelease_tracks     Alib/googlecloudsdk/api_lib/design_center/application_templates.py__init__#ApplicationTemplatesClient.__init__   s7    ))-8DK++M:DMKKNNDM    Nc                     U(       d  [        S5      eU R                  R                  UUS9nU(       a  X&l        OU(       a  X6l        U R                  R                  UUS9nU R                  R                  U5      $ )a  Calls the ImportApplicationTemplateIaC RPC.

Args:
  name: str, The full resource name of the Application Template.
  gcs_uri: str, The GCS URI of the IaC source.
  iac_module: messages.IaCModule, The IaCModule object.
  allow_partial_import: bool, Whether to allow partial imports.
  validate_iac: bool, Whether to only validate the IaC.

Returns:
  The response from the API call.
z2Application template name cannot be empty or None.)allowPartialImportvalidateIac)name#importApplicationTemplateIaCRequest)
ValueErrorr   #ImportApplicationTemplateIaCRequestgcsUri	iacModuleGDesigncenterProjectsLocationsSpacesApplicationTemplatesImportIaCRequestr   	ImportIaC)r   r   gcs_uri
iac_moduleallow_partial_importvalidate_iacimport_iac_requestrequests           r   	ImportIac$ApplicationTemplatesClient.ImportIac!   s     KLLJJ/  K " ")	%/"mmcc,> d @G ==""7++r   )r   r   r   )NNFF)__name__
__module____qualname____firstlineno____doc__r   ReleaseTrackALPHAr   r)   __static_attributes__ r   r   r	   r	      s'    B#'#4#4#:#: O
 6:9>,r   r	   N)r/   
__future__r   r   r   $googlecloudsdk.api_lib.design_centerr   googlecloudsdk.callioper   objectr	   r3   r   r   <module>r8      s%    4 &  ' 6 (&, &,r   