Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

fix(documentai): add ancillary service bindings to service_yaml #296

Merged
merged 3 commits into from
Jan 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .jsdoc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -40,7 +40,7 @@ module.exports = {
includePattern: '\\.js$'
},
templates: {
copyright: 'Copyright 2021 Google LLC',
copyright: 'Copyright 2022 Google LLC',
includeDate: false,
sourceFiles: false,
systemName: '@google-cloud/documentai',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main(name) {
Expand All @@ -38,8 +39,7 @@ function main(name) {
// const skipHumanReview = true

// Imports the Documentai library
const {DocumentProcessorServiceClient} =
require('@google-cloud/documentai').v1;
const {DocumentProcessorServiceClient} = require('@google-cloud/documentai').v1;

// Instantiates a client
const documentaiClient = new DocumentProcessorServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main(name) {
Expand All @@ -38,8 +39,7 @@ function main(name) {
// const skipHumanReview = true

// Imports the Documentai library
const {DocumentProcessorServiceClient} =
require('@google-cloud/documentai').v1;
const {DocumentProcessorServiceClient} = require('@google-cloud/documentai').v1;

// Instantiates a client
const documentaiClient = new DocumentProcessorServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main(humanReviewConfig) {
Expand All @@ -38,8 +39,7 @@ function main(humanReviewConfig) {
// const priority = {}

// Imports the Documentai library
const {DocumentProcessorServiceClient} =
require('@google-cloud/documentai').v1;
const {DocumentProcessorServiceClient} = require('@google-cloud/documentai').v1;

// Instantiates a client
const documentaiClient = new DocumentProcessorServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main(requests) {
Expand All @@ -31,8 +32,7 @@ function main(requests) {
// const parent = 'abc123'

// Imports the Documentai library
const {DocumentUnderstandingServiceClient} =
require('@google-cloud/documentai').v1beta1;
const {DocumentUnderstandingServiceClient} = require('@google-cloud/documentai').v1beta1;

// Instantiates a client
const documentaiClient = new DocumentUnderstandingServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main(requests) {
Expand All @@ -31,8 +32,7 @@ function main(requests) {
// const parent = 'abc123'

// Imports the Documentai library
const {DocumentUnderstandingServiceClient} =
require('@google-cloud/documentai').v1beta2;
const {DocumentUnderstandingServiceClient} = require('@google-cloud/documentai').v1beta2;

// Instantiates a client
const documentaiClient = new DocumentUnderstandingServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main(inputConfig) {
Expand Down Expand Up @@ -68,8 +69,7 @@ function main(inputConfig) {
// const automlParams = {}

// Imports the Documentai library
const {DocumentUnderstandingServiceClient} =
require('@google-cloud/documentai').v1beta2;
const {DocumentUnderstandingServiceClient} = require('@google-cloud/documentai').v1beta2;

// Instantiates a client
const documentaiClient = new DocumentUnderstandingServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main(name) {
Expand Down Expand Up @@ -46,8 +47,7 @@ function main(name) {
// const skipHumanReview = true

// Imports the Documentai library
const {DocumentProcessorServiceClient} =
require('@google-cloud/documentai').v1beta3;
const {DocumentProcessorServiceClient} = require('@google-cloud/documentai').v1beta3;

// Instantiates a client
const documentaiClient = new DocumentProcessorServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main(parent, processor) {
Expand All @@ -25,14 +26,13 @@ function main(parent, processor) {
*/
// const parent = 'abc123'
/**
* Required. The processor to be created, requires processor_type and display_name
* Required. The processor to be created, requires processor_type and display_name
* to be set. Also, the processor is under CMEK if CMEK fields are set.
*/
// const processor = {}

// Imports the Documentai library
const {DocumentProcessorServiceClient} =
require('@google-cloud/documentai').v1beta3;
const {DocumentProcessorServiceClient} = require('@google-cloud/documentai').v1beta3;

// Instantiates a client
const documentaiClient = new DocumentProcessorServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main(name) {
Expand All @@ -25,8 +26,7 @@ function main(name) {
// const name = 'abc123'

// Imports the Documentai library
const {DocumentProcessorServiceClient} =
require('@google-cloud/documentai').v1beta3;
const {DocumentProcessorServiceClient} = require('@google-cloud/documentai').v1beta3;

// Instantiates a client
const documentaiClient = new DocumentProcessorServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main(name) {
Expand All @@ -25,8 +26,7 @@ function main(name) {
// const name = 'abc123'

// Imports the Documentai library
const {DocumentProcessorServiceClient} =
require('@google-cloud/documentai').v1beta3;
const {DocumentProcessorServiceClient} = require('@google-cloud/documentai').v1beta3;

// Instantiates a client
const documentaiClient = new DocumentProcessorServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main(name) {
Expand All @@ -25,8 +26,7 @@ function main(name) {
// const name = 'abc123'

// Imports the Documentai library
const {DocumentProcessorServiceClient} =
require('@google-cloud/documentai').v1beta3;
const {DocumentProcessorServiceClient} = require('@google-cloud/documentai').v1beta3;

// Instantiates a client
const documentaiClient = new DocumentProcessorServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main(parent) {
Expand All @@ -26,8 +27,7 @@ function main(parent) {
// const parent = 'abc123'

// Imports the Documentai library
const {DocumentProcessorServiceClient} =
require('@google-cloud/documentai').v1beta3;
const {DocumentProcessorServiceClient} = require('@google-cloud/documentai').v1beta3;

// Instantiates a client
const documentaiClient = new DocumentProcessorServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main(parent) {
Expand All @@ -37,8 +38,7 @@ function main(parent) {
// const pageToken = 'abc123'

// Imports the Documentai library
const {DocumentProcessorServiceClient} =
require('@google-cloud/documentai').v1beta3;
const {DocumentProcessorServiceClient} = require('@google-cloud/documentai').v1beta3;

// Instantiates a client
const documentaiClient = new DocumentProcessorServiceClient();
Expand All @@ -52,7 +52,7 @@ function main(parent) {
// Run request
const iterable = await documentaiClient.listProcessorsAsync(request);
for await (const response of iterable) {
console.log(response);
console.log(response);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main(name) {
Expand Down Expand Up @@ -42,8 +43,7 @@ function main(name) {
// const skipHumanReview = true

// Imports the Documentai library
const {DocumentProcessorServiceClient} =
require('@google-cloud/documentai').v1beta3;
const {DocumentProcessorServiceClient} = require('@google-cloud/documentai').v1beta3;

// Instantiates a client
const documentaiClient = new DocumentProcessorServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main(humanReviewConfig) {
Expand Down Expand Up @@ -42,8 +43,7 @@ function main(humanReviewConfig) {
// const priority = {}

// Imports the Documentai library
const {DocumentProcessorServiceClient} =
require('@google-cloud/documentai').v1beta3;
const {DocumentProcessorServiceClient} = require('@google-cloud/documentai').v1beta3;

// Instantiates a client
const documentaiClient = new DocumentProcessorServiceClient();
Expand Down
2 changes: 1 addition & 1 deletion src/v1/document_processor_service_client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/v1/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion system-test/fixtures/sample/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion system-test/fixtures/sample/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion system-test/install.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion test/gapic_document_processor_service_v1.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down