Class ProjectsResource.LocationsResource.ProcessorsResource.CreateRequest
Creates a processor from the ProcessorType provided. The processor will be at ENABLED state by
default after its creation. Note that this method requires the documentai.processors.create
permission on the project, which is highly privileged. A user or service account with this
permission can create new processors that can interact with any gcs bucket in your project.
Inheritance
ProjectsResource.LocationsResource.ProcessorsResource.CreateRequest
Inherited Members
Namespace: Google.Apis.Document.v1
Assembly: Google.Apis.Document.v1.dll
Syntax
public class ProjectsResource.LocationsResource.ProcessorsResource.CreateRequest : DocumentBaseServiceRequest<GoogleCloudDocumentaiV1Processor>, IClientServiceRequest<GoogleCloudDocumentaiV1Processor>, IClientServiceRequest
Constructors
CreateRequest(IClientService, GoogleCloudDocumentaiV1Processor, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, GoogleCloudDocumentaiV1Processor body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| GoogleCloudDocumentaiV1Processor | body | |
| string | parent |
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
Parent
Required. The parent (project and location) under which to create the processor. Format:
projects/{project}/locations/{location}
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { 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 Create parameter list.
Declaration
protected override void InitParameters()