Skip to main content

@swamp/gcp/contentwarehouse

v2026.04.04.1

Google Cloud contentwarehouse infrastructure models

Labels

gcpgoogle-cloudcontentwarehousecloudinfrastructure

Contents

Install

$ swamp extension pull @swamp/gcp/contentwarehouse

Release Notes

  • Updated: documentschemas, documents, documents_referenceid, rulesets

@swamp/gcp/contentwarehouse/documentsv2026.04.04.1documents.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
cloudAiDocumentOption?objectRequest Option for processing Cloud AI Document in CW Document.
createMask?stringField mask for creating Document fields. If mask path is empty, it means all fields are masked. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask.
document?objectDocument represents the canonical document resource in Document AI. It is an interchange format that provides insights into documents and allows for collaboration between users and Document AI to iterate and optimize for quality.
contentCategory?enumIndicates the category (image, audio, video etc.) of the original content.
createTime?stringOutput only. The time when the document is created.
creator?stringThe user who creates the document.
displayName?stringRequired. Display name of the document given by the user. This name will be displayed in the UI. Customer can populate this field with the name of the document. This differs from the 'title' field as 'title' is optional and stores the top heading in the document.
displayUri?stringUri to display the document, for example, in the UI.
dispositionTime?stringOutput only. If linked to a Collection with RetentionPolicy, the date when the document becomes mutable.
documentSchemaName?stringThe Document schema name. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
inlineRawDocument?stringRaw document content.
legalHold?booleanOutput only. Indicates if the document has a legal hold on it.
name?stringThe resource name of the document. Format: projects/{project_number}/locations/{location}/documents/{document_id}. The name is ignored when creating a document.
plainText?stringOther document format, such as PPTX, XLXS
properties?arrayList of values that are user supplied metadata.
rawDocumentFileType?enumThis is used when DocAI was not used to load the document and parsing/ extracting is needed for the inline_raw_document. For example, if inline_raw_document is the byte representation of a PDF file, then this should be set to: RAW_DOCUMENT_FILE_TYPE_PDF.
rawDocumentPath?stringRaw document file in Cloud Storage path.
referenceId?stringThe reference ID set by customers. Must be unique per project and location.
textExtractionDisabled?booleanIf true, text extraction will not be performed.
textExtractionEnabled?booleanIf true, text extraction will be performed.
title?stringTitle that describes the document. This can be the top heading or text that describes the document.
updateTime?stringOutput only. The time when the document is last updated.
updater?stringThe user who lastly updates the document.
policy?objectAn Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also
requestMetadata?objectMeta information is used to improve the performance of the service.
updateOptions?objectOptions for Update operations.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
createCreate a documents
getGet a documents
ArgumentTypeDescription
identifierstringThe name of the documents
updateUpdate documents attributes
deleteDelete the documents
ArgumentTypeDescription
identifierstringThe name of the documents
syncSync documents state from GCP
fetch_aclfetch acl
ArgumentTypeDescription
projectOwner?any
requestMetadata?any
linked_sourceslinked sources
ArgumentTypeDescription
pageSize?any
pageToken?any
requestMetadata?any
linked_targetslinked targets
ArgumentTypeDescription
requestMetadata?any
locklock
ArgumentTypeDescription
collectionId?any
lockingUser?any
searchsearch
ArgumentTypeDescription
documentQuery?any
histogramQueries?any
offset?any
orderBy?any
pageSize?any
pageToken?any
qaSizeLimit?any
requestMetadata?any
requireTotalSize?any
totalResultSize?any
set_aclset acl
ArgumentTypeDescription
policy?any
projectOwner?any
requestMetadata?any

Resources

