
    5-                     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)z8Generated client library for cloudbuild version v1beta1.    )absolute_import)base_api)cloudbuild_v1beta1_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 )CloudbuildV1beta1z@Generated client library for service cloudbuild version v1beta1.z"https://cloudbuild.googleapis.com/z'https://cloudbuild.mtls.googleapis.com/
cloudbuildz.https://www.googleapis.com/auth/cloud-platformv1beta1	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#ProjectsLocationsWorkerPoolsServiceprojects_locations_workerPoolsProjectsLocationsServiceprojects_locationsProjectsServiceprojects)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               Ylib/googlecloudsdk/generated_clients/apis/cloudbuild/v1beta1/cloudbuild_v1beta1_client.pyr   zCloudbuildV1beta1.__init__   s     
C	
T+'d%l)3 7+ , - *.)P)PQU)VD&*.*R*RSW*XD'";;DAD((.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 )	4CloudbuildV1beta1.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=CloudbuildV1beta1.ProjectsLocationsOperationsService.__init__4   s$    @@$PQWX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;CloudbuildV1beta1.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 )NzVv1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancelPOSTz/cloudbuild.projects.locations.operations.cancelnamezv1beta1/{+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=CloudbuildV1beta1.ProjectsLocationsOperationsService.<lambda>F   s4    8#9#9j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   z8CloudbuildV1beta1.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 )NzOv1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}GETz,cloudbuild.projects.locations.operations.getr;   v1beta1/{+name} /CloudbuildProjectsLocationsOperationsGetRequest	OperationFr?   rK   rM   r&   r%   rN   z=CloudbuildV1beta1.ProjectsLocationsOperationsService.<lambda>a   s4     6 6c@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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 )5CloudbuildV1beta1.ProjectsLocationsWorkerPoolsServicez>Service class for the projects_locations_workerPools resource.r   c                 N    t         t        j                  |   |       i | _        y r*   )r   r   r   r   r+   r,   s     r%   r   z>CloudbuildV1beta1.ProjectsLocationsWorkerPoolsService.__init__t   s$    AA4QRXYdr&   c                 L    | j                  d      }| j                  |||      S )a  Creates a `WorkerPool` to run the builds, and returns the new worker pool. NOTE: As of now, this method returns an `Operation` that is always complete.

      Args:
        request: (CloudbuildProjectsLocationsWorkerPoolsCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      Creater0   r2   r5   s       r%   rd   z<CloudbuildV1beta1.ProjectsLocationsWorkerPoolsService.Createy   r8   r&   c                  H    t        j                  ddddgdgdgdddd	d
      S )NAv1beta1/projects/{projectsId}/locations/{locationsId}/workerPoolsr:   z0cloudbuild.projects.locations.workerPools.createparentworkerPoolIdv1beta1/{+parent}/workerPools
workerPool3CloudbuildProjectsLocationsWorkerPoolsCreateRequestrW   Fr?   rK   rM   r&   r%   rN   z>CloudbuildV1beta1.ProjectsLocationsWorkerPoolsService.<lambda>   s7    8#9#9UD zJ$%5"O&$r&   c                 L    | j                  d      }| j                  |||      S )aW  Deletes a `WorkerPool`. NOTE: As of now, this method returns an `Operation` that is always complete.

      Args:
        request: (CloudbuildProjectsLocationsWorkerPoolsDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      Deleter0   r2   r5   s       r%   rm   z<CloudbuildV1beta1.ProjectsLocationsWorkerPoolsService.Delete   r8   r&   c                  H    t        j                  ddddgdgdgdddd	d
      S )NQv1beta1/projects/{projectsId}/locations/{locationsId}/workerPools/{workerPoolsId}DELETEz0cloudbuild.projects.locations.workerPools.deleter;   etagrT   rU   3CloudbuildProjectsLocationsWorkerPoolsDeleteRequestrW   Fr?   rK   rM   r&   r%   rN   z>CloudbuildV1beta1.ProjectsLocationsWorkerPoolsService.<lambda>   s6    8#9#9eDxHX'O&$r&   c                 L    | j                  d      }| j                  |||      S )a  Returns details of a `WorkerPool`.

      Args:
        request: (CloudbuildProjectsLocationsWorkerPoolsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (WorkerPool) The response message.
      rP   r0   r2   r5   s       r%   rP   z9CloudbuildV1beta1.ProjectsLocationsWorkerPoolsService.Get   rQ   r&   c                  F    t        j                  ddddgdgg ddddd	
      S )Nro   rS   z-cloudbuild.projects.locations.workerPools.getr;   rT   rU   0CloudbuildProjectsLocationsWorkerPoolsGetRequest
WorkerPoolFr?   rK   rM   r&   r%   rN   z>CloudbuildV1beta1.ProjectsLocationsWorkerPoolsService.<lambda>   s4     6 6eAxH'L'!r&   c                 L    | j                  d      }| j                  |||      S )a(  Lists `WorkerPool`s in the given project.

      Args:
        request: (CloudbuildProjectsLocationsWorkerPoolsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListWorkerPoolsResponse) The response message.
      Listr0   r2   r5   s       r%   rx   z:CloudbuildV1beta1.ProjectsLocationsWorkerPoolsService.List   s1     ##F+f__
'  8 8r&   c                  F    t        j                  ddddgdgg ddddd	
      S )Nrf   rS   z.cloudbuild.projects.locations.workerPools.listrg   ri   rU   1CloudbuildProjectsLocationsWorkerPoolsListRequestListWorkerPoolsResponseFr?   rK   rM   r&   r%   rN   z>CloudbuildV1beta1.ProjectsLocationsWorkerPoolsService.<lambda>   s4    !7!7UB zJ5M4"r&   c                 L    | j                  d      }| j                  |||      S )aV  Updates a `WorkerPool`. NOTE: As of now, this method returns an `Operation` that is always complete.

      Args:
        request: (CloudbuildProjectsLocationsWorkerPoolsPatchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      Patchr0   r2   r5   s       r%   r}   z;CloudbuildV1beta1.ProjectsLocationsWorkerPoolsService.Patch   s1     ##G,f__
'  8 8r&   c                  H    t        j                  ddddgdgdgdddd	d
      S )Nro   PATCHz/cloudbuild.projects.locations.workerPools.patchr;   
updateMaskrT   rj   2CloudbuildProjectsLocationsWorkerPoolsPatchRequestrW   Fr?   rK   rM   r&   r%   rN   z>CloudbuildV1beta1.ProjectsLocationsWorkerPoolsService.<lambda>   s6    ("8"8eCxH"^'"N&#r&   r*   )rX   rY   rZ   r[   r\   r   rd   r]   rm   rP   rx   r}   r^   r_   s   @r%   r   ra   o   s^    H,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 )*CloudbuildV1beta1.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   z3CloudbuildV1beta1.ProjectsLocationsService.__init__  s#    66FvNdr&   rX   rY   rZ   r[   r\   r   r^   r_   s   @r%   r   r      s    < E r&   r   c                   &     e Zd ZdZdZ fdZ xZS )!CloudbuildV1beta1.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*CloudbuildV1beta1.ProjectsService.__init__  s#    --t=fEdr&   r   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    H/1(;-(=>'(*"."+*,()-6:/4<@?C	/(>8+B+B >@OH,C,C Ob!8!8 //  r&   r   N)
r[   
__future__r   apitools.base.pyr   8googlecloudsdk.generated_clients.apis.cloudbuild.v1beta1r   r   BaseApiClientr   rM   r&   r%   <module>r      s'    > ' % lH.. Hr&   