Represents a CloudShellService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.shell.v1.CloudShellServicePackage
@google-cloud/shellConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new CloudShellService service.
| Name | Description |
| rpcImpl |
$protobuf.RPCImpl
RPC implementation |
| requestDelimited |
boolean
Whether requests are length-delimited |
| responseDelimited |
boolean
Whether responses are length-delimited |
Methods
addPublicKey(request, callback)
public addPublicKey(request: google.cloud.shell.v1.IAddPublicKeyRequest, callback: google.cloud.shell.v1.CloudShellService.AddPublicKeyCallback): void;Calls AddPublicKey.
| Name | Description |
| request |
google.cloud.shell.v1.IAddPublicKeyRequest
AddPublicKeyRequest message or plain object |
| callback |
google.cloud.shell.v1.CloudShellService.AddPublicKeyCallback
Node-style callback called with the error, if any, and Operation |
| Type | Description |
| void |
addPublicKey(request)
public addPublicKey(request: google.cloud.shell.v1.IAddPublicKeyRequest): Promise<google.longrunning.Operation>;Calls AddPublicKey.
| Name | Description |
| request |
google.cloud.shell.v1.IAddPublicKeyRequest
AddPublicKeyRequest message or plain object |
| Type | Description |
| Promise<google.longrunning.Operation> | Promise |
authorizeEnvironment(request, callback)
public authorizeEnvironment(request: google.cloud.shell.v1.IAuthorizeEnvironmentRequest, callback: google.cloud.shell.v1.CloudShellService.AuthorizeEnvironmentCallback): void;Calls AuthorizeEnvironment.
| Name | Description |
| request |
IAuthorizeEnvironmentRequest
AuthorizeEnvironmentRequest message or plain object |
| callback |
google.cloud.shell.v1.CloudShellService.AuthorizeEnvironmentCallback
Node-style callback called with the error, if any, and Operation |
| Type | Description |
| void |
authorizeEnvironment(request)
public authorizeEnvironment(request: google.cloud.shell.v1.IAuthorizeEnvironmentRequest): Promise<google.longrunning.Operation>;Calls AuthorizeEnvironment.
| Name | Description |
| request |
IAuthorizeEnvironmentRequest
AuthorizeEnvironmentRequest message or plain object |
| Type | Description |
| Promise<google.longrunning.Operation> | Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): CloudShellService;Creates new CloudShellService service using the specified rpc implementation.
| Name | Description |
| rpcImpl |
$protobuf.RPCImpl
RPC implementation |
| requestDelimited |
boolean
Whether requests are length-delimited |
| responseDelimited |
boolean
Whether responses are length-delimited |
| Type | Description |
| CloudShellService | RPC service. Useful where requests and/or responses are streamed. |
getEnvironment(request, callback)
public getEnvironment(request: google.cloud.shell.v1.IGetEnvironmentRequest, callback: google.cloud.shell.v1.CloudShellService.GetEnvironmentCallback): void;Calls GetEnvironment.
| Name | Description |
| request |
google.cloud.shell.v1.IGetEnvironmentRequest
GetEnvironmentRequest message or plain object |
| callback |
google.cloud.shell.v1.CloudShellService.GetEnvironmentCallback
Node-style callback called with the error, if any, and Environment |
| Type | Description |
| void |
getEnvironment(request)
public getEnvironment(request: google.cloud.shell.v1.IGetEnvironmentRequest): Promise<google.cloud.shell.v1.Environment>;Calls GetEnvironment.
| Name | Description |
| request |
google.cloud.shell.v1.IGetEnvironmentRequest
GetEnvironmentRequest message or plain object |
| Type | Description |
| Promise<google.cloud.shell.v1.Environment> | Promise |
removePublicKey(request, callback)
public removePublicKey(request: google.cloud.shell.v1.IRemovePublicKeyRequest, callback: google.cloud.shell.v1.CloudShellService.RemovePublicKeyCallback): void;Calls RemovePublicKey.
| Name | Description |
| request |
IRemovePublicKeyRequest
RemovePublicKeyRequest message or plain object |
| callback |
google.cloud.shell.v1.CloudShellService.RemovePublicKeyCallback
Node-style callback called with the error, if any, and Operation |
| Type | Description |
| void |
removePublicKey(request)
public removePublicKey(request: google.cloud.shell.v1.IRemovePublicKeyRequest): Promise<google.longrunning.Operation>;Calls RemovePublicKey.
| Name | Description |
| request |
IRemovePublicKeyRequest
RemovePublicKeyRequest message or plain object |
| Type | Description |
| Promise<google.longrunning.Operation> | Promise |
startEnvironment(request, callback)
public startEnvironment(request: google.cloud.shell.v1.IStartEnvironmentRequest, callback: google.cloud.shell.v1.CloudShellService.StartEnvironmentCallback): void;Calls StartEnvironment.
| Name | Description |
| request |
IStartEnvironmentRequest
StartEnvironmentRequest message or plain object |
| callback |
google.cloud.shell.v1.CloudShellService.StartEnvironmentCallback
Node-style callback called with the error, if any, and Operation |
| Type | Description |
| void |
startEnvironment(request)
public startEnvironment(request: google.cloud.shell.v1.IStartEnvironmentRequest): Promise<google.longrunning.Operation>;Calls StartEnvironment.
| Name | Description |
| request |
IStartEnvironmentRequest
StartEnvironmentRequest message or plain object |
| Type | Description |
| Promise<google.longrunning.Operation> | Promise |