class ProjectsLocationsCollectionsDataStoresSessions extends Resource (View source)

The "sessions" collection of methods.

Typical usage is:

 $discoveryengineService = new Google\Service\DiscoveryEngine(...);
 $sessions = $discoveryengineService->projects_locations_collections_dataStores_sessions;

Methods

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

Creates a Session. If the Session to create already exists, an ALREADY_EXISTS error is returned. (sessions.create)

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

Deletes a Session. If the Session to delete does not exist, a NOT_FOUND error is returned. (sessions.delete)

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

Gets a Session. (sessions.get)

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

Lists all Sessions by their parent DataStore.

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

Updates a Session. Session action type cannot be changed. If the Session to update does not exist, a NOT_FOUND error is returned. (sessions.patch)

Details

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

Creates a Session. If the Session to create already exists, an ALREADY_EXISTS error is returned. (sessions.create)

Parameters

string $parent

Required. Full resource name of parent data store. Format: projects/{project_number}/locations/{location_id}/collections/{colle ction}/dataStores/{data_store_id}

GoogleCloudDiscoveryengineV1Session $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudDiscoveryengineV1Session

Exceptions

Exception

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

Deletes a Session. If the Session to delete does not exist, a NOT_FOUND error is returned. (sessions.delete)

Parameters

string $name

Required. The resource name of the Session to delete. Format: projects/{project_number}/locations/{location_id}/collections/{colle ction}/dataStores/{data_store_id}/sessions/{session_id}

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

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

Gets a Session. (sessions.get)

Parameters

string $name

Required. The resource name of the Session to get. Format: projects/{project_number}/locations/{location_id}/collections/{colle ction}/dataStores/{data_store_id}/sessions/{session_id}

array $optParams

Optional parameters.

Return Value

GoogleCloudDiscoveryengineV1Session

Exceptions

Exception

GoogleCloudDiscoveryengineV1ListSessionsResponse listProjectsLocationsCollectionsDataStoresSessions(string $parent, array $optParams = [])

Lists all Sessions by their parent DataStore.

(sessions.listProjectsLocationsCollectionsDataStoresSessions)

Parameters

string $parent

Required. The data store resource name. Format: projec ts/{project_number}/locations/{location_id}/collections/{collection}/dataStor es/{data_store_id}

array $optParams

Optional parameters.

Return Value

GoogleCloudDiscoveryengineV1ListSessionsResponse

Exceptions

Exception

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

Updates a Session. Session action type cannot be changed. If the Session to update does not exist, a NOT_FOUND error is returned. (sessions.patch)

Parameters

string $name

Immutable. Fully qualified name projects/{project}/locat ions/global/collections/{collection}/engines/{engine}/sessions

GoogleCloudDiscoveryengineV1Session $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudDiscoveryengineV1Session

Exceptions

Exception