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

Commit

Permalink
fix: Update DocumentUnderstandingService default_host in v1beta2 from…
Browse files Browse the repository at this point in the history
… a regional endpoint, to non-regional (#252)

Committer: @nicain
PiperOrigin-RevId: 390219495
  • Loading branch information
gcf-owl-bot[bot] committed Aug 12, 2021
1 parent 6c7b4b6 commit 79b8d82
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ option ruby_package = "Google::Cloud::DocumentAI::V1beta2";
// documents using state-of-the-art Google AI such as natural language,
// computer vision, and translation.
service DocumentUnderstandingService {
option (google.api.default_host) = "us-documentai.googleapis.com";
option (google.api.default_host) = "documentai.googleapis.com";
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";

// LRO endpoint to batch process many documents. The output is written
Expand Down
2 changes: 1 addition & 1 deletion protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/v1beta2/document_understanding_service_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export class DocumentUnderstandingServiceClient {
* @returns {string} The DNS address for this service.
*/
static get servicePath() {
return 'us-documentai.googleapis.com';
return 'documentai.googleapis.com';
}

/**
Expand All @@ -274,7 +274,7 @@ export class DocumentUnderstandingServiceClient {
* @returns {string} The DNS address for this service.
*/
static get apiEndpoint() {
return 'us-documentai.googleapis.com';
return 'documentai.googleapis.com';
}

/**
Expand Down

0 comments on commit 79b8d82

Please sign in to comment.