
    &                     V    S r SSKJr  SSKJr  SSKJr   " S S\R                  5      r	g)z9Generated client library for cloudshell version v1alpha1.    )absolute_import)base_api)cloudshell_v1alpha1_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$ )CloudshellV1alpha1
   zAGenerated client library for service cloudshell version v1alpha1.z"https://cloudshell.googleapis.com/z'https://cloudshell.mtls.googleapis.com/
cloudshellz.https://www.googleapis.com/auth/cloud-platformv1alpha1	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__"UsersEnvironmentsPublicKeysServiceusers_environments_publicKeysUsersEnvironmentsServiceusers_environmentsUsersServiceusers)selfurlr   r   r   r   r   r   r   r   r   r   	__class__s               [lib/googlecloudsdk/generated_clients/apis/cloudshell/v1alpha1/cloudshell_v1alpha1_client.pyr   CloudshellV1alpha1.__init__   sz     
C	
d,'%)3 7+ - - *.)P)PQU)VD&";;DAD""4(DJ    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$ )5CloudshellV1alpha1.UsersEnvironmentsPublicKeysService.   z=Service class for the users_environments_publicKeys resource.r   c                 N   > [         [        R                  U ]  U5        0 U l        g N)r   r   r   r   _upload_configsr!   clientr#   s     r$   r   >CloudshellV1alpha1.UsersEnvironmentsPublicKeysService.__init__3   s$    AA4QRXY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 format and content already exists, this will return the existing key.

Args:
  request: (CloudshellUsersEnvironmentsPublicKeysCreateRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (PublicKey) The response message.
Createglobal_paramsGetMethodConfig
_RunMethodr!   requestr3   configs       r$   r1   <CloudshellV1alpha1.UsersEnvironmentsPublicKeysService.Create8   /     ##H-f__
  8 8r&   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzAv1alpha1/users/{usersId}/environments/{environmentsId}/publicKeysPOSTz/cloudshell.users.environments.publicKeys.createparentzv1alpha1/{+parent}/publicKeyscreatePublicKeyRequest2CloudshellUsersEnvironmentsPublicKeysCreateRequest	PublicKeyF	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>>CloudshellV1alpha1.UsersEnvironmentsPublicKeysService.<lambda>E   s4    8#9#9UC zJ5.N&$r&   c                 D    U R                  S5      nU R                  X1US9$ )aY  Removes a public SSH key from an environment. Clients will no longer be able to connect to the environment using the corresponding private key.

Args:
  request: (CloudshellUsersEnvironmentsPublicKeysDeleteRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Empty) The response message.
Deleter2   r4   r7   s       r$   rT   <CloudshellV1alpha1.UsersEnvironmentsPublicKeysService.DeleteS   r;   r&   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )NzPv1alpha1/users/{usersId}/environments/{environmentsId}/publicKeys/{publicKeysId}DELETEz/cloudshell.users.environments.publicKeys.deletenamev1alpha1/{+name} 2CloudshellUsersEnvironmentsPublicKeysDeleteRequestEmptyFrB   rN   rP   r&   r$   rQ   rR   `   s4    8#9#9dCxH(N"$r&   r,   r+   )__name__
__module____qualname____firstlineno____doc___NAMEr   r1   method_configrT   __static_attributes____classcell__r#   s   @r$   r   r(   .   s1    G+E
8F8F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rU =r$ )+CloudshellV1alpha1.UsersEnvironmentsServicen   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   4CloudshellV1alpha1.UsersEnvironmentsService.__init__s   s#    77GOd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:
  (Empty) The response message.
	Authorizer2   r4   r7   s       r$   rn   5CloudshellV1alpha1.UsersEnvironmentsService.Authorizex   s/     ##K0f__
  8 8r&   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz@v1alpha1/users/{usersId}/environments/{environmentsId}:authorizer=   z'cloudshell.users.environments.authorizerX   zv1alpha1/{+name}:authorizeauthorizeEnvironmentRequest+CloudshellUsersEnvironmentsAuthorizeRequestr\   FrB   rN   rP   r&   r$   rQ   4CloudshellV1alpha1.UsersEnvironmentsService.<lambda>   s4    h&<&<T;xH23G"'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.
Getr2   r4   r7   s       r$   ru   /CloudshellV1alpha1.UsersEnvironmentsService.Get   s/     ##E*f__
  8 8r&   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )N6v1alpha1/users/{usersId}/environments/{environmentsId}GETz!cloudshell.users.environments.getrX   rY   rZ   %CloudshellUsersEnvironmentsGetRequestEnvironmentFrB   rN   rP   r&   r$   rQ   rs      s4     6 6J5xH(A(!r&   c                 D    U R                  S5      nU R                  X1US9$ )zUpdates an existing environment.

Args:
  request: (CloudshellUsersEnvironmentsPatchRequest) input message
  global_params: (StandardQueryParameters, default: None) global arguments
Returns:
  (Environment) The response message.
Patchr2   r4   r7   s       r$   r}   1CloudshellV1alpha1.UsersEnvironmentsService.Patch   /     ##G,f__
  8 8r&   c                  D    [         R                  " SSSS/S/S/SSSS	S
S9$ )Nrx   PATCHz#cloudshell.users.environments.patchrX   
updateMaskrY   environment'CloudshellUsersEnvironmentsPatchRequestr{   FrB   rN   rP   r&   r$   rQ   rs      s6    ("8"8J7xH"^(#C(#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   1CloudshellV1alpha1.UsersEnvironmentsService.Start   r   r&   c                  B    [         R                  " SSSS/S// SSSSS	S
9$ )Nz<v1alpha1/users/{usersId}/environments/{environmentsId}:startr=   z#cloudshell.users.environments.startrX   zv1alpha1/{+name}:startstartEnvironmentRequest'CloudshellUsersEnvironmentsStartRequest	OperationFrB   rN   rP   r&   r$   rQ   rs      s4    ("8"8P7xH./C&#r&   r]   r+   )r^   r_   r`   ra   rb   rc   r   rn   rd   ru   r}   r   re   rf   rg   s   @r$   r   ri   n   sO    < E
8I8C8E8Er&   r   c                   0   ^  \ rS rSrSrSrU 4S jrSrU =r$ )CloudshellV1alpha1.UsersService   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   (CloudshellV1alpha1.UsersService.__init__   s#    ++T;FCdr&   r]   )	r^   r_   r`   ra   rb   rc   r   re   rf   rg   s   @r$   r   r      s    /E r&   r   )r    r   r   )rZ   NTNNFFNNNN)r^   r_   r`   ra   rb   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   re   rf   rg   s   @r$   r   r   
   s    I/1(;-(=>'(*"."++,()-6:/4<@?C	)&>8+B+B >@t!8!8 tlX,,  r&   r   N)
rb   
__future__r   apitools.base.pyr   9googlecloudsdk.generated_clients.apis.cloudshell.v1alpha1r   r   BaseApiClientr   rP   r&   r$   <module>r      s'    ? ' % nb// br&   