
    (+                     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)z9Generated client library for cloudbuild version v1alpha1.    )absolute_import)base_api)cloudbuild_v1alpha1_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 G d dej&                        Z xZS )CloudbuildV1alpha1zAGenerated client library for service cloudbuild version v1alpha1.z"https://cloudbuild.googleapis.com/z'https://cloudbuild.mtls.googleapis.com/
cloudbuildz.https://www.googleapis.com/auth/cloud-platformv1alpha1	CLIENT_IDCLIENT_SECRETzgoogle-cloud-sdkNc                    |xs | j                   }t        t        |   |||||||||	|
|       | j	                  |       | _        | j                  |       | _        | j                  |       | _	        | j                  |       | _        y)zCreate a new cloudbuild handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)BASE_URLsuperr   __init__"ProjectsLocationsOperationsServiceprojects_locations_operationsProjectsLocationsServiceprojects_locationsProjectsWorkerPoolsServiceprojects_workerPoolsProjectsServiceprojects)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               [lib/googlecloudsdk/generated_clients/apis/cloudbuild/v1alpha1/cloudbuild_v1alpha1_client.pyr   zCloudbuildV1alpha1.__init__   s     
C	
d,'d%l)3 7+ - - *.)P)PQU)VD&";;DAD $ ? ? ED((.DM    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 )	5CloudbuildV1alpha1.ProjectsLocationsOperationsServicez=Service class for the projects_locations_operations resource.r   c                 N    t         t        j                  |   |       i | _        y N)r   r   r   r   _upload_configsr"   clientr$   s     r%   r   z>CloudbuildV1alpha1.ProjectsLocationsOperationsService.__init__4   s$    AA4QRXYdr&   c                 L    | j                  d      }| j                  |||      S )a7  Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.

      Args:
        request: (CloudbuildProjectsLocationsOperationsCancelRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Empty) The response message.
      Cancelglobal_paramsGetMethodConfig
_RunMethodr"   requestr1   configs       r%   r/   z<CloudbuildV1alpha1.ProjectsLocationsOperationsService.Cancel9   1     ##H-f__
'  8 8r&   c                  F    t        j                  ddddgdgg ddddd	
      S )NzWv1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancelPOSTz/cloudbuild.projects.locations.operations.cancelnamezv1alpha1/{+name}:cancelcancelOperationRequest2CloudbuildProjectsLocationsOperationsCancelRequestEmptyF	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>z>CloudbuildV1alpha1.ProjectsLocationsOperationsService.<lambda>F   s4    8#9#9kCxH/.N"$r&   c                 L    | j                  d      }| j                  |||      S )a  Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.

      Args:
        request: (CloudbuildProjectsLocationsOperationsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      Getr0   r2   r5   s       r%   rP   z9CloudbuildV1alpha1.ProjectsLocationsOperationsService.GetT   1     ##E*f__
'  8 8r&   c                  F    t        j                  ddddgdgg ddddd	
      S )NzPv1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}GETz,cloudbuild.projects.locations.operations.getr;   v1alpha1/{+name} /CloudbuildProjectsLocationsOperationsGetRequest	OperationFr?   rK   rM   r&   r%   rN   z>CloudbuildV1alpha1.ProjectsLocationsOperationsService.<lambda>a   s4     6 6d@xH(K&!r&   r*   )
__name__
__module____qualname____doc___NAMEr   r/   method_configrP   __classcell__r$   s   @r%   r   r(   /   s1    G+E
8F8Cr&   r   c                   &     e Zd ZdZdZ fdZ xZS )+CloudbuildV1alpha1.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   z4CloudbuildV1alpha1.ProjectsLocationsService.__init__t   s#    77GOdr&   rX   rY   rZ   r[   r\   r   r^   r_   s   @r%   r   ra   o   s    < E r&   r   c                        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	_        dd
Z
d e
_        ddZd e_         xZS )-CloudbuildV1alpha1.ProjectsWorkerPoolsServicez4Service class for the projects_workerPools resource.r   c                 N    t         t        j                  |   |       i | _        y r*   )r   r   r   r   r+   r,   s     r%   r   z6CloudbuildV1alpha1.ProjectsWorkerPoolsService.__init__~   s#    994I&Qdr&   c                 L    | j                  d      }| j                  |||      S )a5  Creates a `WorkerPool` to run the builds, and returns the new worker pool.

      Args:
        request: (CloudbuildProjectsWorkerPoolsCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (WorkerPool) The response message.
      Creater0   r2   r5   s       r%   rh   z4CloudbuildV1alpha1.ProjectsWorkerPoolsService.Create   r8   r&   c                  F    t        j                  ddddgdgg ddddd	
      S )N*v1alpha1/projects/{projectsId}/workerPoolsr:   z&cloudbuild.projects.workerPools.createparentv1alpha1/{+parent}/workerPools