state(infinite)— Defines the structure for content warehouse document proto.
@swamp/gcp/contentwarehouse/documents-referenceidv2026.04.04.1documents_referenceid.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
cloudAiDocumentOption?objectRequest Option for processing Cloud AI Document in CW Document.
document?objectDocument represents the canonical document resource in Document AI. It is an interchange format that provides insights into documents and allows for collaboration between users and Document AI to iterate and optimize for quality.
contentCategory?enumIndicates the category (image, audio, video etc.) of the original content.
createTime?stringOutput only. The time when the document is created.
creator?stringThe user who creates the document.
displayName?stringRequired. Display name of the document given by the user. This name will be displayed in the UI. Customer can populate this field with the name of the document. This differs from the 'title' field as 'title' is optional and stores the top heading in the document.
displayUri?stringUri to display the document, for example, in the UI.
dispositionTime?stringOutput only. If linked to a Collection with RetentionPolicy, the date when the document becomes mutable.
documentSchemaName?stringThe Document schema name. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
inlineRawDocument?stringRaw document content.
legalHold?booleanOutput only. Indicates if the document has a legal hold on it.
name?stringThe resource name of the document. Format: projects/{project_number}/locations/{location}/documents/{document_id}. The name is ignored when creating a document.
plainText?stringOther document format, such as PPTX, XLXS
properties?arrayList of values that are user supplied metadata.
rawDocumentFileType?enumThis is used when DocAI was not used to load the document and parsing/ extracting is needed for the inline_raw_document. For example, if inline_raw_document is the byte representation of a PDF file, then this should be set to: RAW_DOCUMENT_FILE_TYPE_PDF.
rawDocumentPath?stringRaw document file in Cloud Storage path.
referenceId?stringThe reference ID set by customers. Must be unique per project and location.
textExtractionDisabled?booleanIf true, text extraction will not be performed.
textExtractionEnabled?booleanIf true, text extraction will be performed.
title?stringTitle that describes the document. This can be the top heading or text that describes the document.
updateTime?stringOutput only. The time when the document is last updated.
updater?stringThe user who lastly updates the document.
requestMetadata?objectMeta information is used to improve the performance of the service.
updateOptions?objectOptions for Update operations.
getGet a referenceId
ArgumentTypeDescription
identifierstringThe name of the referenceId
updateUpdate referenceId attributes
deleteDelete the referenceId
ArgumentTypeDescription
identifierstringThe name of the referenceId
syncSync referenceId state from GCP

Resources

state(infinite)— Defines the structure for content warehouse document proto.
@swamp/gcp/contentwarehouse/documentschemasv2026.04.04.1documentschemas.ts

Global Arguments

ArgumentTypeDescription
description?stringSchema description.
displayName?stringRequired. Name of the schema given by the user. Must be unique per project.
documentIsFolder?booleanDocument Type, true refers the document is a folder, otherwise it is a typical document.
name?stringThe 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.
propertyDefinitions?arrayDocument details.
documentSchema?objectA document schema used to define document structure.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
createCreate a documentSchemas
getGet a documentSchemas
ArgumentTypeDescription
identifierstringThe name of the documentSchemas
updateUpdate documentSchemas attributes
deleteDelete the documentSchemas
ArgumentTypeDescription
identifierstringThe name of the documentSchemas
syncSync documentSchemas state from GCP

Resources

state(infinite)— A document schema used to define document structure.
@swamp/gcp/contentwarehouse/rulesetsv2026.04.04.1rulesets.ts

Global Arguments

ArgumentTypeDescription
description?stringShort description of the rule-set.
name?stringThe resource name of the rule set. Managed internally. Format: projects/{project_number}/locations/{location}/ruleSet/{rule_set_id}. The name is ignored when creating a rule set.
rules?arrayList of rules given by the customer.
source?stringSource of the rules i.e., customer name.
ruleSet?objectRepresents a set of rules from a single customer.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
createCreate a ruleSets
getGet a ruleSets
ArgumentTypeDescription
identifierstringThe name of the ruleSets
updateUpdate ruleSets attributes
deleteDelete the ruleSets
ArgumentTypeDescription
identifierstringThe name of the ruleSets
syncSync ruleSets state from GCP

Resources

state(infinite)— Represents a set of rules from a single customer.
@swamp/gcp/contentwarehouse/synonymsetsv2026.04.03.3synonymsets.ts

Global Arguments

ArgumentTypeDescription
context?stringThis is a freeform field. Example contexts can be "sales," "engineering," "real estate," "accounting," etc. The context can be supplied during search requests.
name?stringThe resource name of the SynonymSet This is mandatory for google.api.resource. Format: projects/{project_number}/locations/{location}/synonymSets/{context}.
synonyms?arrayList of Synonyms for the context.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
createCreate a synonymSets
getGet a synonymSets
ArgumentTypeDescription
identifierstringThe name of the synonymSets
updateUpdate synonymSets attributes
deleteDelete the synonymSets
ArgumentTypeDescription
identifierstringThe name of the synonymSets
syncSync synonymSets state from GCP

Resources

state(infinite)— Represents a list of synonyms for a given context. For example a context "sal...