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

fix: Update DocumentUnderstandingService default_host in v1beta2 from a regional endpoint, to non-regional #252

Merged
merged 3 commits into from
Aug 12, 2021
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
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