
    9                     V    S r SSKJr  SSKJr  SSKJr   " S S\R                  5      r	g)z3Generated client library for cloudshell version v1.    )absolute_import)base_api)cloudshell_v1_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rU =r$ )CloudshellV1
   z;Generated client library for service cloudshell version v1.z"https://cloudshell.googleapis.com/z'https://cloudshell.mtls.googleapis.com/
cloudshellz.https://www.googleapis.com/auth/cloud-platformv1	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 cloudshell handle.)
credentialsget_credentialshttpmodellog_requestlog_responsecredentials_argsdefault_global_paramsadditional_http_headersresponse_encodingN)
BASE_URLsuperr   __init__OperationsService
operationsUsersEnvironmentsServiceusers_environmentsUsersServiceusers)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               Olib/googlecloudsdk/generated_clients/apis/cloudshell/v1/cloudshell_v1_client.pyr   CloudshellV1.__init__   sw     
C	,&'%)3 7+ ' - ,,T2DO";;DAD""4(DJ    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$ )CloudshellV1.OperationsService.   z*Service class for the 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   'CloudshellV1.OperationsService.__init__3   s"    L**D:6Bdr&   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: (CloudshellOperationsCancelRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
Cancelglobal_paramsGetMethodConfig
_RunMethodr!   requestr3   configs       r$   r1   %CloudshellV1.OperationsService.Cancel8   /     ##H-f__
  8 8r&   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz#v1/operations/{operationsId}:cancelPOSTzcloudshell.operations.cancelnamezv1/{+name}:cancelcancelOperationRequest!CloudshellOperationsCancelRequest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>'CloudshellV1.OperationsService.<lambda>E   s4    8#9#970x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: (CloudshellOperationsDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
Deleter2   r4   r7   s       r$   rT   %CloudshellV1.OperationsService.DeleteS   r;   r&   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nv1/operations/{operationsId}DELETEzcloudshell.operations.deleter>   
v1/{+name} !CloudshellOperationsDeleteRequestrA   FrB   rN   rP   r&   r$   rQ   rR   `   s4    8#9#900xH"="$r&   c                 D    U R                  S5      nU R                  X1US9$ )aU  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: (CloudshellOperationsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Getr2   r4   r7   s       r$   r]   "CloudshellV1.OperationsService.Getn   /     ##E*f__
  8 8r&   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NrW   GETzcloudshell.operations.getr>   rY   rZ   CloudshellOperationsGetRequest	OperationFrB   rN   rP   r&   r$   rQ   rR   {   s4     6 60-xH":&!r&   c                 D    U R                  S5      nU R                  X1US9$ )aO  Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

Args:
  request: (CloudshellOperationsListRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (ListOperationsResponse) The response message.
Listr2   r4   r7   s       r$   re   #CloudshellV1.OperationsService.List   s/     ##F+f__
  8 8r&   c                  F    [         R                  " SSSS/S// SQSSSS	S
S9$ )Nzv1/operationsra   zcloudshell.operations.listr>   )filterpageSize	pageTokenreturnPartialSuccessrY   rZ   CloudshellOperationsListRequestListOperationsResponseFrB   rN   rP   r&   r$   rQ   rR      s4    !7!7!.xHP";3"r&   r,   r+   )__name__
__module____qualname____firstlineno____doc___NAMEr   r1   method_configrT   r]   re   __static_attributes____classcell__r#   s   @r$   r   r(   .   sO    4E
8F8F8C8Dr&   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rU =r$ )%CloudshellV1.UsersEnvironmentsService   z2Service class for the users_environments resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g r+   )r   r   r   r   r,   r-   s     r$   r   .CloudshellV1.UsersEnvironmentsService.__init__   s"    L114A&Idr&   c                 D    U R                  S5      nU R                  X1US9$ )a  Adds a public SSH key to an environment, allowing clients with the corresponding private key to connect to that environment via SSH. If a key with the same content already exists, this will error with ALREADY_EXISTS.

Args:
  request: (CloudshellUsersEnvironmentsAddPublicKeyRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
AddPublicKeyr2   r4   r7   s       r$   r   2CloudshellV1.UsersEnvironmentsService.AddPublicKey   s/     ##N3f__
  8 8r&   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz=v1/users/{usersId}/environments/{environmentsId}:addPublicKeyr=   z*cloudshell.users.environments.addPublicKeyenvironmentzv1/{+environment}:addPublicKeyaddPublicKeyRequest.CloudshellUsersEnvironmentsAddPublicKeyRequestrc   FrB   rN   rP   r&   r$   rQ   .CloudshellV1.UsersEnvironmentsService.<lambda>   s4    )?)?Q>%"O6+J&*r&   c                 D    U R                  S5      nU R                  X1US9$ )a  Sends OAuth credentials to a running environment on behalf of a user. When this completes, the environment will be authorized to run various Google Cloud command line tools without requiring the user to manually authenticate.

Args:
  request: (CloudshellUsersEnvironmentsAuthorizeRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
	Authorizer2   r4   r7   s       r$   r   /CloudshellV1.UsersEnvironmentsService.Authorize   s/     ##K0f__
  8 8r&   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz:v1/users/{usersId}/environments/{environmentsId}:authorizer=   z'cloudshell.users.environments.authorizer>   zv1/{+name}:authorizeauthorizeEnvironmentRequest+CloudshellUsersEnvironmentsAuthorizeRequestrc   FrB   rN   rP   r&   r$   rQ   r      s4    h&<&<N;xH,3G&'r&   c                 D    U R                  S5      nU R                  X1US9$ )a  Generates an access token for the user's environment.

Args:
  request: (CloudshellUsersEnvironmentsGenerateAccessTokenRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (GenerateAccessTokenResponse) The response message.
GenerateAccessTokenr2   r4   r7   s       r$   r   9CloudshellV1.UsersEnvironmentsService.GenerateAccessToken   s0     ##$9:f__
  8 8r&   c                  F    [         R                  " SSSS/S/SS/SSS	S
SS9$ )NzDv1/users/{usersId}/environments/{environmentsId}:generateAccessTokenra   z1cloudshell.users.environments.generateAccessTokenr   
expireTimettlz%v1/{+environment}:generateAccessTokenrZ   5CloudshellUsersEnvironmentsGenerateAccessTokenRequestGenerateAccessTokenResponseFrB   rN   rP   r&   r$   rQ   r      s9    0F0FXE%"O"E*=Q81r&   c                 D    U R                  S5      nU R                  X1US9$ )a  Gets an environment. Returns NOT_FOUND if the environment does not exist.

Args:
  request: (CloudshellUsersEnvironmentsGetRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Environment) The response message.
r]   r2   r4   r7   s       r$   r]   )CloudshellV1.UsersEnvironmentsService.Get   r_   r&   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz0v1/users/{usersId}/environments/{environmentsId}ra   z!cloudshell.users.environments.getr>   rY   rZ   %CloudshellUsersEnvironmentsGetRequestEnvironmentFrB   rN   rP   r&   r$   rQ   r     s4     6 6D5xH"A(!r&   c                 D    U R                  S5      nU R                  X1US9$ )a  Removes a public SSH key from an environment. Clients will no longer be able to connect to the environment using the corresponding private key. If a key with the same content is not present, this will error with NOT_FOUND.

Args:
  request: (CloudshellUsersEnvironmentsRemovePublicKeyRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
RemovePublicKeyr2   r4   r7   s       r$   r   5CloudshellV1.UsersEnvironmentsService.RemovePublicKey  s0     ##$56f__
  8 8r&   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz@v1/users/{usersId}/environments/{environmentsId}:removePublicKeyr=   z-cloudshell.users.environments.removePublicKeyr   z!v1/{+environment}:removePublicKeyremovePublicKeyRequest1CloudshellUsersEnvironmentsRemovePublicKeyRequestrc   FrB   rN   rP   r&   r$   rQ   r   '  s4    H,B,BTA%"O9.M&-r&   c                 D    U R                  S5      nU R                  X1US9$ )a\  Starts an existing environment, allowing clients to connect to it. The returned operation will contain an instance of StartEnvironmentMetadata in its metadata field. Users can wait for the environment to start by polling this operation via GetOperation. Once the environment has finished starting and is ready to accept connections, the operation will contain a StartEnvironmentResponse in its response field.

Args:
  request: (CloudshellUsersEnvironmentsStartRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Operation) The response message.
Startr2   r4   r7   s       r$   r   +CloudshellV1.UsersEnvironmentsService.Start5  s/     ##G,f__
  8 8r&   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz6v1/users/{usersId}/environments/{environmentsId}:startr=   z#cloudshell.users.environments.startr>   zv1/{+name}:startstartEnvironmentRequest'CloudshellUsersEnvironmentsStartRequestrc   FrB   rN   rP   r&   r$   rQ   r   B  s4    ("8"8J7xH(/C&#r&   rn   r+   )ro   rp   rq   rr   rs   rt   r   r   ru   r   r   r]   r   r   rv   rw   rx   s   @r$   r   rz      sn    < E
8"L8I8)%8C8%O!8Er&   r   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )CloudshellV1.UsersServiceiP  z%Service class for the users resource.r    c                 N   > [         [        R                  U ]  U5        0 U l        g r+   )r   r   r   r   r,   r-   s     r$   r   "CloudshellV1.UsersService.__init__U  s"    L%%t5f=dr&   rn   )	ro   rp   rq   rr   rs   rt   r   rv   rw   rx   s   @r$   r   r   P  s    /E r&   r   )r   r    r   )rZ   NTNNFFNNNN)ro   rp   rq   rr   rs   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   rv   rw   rx   s   @r$   r   r   
   s    C/1(;-(=>'(*"."+%,()-6:/4<@?C	)&t(11 tlj!8!8 jXX,,  r&   r   N)
rs   
__future__r   apitools.base.pyr   3googlecloudsdk.generated_clients.apis.cloudshell.v1r   r   BaseApiClientr   rP   r&   r$   <module>r      s'    9 ' % bN8)) Nr&   