workerPool*CloudbuildProjectsWorkerPoolsCreateRequest
WorkerPoolFr?   rK   rM   r&   r%   rN   z6CloudbuildV1alpha1.ProjectsWorkerPoolsService.<lambda>   s4    8#9#9>: zJ6"F'$r&   c                 L    | j                  d      }| j                  |||      S )a#  Deletes a `WorkerPool` by its project ID and WorkerPool name.

      Args:
        request: (CloudbuildProjectsWorkerPoolsDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Empty) The response message.
      Deleter0   r2   r5   s       r%   rq   z4CloudbuildV1alpha1.ProjectsWorkerPoolsService.Delete   r8   r&   c                  F    t        j                  ddddgdgg ddddd	
      S )N:v1alpha1/projects/{projectsId}/workerPools/{workerPoolsId}DELETEz&cloudbuild.projects.workerPools.deleter;   rT   rU   *CloudbuildProjectsWorkerPoolsDeleteRequestr>   Fr?   rK   rM   r&   r%   rN   z6CloudbuildV1alpha1.ProjectsWorkerPoolsService.<lambda>   s4    8#9#9N:xH(F"$r&   c                 L    | j                  d      }| j                  |||      S )a  Returns information about a `WorkerPool`.

      Args:
        request: (CloudbuildProjectsWorkerPoolsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (WorkerPool) The response message.
      rP   r0   r2   r5   s       r%   rP   z1CloudbuildV1alpha1.ProjectsWorkerPoolsService.Get   rQ   r&   c                  F    t        j                  ddddgdgg ddddd	
      S )Nrs   rS   z#cloudbuild.projects.workerPools.getr;   rT   rU   'CloudbuildProjectsWorkerPoolsGetRequestro   Fr?   rK   rM   r&   r%   rN   z6CloudbuildV1alpha1.ProjectsWorkerPoolsService.<lambda>   s4     6 6N7xH(C'!r&   c                 L    | j                  d      }| j                  |||      S )a  List project's `WorkerPool`s.

      Args:
        request: (CloudbuildProjectsWorkerPoolsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListWorkerPoolsResponse) The response message.
      Listr0   r2   r5   s       r%   rz   z2CloudbuildV1alpha1.ProjectsWorkerPoolsService.List   s1     ##F+f__
'  8 8r&   c                  F    t        j                  ddddgdgg ddddd	
      S )Nrj   rS   z$cloudbuild.projects.workerPools.listrk   rl   rU   (CloudbuildProjectsWorkerPoolsListRequestListWorkerPoolsResponseFr?   rK   rM   r&   r%   rN   z6CloudbuildV1alpha1.ProjectsWorkerPoolsService.<lambda>   s4    !7!7>8 zJ6D4"r&   c                 L    | j                  d      }| j                  |||      S )a   Update a `WorkerPool`.

      Args:
        request: (CloudbuildProjectsWorkerPoolsPatchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (WorkerPool) The response message.
      Patchr0   r2   r5   s       r%   r   z3CloudbuildV1alpha1.ProjectsWorkerPoolsService.Patch   s1     ##G,f__
'  8 8r&   c                  F    t        j                  ddddgdgg ddddd	
      S )Nrs   PATCHz%cloudbuild.projects.workerPools.patchr;   rT   rm   )CloudbuildProjectsWorkerPoolsPatchRequestro   Fr?   rK   rM   r&   r%   rN   z6CloudbuildV1alpha1.ProjectsWorkerPoolsService.<lambda>   s4    ("8"8N9xH("E'#r&   r*   )rX   rY   rZ   r[   r\   r   rh   r]   rq   rP   rz   r   r^   r_   s   @r%   r   re   y   s^    >"E
8F8F8C8D8Er&   r   c                   &     e Zd ZdZdZ fdZ xZS )"CloudbuildV1alpha1.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+CloudbuildV1alpha1.ProjectsService.__init__  s#    ..>vFdr&   rc   r_   s   @r%   r    r   
  s    2E r&   r    )rU   NTNNFFNNNN)rX   rY   rZ   r[   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   r    r^   r_   s   @r%   r   r   
   s    I/1(;-(=>'(*"."++,()-6:/4<@?C	/(>8+B+B >@!8!8 O8#:#: Ob//  r&   r   N)
r[   
__future__r   apitools.base.pyr   9googlecloudsdk.generated_clients.apis.cloudbuild.v1alpha1r   r   BaseApiClientr   rM   r&   r%   <module>r      s'    ? ' % nH// Hr&   