Class ProjectsResource.LocationsResource.DocumentSchemasResource.PatchRequest
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.
Inheritance
ProjectsResource.LocationsResource.DocumentSchemasResource.PatchRequest
Inherited Members
Namespace: Google.Apis.Contentwarehouse.v1
Assembly: Google.Apis.Contentwarehouse.v1.dll
Syntax
public class ProjectsResource.LocationsResource.DocumentSchemasResource.PatchRequest : ContentwarehouseBaseServiceRequest<GoogleCloudContentwarehouseV1DocumentSchema>, IClientServiceRequest<GoogleCloudContentwarehouseV1DocumentSchema>, IClientServiceRequest
Constructors
PatchRequest(IClientService, GoogleCloudContentwarehouseV1UpdateDocumentSchemaRequest, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, GoogleCloudContentwarehouseV1UpdateDocumentSchemaRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| GoogleCloudContentwarehouseV1UpdateDocumentSchemaRequest | body | |
| string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Name
Required. The name of the document schema to update. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()