
    !                     V    d Z ddlmZ ddlmZ ddlmZ  G d dej                        Z	y)z<Generated client library for cloudlocationfinder version v1.    )absolute_import)base_api)cloudlocationfinder_v1_messagesc                        e Zd ZdZeZdZdZdZdgZ	dZ
dZdZd	Zd ZdZd
Z	 	 	 	 	 d fd	Z G d dej&                        Z G d dej&                        Z G d dej&                        Z xZS )CloudlocationfinderV1zDGenerated client library for service cloudlocationfinder version v1.z+https://cloudlocationfinder.googleapis.com/z0https://cloudlocationfinder.mtls.googleapis.com/cloudlocationfinderz.https://www.googleapis.com/auth/cloud-platformv1	CLIENT_IDCLIENT_SECRETzgoogle-cloud-sdkNc                     |xs | j                   }t        t        |   |||||||||	|
|       | j	                  |       | _        | j                  |       | _        | j                  |       | _	        y)z(Create a new cloudlocationfinder handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)
BASE_URLsuperr   __init__&ProjectsLocationsCloudLocationsService!projects_locations_cloudLocationsProjectsLocationsServiceprojects_locationsProjectsServiceprojects)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               alib/googlecloudsdk/generated_clients/apis/cloudlocationfinder/v1/cloudlocationfinder_v1_client.pyr   zCloudlocationfinderV1.__init__   s     
C	
/'d%l)3 7+ 0 - .2-X-XY]-^D*";;DAD((.DM    c                   n     e Zd ZdZdZ fdZd
dZd e_        d
dZd e_        d
dZ	d	 e	_         xZ
S )<CloudlocationfinderV1.ProjectsLocationsCloudLocationsServicezAService class for the projects_locations_cloudLocations resource.r   c                 N    t         t        j                  |   |       i | _        y N)r   r   r   r   _upload_configsr    clientr"   s     r#   r   zECloudlocationfinderV1.ProjectsLocationsCloudLocationsService.__init__3   s$    !HH$XY_`dr$   c                 L    | j                  d      }| j                  |||      S )aC  Retrieves a resource containing information about a cloud location.

      Args:
        request: (CloudlocationfinderProjectsLocationsCloudLocationsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (CloudLocation) The response message.
      Getglobal_paramsGetMethodConfig
_RunMethodr    requestr/   configs       r#   r-   z@CloudlocationfinderV1.ProjectsLocationsCloudLocationsService.Get8   1     ##E*f__
'  8 8r$   c                  F    t        j                  ddddgdgg ddddd	
      S )NzRv1/projects/{projectsId}/locations/{locationsId}/cloudLocations/{cloudLocationsId}GETz9cloudlocationfinder.projects.locations.cloudLocations.getname
v1/{+name} <CloudlocationfinderProjectsLocationsCloudLocationsGetRequestCloudLocationF	flat_pathhttp_method	method_idordered_paramspath_paramsquery_paramsrelative_pathrequest_fieldrequest_type_nameresponse_type_namesupports_downloadr   ApiMethodInfo r$   r#   <lambda>zECloudlocationfinderV1.ProjectsLocationsCloudLocationsService.<lambda>E   s4     6 6fMxH"X*!r$   c                 L    | j                  d      }| j                  |||      S )aG  Lists cloud locations under a given project and location.

      Args:
        request: (CloudlocationfinderProjectsLocationsCloudLocationsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListCloudLocationsResponse) The response message.
      Listr.   r0   r3   s       r#   rO   zACloudlocationfinderV1.ProjectsLocationsCloudLocationsService.ListS   1     ##F+f__
'  8 8r$   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nz?v1/projects/{projectsId}/locations/{locationsId}/cloudLocationsr8   z:cloudlocationfinder.projects.locations.cloudLocations.listparent)filterpageSize	pageTokenzv1/{+parent}/cloudLocationsr;   =CloudlocationfinderProjectsLocationsCloudLocationsListRequestListCloudLocationsResponseFr>   rJ   rL   r$   r#   rM   zECloudlocationfinderV1.ProjectsLocationsCloudLocationsService.<lambda>`   s4    !7!7SN zJ83Y7"r$   c                 L    | j                  d      }| j                  |||      S )aL  Searches for cloud locations from a given source location.

      Args:
        request: (CloudlocationfinderProjectsLocationsCloudLocationsSearchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (SearchCloudLocationsResponse) The response message.
      Searchr.   r0   r3   s       r#   rY   zCCloudlocationfinderV1.ProjectsLocationsCloudLocationsService.Searchn   s1     ##H-f__
'  8 8r$   c                  J    t        j                  ddddgdgg ddddd	d
      S )NzFv1/projects/{projectsId}/locations/{locationsId}/cloudLocations:searchr8   z<cloudlocationfinder.projects.locations.cloudLocations.searchrR   )rT   rU   querysourceCloudLocationz"v1/{+parent}/cloudLocations:searchr;   ?CloudlocationfinderProjectsLocationsCloudLocationsSearchRequestSearchCloudLocationsResponseFr>   rJ   rL   r$   r#   rM   zECloudlocationfinderV1.ProjectsLocationsCloudLocationsService.<lambda>{   s4    8#9#9ZP zJN:[9$r$   r(   )__name__
