
                         V    S r SSKJr  SSKJr  SSKJr   " S S\R                  5      r	g)z2Generated client library for tpu version v2alpha1.    )absolute_import)base_api)tpu_v2alpha1_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r     SU 4S jjr " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      r " S S\R(                  5      rSrU =r$ )TpuV2alpha1
   z:Generated client library for service tpu version v2alpha1.zhttps://tpu.googleapis.com/z https://tpu.mtls.googleapis.com/tpuz.https://www.googleapis.com/auth/cloud-platformv2alpha1	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	        U R                  U 5      U l        U R                  U 5      U l        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__(ProjectsLocationsAcceleratorTypesService#projects_locations_acceleratorTypesProjectsLocationsNodesServiceprojects_locations_nodes"ProjectsLocationsOperationsServiceprojects_locations_operations'ProjectsLocationsQueuedResourcesService"projects_locations_queuedResources$ProjectsLocationsReservationsServiceprojects_locations_reservations'ProjectsLocationsRuntimeVersionsService"projects_locations_runtimeVersionsProjectsLocationsServiceprojects_locationsProjectsServiceprojects)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               Mlib/googlecloudsdk/generated_clients/apis/tpu/v2alpha1/tpu_v2alpha1_client.pyr   TpuV2alpha1.__init__   s     
C	+t%'%)3 7+ & - 04/\/\]a/bD,$($F$Ft$LD!)-)P)PQU)VD&.2.Z.Z[_.`D++/+T+TUY+ZD(.2.Z.Z[_.`D+";;DAD((.DM    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$ )4TpuV2alpha1.ProjectsLocationsAcceleratorTypesService3   zCService class for the projects_locations_acceleratorTypes resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g N)r   r   r   r   _upload_configsr+   clientr-   s     r.   r   =TpuV2alpha1.ProjectsLocationsAcceleratorTypesService.__init__8   s#    K@@$PQWXdr0   c                 D    U R                  S5      nU R                  X1US9$ )zGets AcceleratorType.

Args:
  request: (TpuProjectsLocationsAcceleratorTypesGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (AcceleratorType) The response message.
Getglobal_paramsGetMethodConfig
_RunMethodr+   requestr=   configs       r.   r;   8TpuV2alpha1.ProjectsLocationsAcceleratorTypesService.Get=   /     ##E*f__
  8 8r0   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz\v2alpha1/projects/{projectsId}/locations/{locationsId}/acceleratorTypes/{acceleratorTypesId}GETz+tpu.projects.locations.acceleratorTypes.getnamev2alpha1/{+name} .TpuProjectsLocationsAcceleratorTypesGetRequestAcceleratorTypeF	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 r0   r.   <lambda>=TpuV2alpha1.ProjectsLocationsAcceleratorTypesService.<lambda>J   s4     6 6p?xH(J,!r0   c                 D    U R                  S5      nU R                  X1US9$ )a  Lists accelerator types supported by this API.

Args:
  request: (TpuProjectsLocationsAcceleratorTypesListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListAcceleratorTypesResponse) The response message.
Listr<   r>   rA   s       r.   r_   9TpuV2alpha1.ProjectsLocationsAcceleratorTypesService.ListX   /     ##F+f__
  8 8r0   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )NzGv2alpha1/projects/{projectsId}/locations/{locationsId}/acceleratorTypesrG   z,tpu.projects.locations.acceleratorTypes.listparentfilterorderBypageSize	pageTokenz#v2alpha1/{+parent}/acceleratorTypesrJ   /TpuProjectsLocationsAcceleratorTypesListRequestListAcceleratorTypesResponseFrM   rY   r[   r0   r.   r\   r]   e   s4    !7!7[@ zJC;K9"r0   r6   r5   __name__
