Full name: projects.locations.processors.processorVersions.importProcessorVersion
Imports a processor version from source processor version.
HTTP request
POST https://{endpoint}/v1beta3/{parent}/processorVersions:importProcessorVersion
Where {endpoint}
is one of the supported service endpoints.
Path parameters
Parameters | |
---|---|
parent |
Required. The destination processor name to create the processor version in. Format: Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field
|
|
processorVersionSource |
The source processor version to import from. The source processor version and destination processor need to be in the same environment and region. Note that ProcessorVersions with |
externalProcessorVersionSource |
The source processor version to import from. It can be from a different environment and region than the destination processor. |
Response body
If successful, the response body contains an instance of Operation
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent
resource:
documentai.processorVersions.create
For more information, see the IAM documentation.
ExternalProcessorVersionSource
The external source processor version.
JSON representation |
---|
{ "processorVersion": string, "serviceEndpoint": string } |
Fields | |
---|---|
processorVersion |
Required. The processor version name. Format: |
serviceEndpoint |
Optional. The Document AI service endpoint. For example, 'https://us-documentai.googleapis.com' |