You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parent: string, Required. The project of processor type to list. The available processor types may depend on the whitelisting on projects. Format: projects/{project}/locations/{location} (required)
114
+
x__xgafv: string, V1 error format.
115
+
Allowed values
116
+
1 - v1 error format
117
+
2 - v2 error format
118
+
119
+
Returns:
120
+
An object of the form:
121
+
122
+
{ # Response message for fetch processor types.
123
+
"processorTypes": [ # The list of processor types.
124
+
{ # A processor type is responsible for performing a certain document understanding task on a certain type of document. All processor types are created by the documentai service internally. User will only list all available processor types via UI. For different users (projects), the available processor types may be different since we'll expose the access of some types via EAP whitelisting. We make the ProcessorType a resource under location so we have a unified API and keep the possibility that UI will load different available processor types from different regions. But for alpha the behavior is that the user will always get the union of all available processor types among all regions no matter which regionalized endpoint is called, and then we use the 'available_locations' field to show under which regions a processor type is available. For example, users can call either the 'US' or 'EU' endpoint to feach processor types. In the return, we will have an 'invoice parsing' processor with 'available_locations' field only containing 'US'. So the user can try to create an 'invoice parsing' processor under the location 'US'. Such attempt of creating under the location 'EU' will fail. Next ID: 8.
125
+
"allowCreation": True or False, # Whether the processor type allows creation. If yes, user can create a processor of this processor type. Otherwise, user needs to request access.
126
+
"availableLocations": [ # The locations in which this processor is available.
127
+
{ # The location information about where the processor is available.
128
+
"locationId": "A String", # The location id, currently must be one of [us, eu].
129
+
},
130
+
],
131
+
"category": "A String", # The processor category, used by UI to group processor types.
132
+
"name": "A String", # The resource name of the processor type. Format: projects/{project}/processorTypes/{processor_type}
133
+
"type": "A String", # The type of the processor, e.g, "invoice_parsing".
0 commit comments