__module____qualname____firstlineno____doc___NAMEr   r;   method_configr_   __static_attributes____classcell__r-   s   @r.   r   r2   3   s1    M1E
8C8Dr0   r   c                   4  ^  \ 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S jrS \l        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S jrS \l        SrU =r$ ))TpuV2alpha1.ProjectsLocationsNodesServices   z8Service class for the projects_locations_nodes resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g r5   )r   r   r   r   r6   r7   s     r.   r   2TpuV2alpha1.ProjectsLocationsNodesService.__init__x   s"    K55tEfMdr0   c                 D    U R                  S5      nU R                  X1US9$ )zCreates a node.

Args:
  request: (TpuProjectsLocationsNodesCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Creater<   r>   rA   s       r.   r}   0TpuV2alpha1.ProjectsLocationsNodesService.Create}   /     ##H-f__
  8 8r0   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )N<v2alpha1/projects/{projectsId}/locations/{locationsId}/nodesPOSTz#tpu.projects.locations.nodes.createrc   nodeId	requestIdv2alpha1/{+parent}/nodesnode&TpuProjectsLocationsNodesCreateRequest	OperationFrM   rY   r[   r0   r.   r\   2TpuV2alpha1.ProjectsLocationsNodesService.<lambda>   s9    8#9#9P7 zJ,0B&$r0   c                 D    U R                  S5      nU R                  X1US9$ )zDeletes a node.

Args:
  request: (TpuProjectsLocationsNodesDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Deleter<   r>   rA   s       r.   r   0TpuV2alpha1.ProjectsLocationsNodesService.Delete   r   r0   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )NFv2alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}DELETEz#tpu.projects.locations.nodes.deleterH   r   rI   rJ   &TpuProjectsLocationsNodesDeleteRequestr   FrM   rY   r[   r0   r.   r\   r      s6    8#9#9Z7xH!](B&$r0   c                 D    U R                  S5      nU R                  X1US9$ )zGets the details of a node.

Args:
  request: (TpuProjectsLocationsNodesGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Node) The response message.
r;   r<   r>   rA   s       r.   r;   -TpuV2alpha1.ProjectsLocationsNodesService.Get   rE   r0   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr   rG   z tpu.projects.locations.nodes.getrH   rI   rJ   #TpuProjectsLocationsNodesGetRequestNodeFrM   rY   r[   r0   r.   r\   r      s4     6 6Z4xH(?!!r0   c                 D    U R                  S5      nU R                  X1US9$ )a  Retrieves the guest attributes for the node.

Args:
  request: (TpuProjectsLocationsNodesGetGuestAttributesRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GetGuestAttributesResponse) The response message.
GetGuestAttributesr<   r>   rA   s       r.   r   <TpuV2alpha1.ProjectsLocationsNodesService.GetGuestAttributes   0     ##$89f__
  8 8r0   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzYv2alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:getGuestAttributesr   z/tpu.projects.locations.nodes.getGuestAttributesrH   z#v2alpha1/{+name}:getGuestAttributesgetGuestAttributesRequest2TpuProjectsLocationsNodesGetGuestAttributesRequestGetGuestAttributesResponseFrM   rY   r[   r0   r.   r\   r      s4    x/E/EmCxH;1N70r0   c                 D    U R                  S5      nU R                  X1US9$ )zLists nodes.

Args:
  request: (TpuProjectsLocationsNodesListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListNodesResponse) The response message.
