Class ProjectsResource.LocationsResource.DocumentSchemasResource
The "documentSchemas" collection of methods.
Inherited Members
Namespace: Google.Apis.Contentwarehouse.v1
Assembly: Google.Apis.Contentwarehouse.v1.dll
Syntax
public class ProjectsResource.LocationsResource.DocumentSchemasResource
Constructors
DocumentSchemasResource(IClientService)
Constructs a new resource.
Declaration
public DocumentSchemasResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Create(GoogleCloudContentwarehouseV1DocumentSchema, string)
Creates a document schema.
Declaration
public virtual ProjectsResource.LocationsResource.DocumentSchemasResource.CreateRequest Create(GoogleCloudContentwarehouseV1DocumentSchema body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudContentwarehouseV1DocumentSchema | body | The body of the request. |
| string | parent | Required. The parent name. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.DocumentSchemasResource.CreateRequest |
Delete(string)
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.
Declaration
public virtual ProjectsResource.LocationsResource.DocumentSchemasResource.DeleteRequest Delete(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The name of the document schema to delete. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.DocumentSchemasResource.DeleteRequest |
Get(string)
Gets a document schema. Returns NOT_FOUND if the document schema does not exist.
Declaration
public virtual ProjectsResource.LocationsResource.DocumentSchemasResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The name of the document schema to retrieve. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.DocumentSchemasResource.GetRequest |
List(string)
Lists document schemas.
Declaration
public virtual ProjectsResource.LocationsResource.DocumentSchemasResource.ListRequest List(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent, which owns this collection of document schemas. Format: projects/{project_number}/locations/{location}. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.DocumentSchemasResource.ListRequest |
Patch(GoogleCloudContentwarehouseV1UpdateDocumentSchemaRequest, string)
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.
Declaration
public virtual ProjectsResource.LocationsResource.DocumentSchemasResource.PatchRequest Patch(GoogleCloudContentwarehouseV1UpdateDocumentSchemaRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudContentwarehouseV1UpdateDocumentSchemaRequest | body | The body of the request. |
| string | name | Required. The name of the document schema to update. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.DocumentSchemasResource.PatchRequest |