Skip to main content

document_schemas

Overview

Namedocument_schemas
TypeResource
Idgoogle.contentwarehouse.document_schemas

Fields

NameDatatypeDescription
namestringThe resource name of the document schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. The name is ignored when creating a document schema.
descriptionstringSchema description.
createTimestringOutput only. The time when the document schema is created.
displayNamestringRequired. Name of the schema given by the user. Must be unique per project.
documentIsFolderbooleanDocument Type, true refers the document is a folder, otherwise it is a typical document.
propertyDefinitionsarrayDocument details.
updateTimestringOutput only. The time when the document schema is last updated.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdocumentSchemasId, locationsId, projectsIdGets a document schema. Returns NOT_FOUND if the document schema does not exist.
listSELECTlocationsId, projectsIdLists document schemas.
createINSERTlocationsId, projectsIdCreates a document schema.
deleteDELETEdocumentSchemasId, locationsId, projectsIdDeletes 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.
_listEXEClocationsId, projectsIdLists document schemas.
patchEXECdocumentSchemasId, locationsId, projectsIdUpdates 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.