ProjectsLocationsDocumentSchemas
class ProjectsLocationsDocumentSchemas extends Resource (View source)
The "documentSchemas" collection of methods.
Typical usage is:
$contentwarehouseService = new Google\Service\Contentwarehouse(...);
$documentSchemas = $contentwarehouseService->projects_locations_documentSchemas;
Methods
Creates a document schema. (documentSchemas.create)
Deletes a document schema. Returns NOT_FOUND if the document schema does not exist. Returns BAD_REQUEST if the document schema has documents depending on it. (documentSchemas.delete)
Gets a document schema. Returns NOT_FOUND if the document schema does not exist. (documentSchemas.get)
Lists document schemas.
Updates a Document Schema. Returns INVALID_ARGUMENT if the name of the Document Schema is non-empty and does not equal the existing name. Supports only appending new properties, adding new ENUM possible values, and updating the EnumTypeOptions.validation_check_disabled flag for ENUM possible values.
Details
GoogleCloudContentwarehouseV1DocumentSchema
create(string $parent, GoogleCloudContentwarehouseV1DocumentSchema $postBody, array $optParams = [])
Creates a document schema. (documentSchemas.create)
GoogleProtobufEmpty
delete(string $name, array $optParams = [])
Deletes a document schema. Returns NOT_FOUND if the document schema does not exist. Returns BAD_REQUEST if the document schema has documents depending on it. (documentSchemas.delete)
GoogleCloudContentwarehouseV1DocumentSchema
get(string $name, array $optParams = [])
Gets a document schema. Returns NOT_FOUND if the document schema does not exist. (documentSchemas.get)
GoogleCloudContentwarehouseV1ListDocumentSchemasResponse
listProjectsLocationsDocumentSchemas(string $parent, array $optParams = [])
Lists document schemas.
(documentSchemas.listProjectsLocationsDocumentSchemas)
GoogleCloudContentwarehouseV1DocumentSchema
patch(string $name, GoogleCloudContentwarehouseV1UpdateDocumentSchemaRequest $postBody, array $optParams = [])
Updates a Document Schema. Returns INVALID_ARGUMENT if the name of the Document Schema is non-empty and does not equal the existing name. Supports only appending new properties, adding new ENUM possible values, and updating the EnumTypeOptions.validation_check_disabled flag for ENUM possible values.
Updating existing properties will result into INVALID_ARGUMENT. (documentSchemas.patch)