class ProjectsLocationsSessions extends Resource (View source)

The "sessions" collection of methods.

Typical usage is:

 $dataprocService = new Google\Service\Dataproc(...);
 $sessions = $dataprocService->projects_locations_sessions;

Methods

create(string $parent, Session $postBody, array $optParams = [])

Create an interactive session asynchronously. (sessions.create)

delete(string $name, array $optParams = [])

Deletes the interactive session resource. If the session is not in terminal state, it is terminated, and then deleted. (sessions.delete)

get(string $name, array $optParams = [])

Gets the resource representation for an interactive session. (sessions.get)

listProjectsLocationsSessions(string $parent, array $optParams = [])

Lists interactive sessions. (sessions.listProjectsLocationsSessions)

terminate(string $name, TerminateSessionRequest $postBody, array $optParams = [])

Terminates the interactive session. (sessions.terminate)

Details

Operation create(string $parent, Session $postBody, array $optParams = [])

Create an interactive session asynchronously. (sessions.create)

Parameters

string $parent

Required. The parent resource where this session will be created.

Session $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation delete(string $name, array $optParams = [])

Deletes the interactive session resource. If the session is not in terminal state, it is terminated, and then deleted. (sessions.delete)

Parameters

string $name

Required. The name of the session resource to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Session get(string $name, array $optParams = [])

Gets the resource representation for an interactive session. (sessions.get)

Parameters

string $name

Required. The name of the session to retrieve.

array $optParams

Optional parameters.

Return Value

Session

Exceptions

Exception

ListSessionsResponse listProjectsLocationsSessions(string $parent, array $optParams = [])

Lists interactive sessions. (sessions.listProjectsLocationsSessions)

Parameters

string $parent

Required. The parent, which owns this collection of sessions.

array $optParams

Optional parameters.

Return Value

ListSessionsResponse

Exceptions

Exception

Operation terminate(string $name, TerminateSessionRequest $postBody, array $optParams = [])

Terminates the interactive session. (sessions.terminate)

Parameters

string $name

Required. The name of the session resource to terminate.

TerminateSessionRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception