
    '                     J    S r SSKJr  SSKJr   " S S\R                  5      rg)z1Generated client library for tpu version v1beta1.    )base_api)tpu_v1beta1_messagesc                      ^  \ rS rSrSr\rSrSrS/r	Sr
SrSrS	rS rSrS
r     SU 4S jjr " S S\R&                  5      r " S S\R&                  5      r " S S\R&                  5      rSrU =r$ )
TpuV1beta1   z9Generated client library for service tpu version v1beta1.zhttps://tpu.googleapis.com/tpuz.https://www.googleapis.com/auth/cloud-platformv1beta1	CLIENT_IDCLIENT_SECRETzgoogle-cloud-sdkNc                    > U=(       d    U R                   n[        [        U ]  XX4UXgUU	U
US9  U R	                  U 5      U l        U R                  U 5      U l        U R                  U 5      U l	        g)zCreate a new tpu 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ProjectsServiceprojects)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               Klib/googlecloudsdk/generated_clients/apis/tpu/v1beta1/tpu_v1beta1_client.pyr   TpuV1beta1.__init__   sy     
C	*d$'%)3 7+ % - *.)P)PQU)VD&";;DAD((.DM    c                      ^  \ rS rSrSrSrU 4S jrSS jrS \l        SS jr	S \	l        SS	 jr
S
 \
l        SS jrS \l        SrU =r$ )-TpuV1beta1.ProjectsLocationsOperationsService*   z=Service class for the projects_locations_operations resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g N)r   r   r   r   _upload_configsr    clientr"   s     r#   r   6TpuV1beta1.ProjectsLocationsOperationsService.__init__/   s"    J994I&Qdr%   c                 D    U R                  S5      nU R                  X1US9$ )a4  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: (TpuProjectsLocationsOperationsCancelRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Empty) The response message.
      Cancelglobal_paramsGetMethodConfig
_RunMethodr    requestr2   configs       r#   r0   4TpuV1beta1.ProjectsLocationsOperationsService.Cancel4   s/    $ ##H-f__
  8 8r%   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzVv1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancelPOSTz(tpu.projects.locations.operations.cancelnamezv1beta1/{+name}:cancel +TpuProjectsLocationsOperationsCancelRequest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>6TpuV1beta1.ProjectsLocationsOperationsService.<lambda>J   s4    8#9#9k=yI/H#$r%   c                 D    U R                  S5      nU R                  X1US9$ )a  Deletes a long-running operation. This method indicates that the client is.
no longer interested in the operation result. It does not cancel the
operation. If the server doesn't support this method, it returns
`google.rpc.Code.UNIMPLEMENTED`.

      Args:
        request: (TpuProjectsLocationsOperationsDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Empty) The response message.
      Deleter1   r3   r6   s       r#   rR   4TpuV1beta1.ProjectsLocationsOperationsService.DeleteX   s/     ##H-f__
  8 8r%   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NOv1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}DELETEz(tpu.projects.locations.operations.deleter<   v1beta1/{+name}r=   +TpuProjectsLocationsOperationsDeleteRequestr?   Fr@   rL   rN   r%   r#   rO   rP   h   s4    8#9#9d=yI(H#$r%   c                 D    U R                  S5      nU R                  X1US9$ )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: (TpuProjectsLocationsOperationsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      Getr1   r3   r6   s       r#   rZ   1TpuV1beta1.ProjectsLocationsOperationsService.Getv   s/     ##E*f__
  8 8r%   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NrU   GETz%tpu.projects.locations.operations.getr<   rW   r=   (TpuProjectsLocationsOperationsGetRequest	OperationFr@   rL   rN   r%   r#   rO   rP      s4     6 6d:yI(E'!r%   c                 D    U R                  S5      nU R                  X1US9$ )aU  Lists operations that match the specified filter in the request. If the.
server doesn't support this method, it returns `UNIMPLEMENTED`.

NOTE: the `name` binding allows API services to override the binding
to use different resource name schemes, such as `users/*/operations`. To
override the binding, API services can add a binding such as
`"/v1/{name=users/*}/operations"` to their service configuration.
For backwards compatibility, the default name includes the operations
collection id, however overriding users must ensure the name binding
is the parent resource, without the operations collection id.

      Args:
        request: (TpuProjectsLocationsOperationsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListOperationsResponse) The response message.
      Listr1   r3   r6   s       r#   ra   2TpuV1beta1.ProjectsLocationsOperationsService.List   s/    $ ##F+f__
  8 8r%   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nz@v1beta1/projects/{projectsId}/locations/{locationsId}/operationsr]   z&tpu.projects.locations.operations.listr<   filterpageSize	pageTokenzv1beta1/{+name}/operationsr=   )TpuProjectsLocationsOperationsListRequestListOperationsResponseFr@   rL   rN   r%   r#   rO   rP      s4    !7!7U;yI;3F4"r%   r+   r*   )__name__
