Resource: Collection
Defines the structure for content warehouse collection proto.
JSON representation |
---|
{
"name": string,
"displayName": string,
"parentCollectionId": string,
"collectionType": enum ( |
Fields | |
---|---|
name |
The resource name of the collection. Format: projects/{projectNumber}/locations/{location}/collections/{collection}. The name is ignored when creating a collection. |
displayName |
Required. Display name of the collection given by the user. |
parentCollectionId |
The parent collection id of the collection. One collection only can have one parent collection, and they should be in the same project and location. |
collectionType |
Indicate this collection's type. |
revokeDocEditPermission |
If it is true, after adding the document to the collection, the users with document edit permission will only have view permission. Can not be updated after the collection is created. |
allowLinkDocuments |
Whether allow the collection to link to documents. Cannot be updated after the collection is created. |
createTime |
Output only. The time when the document is created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. The time when the document is last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
attributes |
Other collection attributes for the use cases. |
CollectionType
The type of the collection.
Enums | |
---|---|
COLLECTION_TYPE_UNSPECIFIED |
Not specified. |
DATASET |
Dataset collection. |
RECORD_SET |
Record set collection. |
WORK_QUEUE |
Queue collection. E.g. a queue for human review. |
WORKFLOW |
The working collection for a workflow. One workflow has one collection. |
LEGAL_HOLD |
Legal hold collection. |
Methods |
|
---|---|
|
Creates a collection. |
|
Deletes a collection. |
|
Gets the access control policy for the collection. |
|
Gets a collection. |
|
Searches for collections using provided SearchCollectionsRequest . |
|
Sets the access control policy for the collection. |