Skip to content

Commit

Permalink
fix(documentai): update the API
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Nov 30, 2020
1 parent f93c446 commit 51b5d29
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 54 deletions.
24 changes: 6 additions & 18 deletions src/apis/documentai/v1beta2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2642,20 +2642,14 @@ export namespace documentai_v1beta2 {
options:
| MethodOptions
| BodyResponseCallback<Schema$GoogleCloudDocumentaiV1beta2Document>,
callback: BodyResponseCallback<
Schema$GoogleCloudDocumentaiV1beta2Document
>
callback: BodyResponseCallback<Schema$GoogleCloudDocumentaiV1beta2Document>
): void;
process(
params: Params$Resource$Projects$Documents$Process,
callback: BodyResponseCallback<
Schema$GoogleCloudDocumentaiV1beta2Document
>
callback: BodyResponseCallback<Schema$GoogleCloudDocumentaiV1beta2Document>
): void;
process(
callback: BodyResponseCallback<
Schema$GoogleCloudDocumentaiV1beta2Document
>
callback: BodyResponseCallback<Schema$GoogleCloudDocumentaiV1beta2Document>
): void;
process(
paramsOrCallback?:
Expand Down Expand Up @@ -3007,20 +3001,14 @@ export namespace documentai_v1beta2 {
options:
| MethodOptions
| BodyResponseCallback<Schema$GoogleCloudDocumentaiV1beta2Document>,
callback: BodyResponseCallback<
Schema$GoogleCloudDocumentaiV1beta2Document
>
callback: BodyResponseCallback<Schema$GoogleCloudDocumentaiV1beta2Document>
): void;
process(
params: Params$Resource$Projects$Locations$Documents$Process,
callback: BodyResponseCallback<
Schema$GoogleCloudDocumentaiV1beta2Document
>
callback: BodyResponseCallback<Schema$GoogleCloudDocumentaiV1beta2Document>
): void;
process(
callback: BodyResponseCallback<
Schema$GoogleCloudDocumentaiV1beta2Document
>
callback: BodyResponseCallback<Schema$GoogleCloudDocumentaiV1beta2Document>
): void;
process(
paramsOrCallback?:
Expand Down
52 changes: 16 additions & 36 deletions src/apis/documentai/v1beta3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3321,20 +3321,14 @@ export namespace documentai_v1beta3 {
options:
| MethodOptions
| BodyResponseCallback<Schema$GoogleCloudLocationListLocationsResponse>,
callback: BodyResponseCallback<
Schema$GoogleCloudLocationListLocationsResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudLocationListLocationsResponse>
): void;
list(
params: Params$Resource$Projects$Locations$List,
callback: BodyResponseCallback<
Schema$GoogleCloudLocationListLocationsResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudLocationListLocationsResponse>
): void;
list(
callback: BodyResponseCallback<
Schema$GoogleCloudLocationListLocationsResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudLocationListLocationsResponse>
): void;
list(
paramsOrCallback?:
Expand Down Expand Up @@ -3391,9 +3385,9 @@ export namespace documentai_v1beta3 {
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<
Schema$GoogleCloudLocationListLocationsResponse
>(parameters);
return createAPIRequest<Schema$GoogleCloudLocationListLocationsResponse>(
parameters
);
}
}
}
Expand Down Expand Up @@ -3813,42 +3807,28 @@ export namespace documentai_v1beta3 {
params: Params$Resource$Projects$Locations$Processors$Process,
options:
| MethodOptions
| BodyResponseCallback<
Schema$GoogleCloudDocumentaiV1beta3ProcessResponse
>,
callback: BodyResponseCallback<
Schema$GoogleCloudDocumentaiV1beta3ProcessResponse
>
| BodyResponseCallback<Schema$GoogleCloudDocumentaiV1beta3ProcessResponse>,
callback: BodyResponseCallback<Schema$GoogleCloudDocumentaiV1beta3ProcessResponse>
): void;
process(
params: Params$Resource$Projects$Locations$Processors$Process,
callback: BodyResponseCallback<
Schema$GoogleCloudDocumentaiV1beta3ProcessResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudDocumentaiV1beta3ProcessResponse>
): void;
process(
callback: BodyResponseCallback<
Schema$GoogleCloudDocumentaiV1beta3ProcessResponse
>
callback: BodyResponseCallback<Schema$GoogleCloudDocumentaiV1beta3ProcessResponse>
): void;
process(
paramsOrCallback?:
| Params$Resource$Projects$Locations$Processors$Process
| BodyResponseCallback<
Schema$GoogleCloudDocumentaiV1beta3ProcessResponse
>
| BodyResponseCallback<Schema$GoogleCloudDocumentaiV1beta3ProcessResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<
Schema$GoogleCloudDocumentaiV1beta3ProcessResponse
>
| BodyResponseCallback<Schema$GoogleCloudDocumentaiV1beta3ProcessResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<
Schema$GoogleCloudDocumentaiV1beta3ProcessResponse
>
| BodyResponseCallback<Schema$GoogleCloudDocumentaiV1beta3ProcessResponse>
| BodyResponseCallback<Readable>
):
| void
Expand Down Expand Up @@ -3892,9 +3872,9 @@ export namespace documentai_v1beta3 {
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<
Schema$GoogleCloudDocumentaiV1beta3ProcessResponse
>(parameters);
return createAPIRequest<Schema$GoogleCloudDocumentaiV1beta3ProcessResponse>(
parameters
);
}
}
}
Expand Down

0 comments on commit 51b5d29

Please sign in to comment.