Constructor
new SessionController(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new SessionController service.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Extends
- $protobuf.rpc.Service
Methods
createSession(request, callback) → {undefined}
Calls CreateSession.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataproc.v1.ICreateSessionRequest |
CreateSessionRequest message or plain object |
callback |
google.cloud.dataproc.v1.SessionController.CreateSessionCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
createSession(request) → {Promise.<google.longrunning.Operation>}
Calls CreateSession.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataproc.v1.ICreateSessionRequest |
CreateSessionRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.longrunning.Operation> |
Promise |
deleteSession(request, callback) → {undefined}
Calls DeleteSession.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataproc.v1.IDeleteSessionRequest |
DeleteSessionRequest message or plain object |
callback |
google.cloud.dataproc.v1.SessionController.DeleteSessionCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
deleteSession(request) → {Promise.<google.longrunning.Operation>}
Calls DeleteSession.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataproc.v1.IDeleteSessionRequest |
DeleteSessionRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.longrunning.Operation> |
Promise |
getSession(request, callback) → {undefined}
Calls GetSession.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataproc.v1.IGetSessionRequest |
GetSessionRequest message or plain object |
callback |
google.cloud.dataproc.v1.SessionController.GetSessionCallback |
Node-style callback called with the error, if any, and Session |
Returns:
Type | Description |
---|---|
undefined |
getSession(request) → {Promise.<google.cloud.dataproc.v1.Session>}
Calls GetSession.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataproc.v1.IGetSessionRequest |
GetSessionRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dataproc.v1.Session> |
Promise |
listSessions(request, callback) → {undefined}
Calls ListSessions.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataproc.v1.IListSessionsRequest |
ListSessionsRequest message or plain object |
callback |
google.cloud.dataproc.v1.SessionController.ListSessionsCallback |
Node-style callback called with the error, if any, and ListSessionsResponse |
Returns:
Type | Description |
---|---|
undefined |
listSessions(request) → {Promise.<google.cloud.dataproc.v1.ListSessionsResponse>}
Calls ListSessions.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataproc.v1.IListSessionsRequest |
ListSessionsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dataproc.v1.ListSessionsResponse> |
Promise |
terminateSession(request, callback) → {undefined}
Calls TerminateSession.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataproc.v1.ITerminateSessionRequest |
TerminateSessionRequest message or plain object |
callback |
google.cloud.dataproc.v1.SessionController.TerminateSessionCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
terminateSession(request) → {Promise.<google.longrunning.Operation>}
Calls TerminateSession.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dataproc.v1.ITerminateSessionRequest |
TerminateSessionRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.longrunning.Operation> |
Promise |
(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {SessionController}
Creates new SessionController service using the specified rpc implementation.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Returns:
Type | Description |
---|---|
SessionController |
RPC service. Useful where requests and/or responses are streamed. |
Type Definitions
CreateSessionCallback(error, responseopt)
Callback as used by createSession.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.longrunning.Operation |
<optional> |
Operation |
DeleteSessionCallback(error, responseopt)
Callback as used by deleteSession.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.longrunning.Operation |
<optional> |
Operation |
GetSessionCallback(error, responseopt)
Callback as used by getSession.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dataproc.v1.Session |
<optional> |
Session |
ListSessionsCallback(error, responseopt)
Callback as used by listSessions.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dataproc.v1.ListSessionsResponse |
<optional> |
ListSessionsResponse |
TerminateSessionCallback(error, responseopt)
Callback as used by terminateSession.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.longrunning.Operation |
<optional> |
Operation |