__module____qualname____firstlineno____doc___NAMEr   r0   method_configrR   rZ   ra   __static_attributes____classcell__r"   s   @r#   r   r'   *   sO    G,E
8,F8 F8C8,Dr%   r   c                   d   ^  \ rS rSrSrSrU 4S jrS
S jrS \l        S
S jr	S \	l        S	r
U =r$ )#TpuV1beta1.ProjectsLocationsService   z2Service class for the projects_locations resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g r*   )r   r   r   r   r+   r,   s     r#   r   ,TpuV1beta1.ProjectsLocationsService.__init__   s"    J//?Gdr%   c                 D    U R                  S5      nU R                  X1US9$ )zGets information about a location.

Args:
  request: (TpuProjectsLocationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Location) The response message.
rZ   r1   r3   r6   s       r#   rZ   'TpuV1beta1.ProjectsLocationsService.Get   s/     ##E*f__
  8 8r%   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz5v1beta1/projects/{projectsId}/locations/{locationsId}r]   ztpu.projects.locations.getr<   rW   r=   TpuProjectsLocationsGetRequestLocationFr@   rL   rN   r%   r#   rO   ,TpuV1beta1.ProjectsLocationsService.<lambda>   s4     6 6J/yI(;&!r%   c                 D    U R                  S5      nU R                  X1US9$ )a  Lists information about the supported locations for this service.

Args:
  request: (TpuProjectsLocationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListLocationsResponse) The response message.
ra   r1   r3   r6   s       r#   ra   (TpuV1beta1.ProjectsLocationsService.List   s/     ##F+f__
  8 8r%   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nz'v1beta1/projects/{projectsId}/locationsr]   ztpu.projects.locations.listr<   rd   zv1beta1/{+name}/locationsr=   TpuProjectsLocationsListRequestListLocationsResponseFr@   rL   rN   r%   r#   rO   r      s4    !7!7<0yI;2<3"r%   rj   r*   )rk   rl   rm   rn   ro   rp   r   rZ   rq   ra   rr   rs   rt   s   @r#   r   rv      s1    <!E
8C8Dr%   r   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )TpuV1beta1.ProjectsService   z(Service class for the projects resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g r*   )r   r   r   r   r+   r,   s     r#   r   #TpuV1beta1.ProjectsService.__init__   s"    J&&6v>dr%   rj   )	rk   rl   rm   rn   ro   rp   r   rr   rs   rt   s   @r#   r   r      s    2E r%   r   )r   r   r   )r=   NTNNFFNNNN)rk   rl   rm   rn   ro   messagesMESSAGES_MODULEr   _PACKAGE_SCOPES_VERSION
_CLIENT_ID_CLIENT_SECRET_USER_AGENT_CLIENT_CLASS_NAME_URL_VERSION_API_KEYr   r   BaseApiServicer   r   r   rr   rs   rt   s   @r#   r   r      s    A/+((>?'(*".#+$,()-6:/4<@?C	/&K8+B+B KZ>!8!8 >@//  r%   r   N)ro   apitools.base.pyr   1googlecloudsdk.generated_clients.apis.tpu.v1beta1r   r   BaseApiClientr   rN   r%   r#   <module>r      s"    7 % ^x'' xr%   