* $dataprocService = new Google\Service\Dataproc(...); * $sessionTemplates = $dataprocService->projects_locations_sessionTemplates; * */ class ProjectsLocationsSessionTemplates extends \Google\Service\Resource { /** * Create a session template synchronously. (sessionTemplates.create) * * @param string $parent Required. The parent resource where this session * template will be created. * @param SessionTemplate $postBody * @param array $optParams Optional parameters. * @return SessionTemplate * @throws \Google\Service\Exception */ public function create($parent, SessionTemplate $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('create', [$params], SessionTemplate::class); } /** * Deletes a session template. (sessionTemplates.delete) * * @param string $name Required. The name of the session template resource to * delete. * @param array $optParams Optional parameters. * @return DataprocEmpty * @throws \Google\Service\Exception */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('delete', [$params], DataprocEmpty::class); } /** * Gets the resource representation for a session template. * (sessionTemplates.get) * * @param string $name Required. The name of the session template to retrieve. * @param array $optParams Optional parameters. * @return SessionTemplate * @throws \Google\Service\Exception */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('get', [$params], SessionTemplate::class); } /** * Lists session templates. * (sessionTemplates.listProjectsLocationsSessionTemplates) * * @param string $parent Required. The parent that owns this collection of * session templates. * @param array $optParams Optional parameters. * * @opt_param string filter Optional. A filter for the session templates to * return in the response. Filters are case sensitive and have the following * syntax:field = value AND field = value ... * @opt_param int pageSize Optional. The maximum number of sessions to return in * each response. The service may return fewer than this value. * @opt_param string pageToken Optional. A page token received from a previous * ListSessions call. Provide this token to retrieve the subsequent page. * @return ListSessionTemplatesResponse * @throws \Google\Service\Exception */ public function listProjectsLocationsSessionTemplates($parent, $optParams = []) { $params = ['parent' => $parent]; $params = array_merge($params, $optParams); return $this->call('list', [$params], ListSessionTemplatesResponse::class); } /** * Updates the session template synchronously. (sessionTemplates.patch) * * @param string $name Required. The resource name of the session template. * @param SessionTemplate $postBody * @param array $optParams Optional parameters. * @return SessionTemplate * @throws \Google\Service\Exception */ public function patch($name, SessionTemplate $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('patch', [$params], SessionTemplate::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsLocationsSessionTemplates::class, 'Google_Service_Dataproc_Resource_ProjectsLocationsSessionTemplates');