Skip to content

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] authored Aug 12, 2021
1 parent f04b661 commit c00f106
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 packages/google-cloud-documentai/protos/protos.json

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

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 c00f106

Please sign in to comment.