r_   r<   r>   rA   s       r.   r_   .TpuV2alpha1.ProjectsLocationsNodesService.List   ra   r0   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )Nr   rG   z!tpu.projects.locations.nodes.listrc   rg   rh   r   rJ   $TpuProjectsLocationsNodesListRequestListNodesResponseFrM   rY   r[   r0   r.   r\   r      s9    !7!7P5 zJ +.0@."r0   c                 D    U R                  S5      nU R                  X1US9$ )zUpdates the configurations of a node.

Args:
  request: (TpuProjectsLocationsNodesPatchRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Patchr<   r>   rA   s       r.   r   /TpuV2alpha1.ProjectsLocationsNodesService.Patch  /     ##G,f__
  8 8r0   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nr   PATCHz"tpu.projects.locations.nodes.patchrH   
updateMaskrI   r   %TpuProjectsLocationsNodesPatchRequestr   FrM   rY   r[   r0   r.   r\   r     s6    ("8"8Z6xH"^(A&#r0   c                 D    U R                  S5      nU R                  X1US9$ )zPerform manual maintenance on a node.

Args:
  request: (TpuProjectsLocationsNodesPerformMaintenanceRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
PerformMaintenancer<   r>   rA   s       r.   r   <TpuV2alpha1.ProjectsLocationsNodesService.PerformMaintenance  r   r0   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzYv2alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:performMaintenancer   z/tpu.projects.locations.nodes.performMaintenancerH   z#v2alpha1/{+name}:performMaintenanceperformMaintenanceRequest2TpuProjectsLocationsNodesPerformMaintenanceRequestr   FrM   rY   r[   r0   r.   r\   r   ,  s4    x/E/EmCxH;1N&0r0   c                 D    U R                  S5      nU R                  X1US9$ )zSimulates a maintenance event.

Args:
  request: (TpuProjectsLocationsNodesSimulateMaintenanceEventRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
SimulateMaintenanceEventr<   r>   rA   s       r.   r   BTpuV2alpha1.ProjectsLocationsNodesService.SimulateMaintenanceEvent:  s0     ##$>?f__
  8 8r0   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz_v2alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:simulateMaintenanceEventr   z5tpu.projects.locations.nodes.simulateMaintenanceEventrH   z)v2alpha1/{+name}:simulateMaintenanceEventsimulateMaintenanceEventRequest8TpuProjectsLocationsNodesSimulateMaintenanceEventRequestr   FrM   rY   r[   r0   r.   r\   r   G  s4    X5K5KsIxHA7T&6r0   c                 D    U R                  S5      nU R                  X1US9$ )zStarts a node.

Args:
  request: (TpuProjectsLocationsNodesStartRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Startr<   r>   rA   s       r.   r   /TpuV2alpha1.ProjectsLocationsNodesService.StartU  r   r0   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzLv2alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:startr   z"tpu.projects.locations.nodes.startrH   zv2alpha1/{+name}:startstartNodeRequest%TpuProjectsLocationsNodesStartRequestr   FrM   rY   r[   r0   r.   r\   r   b  s4    ("8"8`6xH.(A&#r0   c                 D    U R                  S5      nU R                  X1US9$ )a  Stops a node. This operation is only available with single TPU nodes.

Args:
  request: (TpuProjectsLocationsNodesStopRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Stopr<   r>   rA   s       r.   r   .TpuV2alpha1.ProjectsLocationsNodesService.Stopp  ra   r0   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzKv2alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:stopr   z!tpu.projects.locations.nodes.stoprH   zv2alpha1/{+name}:stopstopNodeRequest$TpuProjectsLocationsNodesStopRequestr   FrM   rY   r[   r0   r.   r\   r   }  s4    !7!7_5xH-'@&"r0   rk   r5   )rm   rn   ro   rp   rq   rr   r   r}   rs   r   r;   r   r_   r   r   r   r   r   rt   ru   rv   s   @r.   r   rx   s   s    B&E
8F8F8C8($8D8E8($8.*8E8Dr0   r   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$ ).TpuV2alpha1.ProjectsLocationsOperationsServicei  z=Service class for the projects_locations_operations resource.r    c                 N   > [         [        R                  U ]  U5        0 U l        g r5   )r   r   r   r   r6   r7   s     r.   r   7TpuV2alpha1.ProjectsLocationsOperationsService.__init__  s"    K::DJ6Rdr0   c                 D    U R                  S5      nU R                  X1US9$ )a  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.
Cancelr<   r>   rA   s       r.   r   5TpuV2alpha1.ProjectsLocationsOperationsService.Cancel  r   r0   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzWv2alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancelr   z(tpu.projects.locations.operations.cancelrH   zv2alpha1/{+name}:cancelrJ   +TpuProjectsLocationsOperationsCancelRequestEmptyFrM   rY   r[   r0   r.   r\   7TpuV2alpha1.ProjectsLocationsOperationsService.<lambda>  s4    8#9#9k<xH/G"$r0   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.
r   r<   r>   rA   s       r.   r   5TpuV2alpha1.ProjectsLocationsOperationsService.Delete  r   r0   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NPv2alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}r   z(tpu.projects.locations.operations.deleterH   rI   rJ   +TpuProjectsLocationsOperationsDeleteRequestr   FrM   rY   r[   r0   r.   r\   r     s4    8#9#9d<xH(G"$r0   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.
r;   r<   r>   rA   s       r.   r;   2TpuV2alpha1.ProjectsLocationsOperationsService.Get  rE   r0   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr   rG   z%tpu.projects.locations.operations.getrH   rI   rJ   (TpuProjectsLocationsOperationsGetRequestr   FrM   rY   r[   r0   r.   r\   r     s4     6 6d9xH(D&!r0   c                 D    U R                  S5      nU R                  X1US9$ )aY  Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

Args:
  request: (TpuProjectsLocationsOperationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListOperationsResponse) The response message.
r_   r<   r>   rA   s       r.   r_   3TpuV2alpha1.ProjectsLocationsOperationsService.List  ra   r0   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )NzAv2alpha1/projects/{projectsId}/locations/{locationsId}/operationsrG   z&tpu.projects.locations.operations.listrH   )re   rg   rh   returnPartialSuccesszv2alpha1/{+name}/operationsrJ   )TpuProjectsLocationsOperationsListRequestListOperationsResponseFrM   rY   r[   r0   r.   r\   r     s4    !7!7U:xHP3E3"r0   rk   r5   )rm   rn   ro   rp   rq   rr   r   r   rs   r   r;   r_   rt   ru   rv   s   @r.   r   r     sO    G+E
8F8F8C8Dr0   r   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S jrS \l        SS jrS \l        SS jrS \l        SrU =r$ )3TpuV2alpha1.ProjectsLocationsQueuedResourcesServicei  zBService class for the projects_locations_queuedResources resource.r"   c                 N   > [         [        R                  U ]  U5        0 U l        g r5   )r   r   r!   r   r6   r7   s     r.   r   <TpuV2alpha1.ProjectsLocationsQueuedResourcesService.__init__  #    K??OPVWdr0   c                 D    U R                  S5      nU R                  X1US9$ )zCreates a QueuedResource TPU instance.

Args:
  request: (TpuProjectsLocationsQueuedResourcesCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
r}   r<   r>   rA   s       r.   r}   :TpuV2alpha1.ProjectsLocationsQueuedResourcesService.Create  r   r0   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )NFv2alpha1/projects/{projectsId}/locations/{locationsId}/queuedResourcesr   z-tpu.projects.locations.queuedResources.createrc   queuedResourceIdr   "v2alpha1/{+parent}/queuedResourcesqueuedResource0TpuProjectsLocationsQueuedResourcesCreateRequestr   FrM   rY   r[   r0   r.   r\   <TpuV2alpha1.ProjectsLocationsQueuedResourcesService.<lambda>  s9    8#9#9ZA zJ(+6:&L&$r0   c                 D    U R                  S5      nU R                  X1US9$ )zDeletes a QueuedResource TPU instance.

Args:
  request: (TpuProjectsLocationsQueuedResourcesDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
r   r<   r>   rA   s       r.   r   :TpuV2alpha1.ProjectsLocationsQueuedResourcesService.Delete&  r   r0   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )NZv2alpha1/projects/{projectsId}/locations/{locationsId}/queuedResources/{queuedResourcesId}r   z-tpu.projects.locations.queuedResources.deleterH   forcer   rI   rJ   0TpuProjectsLocationsQueuedResourcesDeleteRequestr   FrM   rY   r[   r0   r.   r\   r   3  s9    8#9#9nAxH{+(L&$r0   c                 D    U R                  S5      nU R                  X1US9$ )zGets details of a queued resource.

Args:
  request: (TpuProjectsLocationsQueuedResourcesGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (QueuedResource) The response message.
r;   r<   r>   rA   s       r.   r;   7TpuV2alpha1.ProjectsLocationsQueuedResourcesService.GetA  rE   r0   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nr   rG   z*tpu.projects.locations.queuedResources.getrH   rI   rJ   -TpuProjectsLocationsQueuedResourcesGetRequestQueuedResourceFrM   rY   r[   r0   r.   r\   r   N  4     6 6n>xH(I+!r0   c                 D    U R                  S5      nU R                  X1US9$ )a  Gets the maintenance info for a queued resource.

Args:
  request: (TpuProjectsLocationsQueuedResourcesGetMaintenanceInfoRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GetMaintenanceInfoResponse) The response message.
GetMaintenanceInfor<   r>   rA   s       r.   r   FTpuV2alpha1.ProjectsLocationsQueuedResourcesService.GetMaintenanceInfo\  r   r0   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nzmv2alpha1/projects/{projectsId}/locations/{locationsId}/queuedResources/{queuedResourcesId}:getMaintenanceInforG   z9tpu.projects.locations.queuedResources.getMaintenanceInforH   z#v2alpha1/{+name}:getMaintenanceInforJ   <TpuProjectsLocationsQueuedResourcesGetMaintenanceInfoRequestGetMaintenanceInfoResponseFrM   rY   r[   r0   r.   r\   r   i  s7    x/E/E BMxH;X70r0   c                 D    U R                  S5      nU R                  X1US9$ )zLists queued resources.

Args:
  request: (TpuProjectsLocationsQueuedResourcesListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListQueuedResourcesResponse) The response message.
r_   r<   r>   rA   s       r.   r_   8TpuV2alpha1.ProjectsLocationsQueuedResourcesService.Listw  ra   r0   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )Nr   rG   z+tpu.projects.locations.queuedResources.listrc   rg   rh   r   rJ   .TpuProjectsLocationsQueuedResourcesListRequestListQueuedResourcesResponseFrM   rY   r[   r0   r.   r\   r     s9    !7!7Z? zJ +.:J8"r0   c                 D    U R                  S5      nU R                  X1US9$ )a'  Perform manual maintenance on specific nodes of a QueuedResource.

Args:
  request: (TpuProjectsLocationsQueuedResourcesPerformMaintenanceQueuedResourceRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
 PerformMaintenanceQueuedResourcer<   r>   rA   s       r.   r  TTpuV2alpha1.ProjectsLocationsQueuedResourcesService.PerformMaintenanceQueuedResource  s0     ##$FGf__
  8 8r0   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz{v2alpha1/projects/{projectsId}/locations/{locationsId}/queuedResources/{queuedResourcesId}:performMaintenanceQueuedResourcer   zGtpu.projects.locations.queuedResources.performMaintenanceQueuedResourcerH   z1v2alpha1/{+name}:performMaintenanceQueuedResource'performMaintenanceQueuedResourceRequestJTpuProjectsLocationsQueuedResourcesPerformMaintenanceQueuedResourceRequestr   FrM   rY   r[   r0   r.   r\   r     s7    X=S=S P[xHI?f&>r0   c                 D    U R                  S5      nU R                  X1US9$ )zResets a QueuedResource TPU instance.

Args:
  request: (TpuProjectsLocationsQueuedResourcesResetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Resetr<   r>   rA   s       r.   r	  9TpuV2alpha1.ProjectsLocationsQueuedResourcesService.Reset  r   r0   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz`v2alpha1/projects/{projectsId}/locations/{locationsId}/queuedResources/{queuedResourcesId}:resetr   z,tpu.projects.locations.queuedResources.resetrH   zv2alpha1/{+name}:resetresetQueuedResourceRequest/TpuProjectsLocationsQueuedResourcesResetRequestr   FrM   rY   r[   r0   r.   r\   r     s4    ("8"8t@xH.2K&#r0   rk   r5   )rm   rn   ro   rp   rq   rr   r   r}   rs   r   r;   r   r_   r  r	  rt   ru   rv   s   @r.   r!   r     s~    L0E
8F8F8C8($8D86$28Er0   r!   c                   J   ^  \ rS rSrSrSrU 4S jrSS jrS \l        Sr	U =r
$ )	0TpuV2alpha1.ProjectsLocationsReservationsServicei  z?Service class for the projects_locations_reservations resource.r$   c                 N   > [         [        R                  U ]  U5        0 U l        g r5   )r   r   r#   r   r6   r7   s     r.   r   9TpuV2alpha1.ProjectsLocationsReservationsService.__init__  s"    K<<dLVTdr0   c                 D    U R                  S5      nU R                  X1US9$ )a  Retrieves the reservations for the given project in the given location.

Args:
  request: (TpuProjectsLocationsReservationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListReservationsResponse) The response message.
r_   r<   r>   rA   s       r.   r_   5TpuV2alpha1.ProjectsLocationsReservationsService.List  ra   r0   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )NzCv2alpha1/projects/{projectsId}/locations/{locationsId}/reservationsrG   z(tpu.projects.locations.reservations.listrc   rg   rh   zv2alpha1/{+parent}/reservationsrJ   +TpuProjectsLocationsReservationsListRequestListReservationsResponseFrM   rY   r[   r0   r.   r\   9TpuV2alpha1.ProjectsLocationsReservationsService.<lambda>  s9    !7!7W< zJ +.7G5"r0   rk   r5   )rm   rn   ro   rp   rq   rr   r   r_   rs   rt   ru   rv   s   @r.   r#   r    s"    I-E
8Dr0   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$ )3TpuV2alpha1.ProjectsLocationsRuntimeVersionsServicei  zBService class for the projects_locations_runtimeVersions resource.r&   c                 N   > [         [        R                  U ]  U5        0 U l        g r5   )r   r   r%   r   r6   r7   s     r.   r   <TpuV2alpha1.ProjectsLocationsRuntimeVersionsService.__init__  r   r0   c                 D    U R                  S5      nU R                  X1US9$ )zGets a runtime version.

Args:
  request: (TpuProjectsLocationsRuntimeVersionsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (RuntimeVersion) The response message.
r;   r<   r>   rA   s       r.   r;   7TpuV2alpha1.ProjectsLocationsRuntimeVersionsService.Get  rE   r0   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzZv2alpha1/projects/{projectsId}/locations/{locationsId}/runtimeVersions/{runtimeVersionsId}rG   z*tpu.projects.locations.runtimeVersions.getrH   rI   rJ   -TpuProjectsLocationsRuntimeVersionsGetRequestRuntimeVersionFrM   rY   r[   r0   r.   r\   <TpuV2alpha1.ProjectsLocationsRuntimeVersionsService.<lambda>  r   r0   c                 D    U R                  S5      nU R                  X1US9$ )a	  Lists runtime versions supported by this API.

Args:
  request: (TpuProjectsLocationsRuntimeVersionsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListRuntimeVersionsResponse) The response message.
r_   r<   r>   rA   s       r.   r_   8TpuV2alpha1.ProjectsLocationsRuntimeVersionsService.List  ra   r0   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )NzFv2alpha1/projects/{projectsId}/locations/{locationsId}/runtimeVersionsrG   z+tpu.projects.locations.runtimeVersions.listrc   rd   z"v2alpha1/{+parent}/runtimeVersionsrJ   .TpuProjectsLocationsRuntimeVersionsListRequestListRuntimeVersionsResponseFrM   rY   r[   r0   r.   r\   r!    s4    !7!7Z? zJC:J8"r0   rk   r5   rl   rv   s   @r.   r%   r    s1    L0E
8C8Dr0   r%   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rU =r$ )$TpuV2alpha1.ProjectsLocationsServicei-  z2Service class for the projects_locations resource.r(   c                 N   > [         [        R                  U ]  U5        0 U l        g r5   )r   r   r'   r   r6   r7   s     r.   r   -TpuV2alpha1.ProjectsLocationsService.__init__2  s"    K00$@Hdr0   c                 D    U R                  S5      nU R                  X1US9$ )a  Generates the Cloud TPU service identity for the project.

Args:
  request: (TpuProjectsLocationsGenerateServiceIdentityRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GenerateServiceIdentityResponse) The response message.
GenerateServiceIdentityr<   r>   rA   s       r.   r,  <TpuV2alpha1.ProjectsLocationsService.GenerateServiceIdentity7  s0     ##$=>f__
  8 8r0   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzNv2alpha1/projects/{projectsId}/locations/{locationsId}:generateServiceIdentityr   z.tpu.projects.locations.generateServiceIdentityrc   z*v2alpha1/{+parent}:generateServiceIdentitygenerateServiceIdentityRequest2TpuProjectsLocationsGenerateServiceIdentityRequestGenerateServiceIdentityResponseFrM   rY   r[   r0   r.   r\   -TpuV2alpha1.ProjectsLocationsService.<lambda>D  s4    H4J4JbB zJB6N<5r0   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.
r;   r<   r>   rA   s       r.   r;   (TpuV2alpha1.ProjectsLocationsService.GetR  rE   r0   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz6v2alpha1/projects/{projectsId}/locations/{locationsId}rG   ztpu.projects.locations.getrH   rI   rJ   TpuProjectsLocationsGetRequestLocationFrM   rY   r[   r0   r.   r\   r2  _  s4     6 6J.xH(:%!r0   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.
r_   r<   r>   rA   s       r.   r_   )TpuV2alpha1.ProjectsLocationsService.Listm  ra   r0   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nz(v2alpha1/projects/{projectsId}/locationsrG   ztpu.projects.locations.listrH   )extraLocationTypesre   rg   rh   zv2alpha1/{+name}/locationsrJ   TpuProjectsLocationsListRequestListLocationsResponseFrM   rY   r[   r0   r.   r\   r2  z  s4    !7!7</xHN2;2"r0   rk   r5   )rm   rn   ro   rp   rq   rr   r   r,  rs   r;   r_   rt   ru   rv   s   @r.   r'   r(  -  sA    < E
8-)8C8Dr0   r'   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )TpuV2alpha1.ProjectsServicei  z(Service class for the projects resource.r*   c                 N   > [         [        R                  U ]  U5        0 U l        g r5   )r   r   r)   r   r6   r7   s     r.   r   $TpuV2alpha1.ProjectsService.__init__  s"    K''7?dr0   rk   )	rm   rn   ro   rp   rq   rr   r   rt   ru   rv   s   @r.   r)   r?    s    2E r0   r)   )r*   r(   r   r   r    r"   r$   r&   )rJ   NTNNFFNNNN)rm   rn   ro   rp   rq   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%   r'   r)   rt   ru   rv   s   @r.   r   r   
   s    B/*(4-(=>'(*"."+$,()-6:/4<@?C	/0>1H1H >@Vh&=&= Vpt8+B+B tlE0G0G EN#X-D-D #J>0G0G >@Y!8!8 Yv//  r0   r   N)
rq   
__future__r   apitools.base.pyr   2googlecloudsdk.generated_clients.apis.tpu.v2alpha1r   rB  BaseApiClientr   r[   r0   r.   <module>rS     s'    8 ' % `F((( Fr0   