__module____qualname____doc___NAMEr   r-   method_configrO   rY   __classcell__r"   s   @r#   r   r&   .   s@    K/E
8C8D8Fr$   r   c                   V     e Zd ZdZdZ fdZddZd e_        ddZd e_         xZ	S )	.CloudlocationfinderV1.ProjectsLocationsServicez2Service class for the projects_locations resource.r   c                 N    t         t        j                  |   |       i | _        y r(   )r   r   r   r   r)   r*   s     r#   r   z7CloudlocationfinderV1.ProjectsLocationsService.__init__   s#    !::DJ6Rdr$   c                 L    | j                  d      }| j                  |||      S )a  Gets information about a location.

      Args:
        request: (CloudlocationfinderProjectsLocationsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Location) The response message.
      r-   r.   r0   r3   s       r#   r-   z2CloudlocationfinderV1.ProjectsLocationsService.Get   r6   r$   c                  F    t        j                  ddddgdgg ddddd	
      S )Nz0v1/projects/{projectsId}/locations/{locationsId}r8   z*cloudlocationfinder.projects.locations.getr9   r:   r;   .CloudlocationfinderProjectsLocationsGetRequestLocationFr>   rJ   rL   r$   r#   rM   z7CloudlocationfinderV1.ProjectsLocationsService.<lambda>   s4     6 6D>xH"J%!r$   c                 L    | j                  d      }| j                  |||      S )a<  Lists information about the supported locations for this service.

      Args:
        request: (CloudlocationfinderProjectsLocationsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListLocationsResponse) The response message.
      rO   r.   r0   r3   s       r#   rO   z3CloudlocationfinderV1.ProjectsLocationsService.List   rP   r$   c                  J    t        j                  ddddgdgg ddddd	d
      S )Nz"v1/projects/{projectsId}/locationsr8   z+cloudlocationfinder.projects.locations.listr9   )extraLocationTypesrS   rT   rU   zv1/{+name}/locationsr;   /CloudlocationfinderProjectsLocationsListRequestListLocationsResponseFr>   rJ   rL   r$   r#   rM   z7CloudlocationfinderV1.ProjectsLocationsService.<lambda>   s4    !7!76?xHN,K2"r$   r(   )
r_   r`   ra   rb   rc   r   r-   rd   rO   re   rf   s   @r#   r   rh      s1    < E
8C8Dr$   r   c                   &     e Zd ZdZdZ fdZ xZS )%CloudlocationfinderV1.ProjectsServicez(Service class for the projects resource.r   c                 N    t         t        j                  |   |       i | _        y r(   )r   r   r   r   r)   r*   s     r#   r   z.CloudlocationfinderV1.ProjectsService.__init__   s#    !114A&Idr$   )r_   r`   ra   rb   rc   r   re   rf   s   @r#   r   rt      s    2E r$   r   )r;   NTNNFFNNNN)r_   r`   ra   rb   messagesMESSAGES_MODULEr   MTLS_BASE_URL_PACKAGE_SCOPES_VERSION
_CLIENT_ID_CLIENT_SECRET_USER_AGENT_CLIENT_CLASS_NAME_URL_VERSION_API_KEYr   r   BaseApiServicer   r   r   re   rf   s   @r#   r   r   
   s    L/:(D-"(=>'(*"."+.,()-6:/4<@?C	/&Yx/F/F Yv>!8!8 >@//  r$   r   N)
rb   
__future__r   apitools.base.pyr   <googlecloudsdk.generated_clients.apis.cloudlocationfinder.v1r   rv   BaseApiClientr   rL   r$   r#   <module>r      s'    B ' % tGH22 Gr$   