class ProjectsLocationsCollectionsDataStoresSchemas extends Resource (View source)

The "schemas" collection of methods.

Typical usage is:

 $discoveryengineService = new Google\Service\DiscoveryEngine(...);
 $schemas = $discoveryengineService->projects_locations_collections_dataStores_schemas;

Methods

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

Creates a Schema. (schemas.create)

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

Deletes a Schema. (schemas.delete)

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

Gets a Schema. (schemas.get)

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

Gets a list of Schemas.

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

Updates a Schema. (schemas.patch)

Details

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

Creates a Schema. (schemas.create)

Parameters

string $parent

Required. The parent data store resource name, in the format of projects/{project}/locations/{location}/collections/{collection}/d ataStores/{data_store}.

GoogleCloudDiscoveryengineV1Schema $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

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

Deletes a Schema. (schemas.delete)

Parameters

string $name

Required. The full resource name of the schema, in the format of projects/{project}/locations/{location}/collections/{collection}/d ataStores/{data_store}/schemas/{schema}.

array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

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

Gets a Schema. (schemas.get)

Parameters

string $name

Required. The full resource name of the schema, in the format of projects/{project}/locations/{location}/collections/{collection}/d ataStores/{data_store}/schemas/{schema}.

array $optParams

Optional parameters.

Return Value

GoogleCloudDiscoveryengineV1Schema

Exceptions

Exception

GoogleCloudDiscoveryengineV1ListSchemasResponse listProjectsLocationsCollectionsDataStoresSchemas(string $parent, array $optParams = [])

Gets a list of Schemas.

(schemas.listProjectsLocationsCollectionsDataStoresSchemas)

Parameters

string $parent

Required. The parent data store resource name, in the format of projects/{project}/locations/{location}/collections/{collection}/d ataStores/{data_store}.

array $optParams

Optional parameters.

Return Value

GoogleCloudDiscoveryengineV1ListSchemasResponse

Exceptions

Exception

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

Updates a Schema. (schemas.patch)

Parameters

string $name

Immutable. The full resource name of the schema, in the format of projects/{project}/locations/{location}/collections/{collection}/d ataStores/{data_store}/schemas/{schema}. This field must be a UTF-8 encoded string with a length limit of 1024 characters.

GoogleCloudDiscoveryengineV1Schema $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception