Class protos.google.cloud.dataproc.v1.SessionController (5.5.0)

Represents a SessionController

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dataproc.v1.SessionController

Package

@google-cloud/dataproc

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new SessionController service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SessionController;

Creates new SessionController service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
SessionController

RPC service. Useful where requests and/or responses are streamed.

createSession(request, callback)

public createSession(request: google.cloud.dataproc.v1.ICreateSessionRequest, callback: google.cloud.dataproc.v1.SessionController.CreateSessionCallback): void;

Calls CreateSession.

Parameters
NameDescription
request ICreateSessionRequest

CreateSessionRequest message or plain object

callback CreateSessionCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

createSession(request)

public createSession(request: google.cloud.dataproc.v1.ICreateSessionRequest): Promise<google.longrunning.Operation>;

Calls CreateSession.

Parameter
NameDescription
request ICreateSessionRequest

CreateSessionRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deleteSession(request, callback)

public deleteSession(request: google.cloud.dataproc.v1.IDeleteSessionRequest, callback: google.cloud.dataproc.v1.SessionController.DeleteSessionCallback): void;

Calls DeleteSession.

Parameters
NameDescription
request IDeleteSessionRequest

DeleteSessionRequest message or plain object

callback DeleteSessionCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

deleteSession(request)

public deleteSession(request: google.cloud.dataproc.v1.IDeleteSessionRequest): Promise<google.longrunning.Operation>;

Calls DeleteSession.

Parameter
NameDescription
request IDeleteSessionRequest

DeleteSessionRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

getSession(request, callback)

public getSession(request: google.cloud.dataproc.v1.IGetSessionRequest, callback: google.cloud.dataproc.v1.SessionController.GetSessionCallback): void;

Calls GetSession.

Parameters
NameDescription
request IGetSessionRequest

GetSessionRequest message or plain object

callback GetSessionCallback

Node-style callback called with the error, if any, and Session

Returns
TypeDescription
void

getSession(request)

public getSession(request: google.cloud.dataproc.v1.IGetSessionRequest): Promise<google.cloud.dataproc.v1.Session>;

Calls GetSession.

Parameter
NameDescription
request IGetSessionRequest

GetSessionRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dataproc.v1.Session>

Promise

listSessions(request, callback)

public listSessions(request: google.cloud.dataproc.v1.IListSessionsRequest, callback: google.cloud.dataproc.v1.SessionController.ListSessionsCallback): void;

Calls ListSessions.

Parameters
NameDescription
request IListSessionsRequest

ListSessionsRequest message or plain object

callback ListSessionsCallback

Node-style callback called with the error, if any, and ListSessionsResponse

Returns
TypeDescription
void

listSessions(request)

public listSessions(request: google.cloud.dataproc.v1.IListSessionsRequest): Promise<google.cloud.dataproc.v1.ListSessionsResponse>;

Calls ListSessions.

Parameter
NameDescription
request IListSessionsRequest

ListSessionsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dataproc.v1.ListSessionsResponse>

Promise

terminateSession(request, callback)

public terminateSession(request: google.cloud.dataproc.v1.ITerminateSessionRequest, callback: google.cloud.dataproc.v1.SessionController.TerminateSessionCallback): void;

Calls TerminateSession.

Parameters
NameDescription
request ITerminateSessionRequest

TerminateSessionRequest message or plain object

callback TerminateSessionCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

terminateSession(request)

public terminateSession(request: google.cloud.dataproc.v1.ITerminateSessionRequest): Promise<google.longrunning.Operation>;

Calls TerminateSession.

Parameter
NameDescription
request ITerminateSessionRequest

TerminateSessionRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise