class ProjectsLocationsSessionTemplates extends Resource (View source)

The "sessionTemplates" collection of methods.

Typical usage is:

 $dataprocService = new Google\Service\Dataproc(...);
 $sessionTemplates = $dataprocService->projects_locations_sessionTemplates;

Methods

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

Create a session template synchronously. (sessionTemplates.create)

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

Deletes a session template. (sessionTemplates.delete)

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

Gets the resource representation for a session template.

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

Lists session templates.

patch(string $name, SessionTemplate $postBody, array $optParams = [])

Updates the session template synchronously. (sessionTemplates.patch)

Details

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

Create a session template synchronously. (sessionTemplates.create)

Parameters

string $parent

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

SessionTemplate $postBody
array $optParams

Optional parameters.

Return Value

SessionTemplate

Exceptions

Exception

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

Deletes a session template. (sessionTemplates.delete)

Parameters

string $name

Required. The name of the session template resource to delete.

array $optParams

Optional parameters.

Return Value

DataprocEmpty

Exceptions

Exception

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

Gets the resource representation for a session template.

(sessionTemplates.get)

Parameters

string $name

Required. The name of the session template to retrieve.

array $optParams

Optional parameters.

Return Value

SessionTemplate

Exceptions

Exception

ListSessionTemplatesResponse listProjectsLocationsSessionTemplates(string $parent, array $optParams = [])

Lists session templates.

(sessionTemplates.listProjectsLocationsSessionTemplates)

Parameters

string $parent

Required. The parent that owns this collection of session templates.

array $optParams

Optional parameters.

Return Value

ListSessionTemplatesResponse

Exceptions

Exception

SessionTemplate patch(string $name, SessionTemplate $postBody, array $optParams = [])

Updates the session template synchronously. (sessionTemplates.patch)

Parameters

string $name

Required. The resource name of the session template.

SessionTemplate $postBody
array $optParams

Optional parameters.

Return Value

SessionTemplate

Exceptions

Exception