lib/google/cloud/vision.rb in google-cloud-vision-1.3.0 vs lib/google/cloud/vision.rb in google-cloud-vision-1.4.0
- old
+ new
@@ -27,30 +27,31 @@
require "google/cloud" unless defined? ::Google::Cloud.new
require "google/cloud/config"
# Set the default configuration
::Google::Cloud.configure.add_config! :vision do |config|
- config.add_field! :endpoint, "vision.googleapis.com", match: ::String
+ config.add_field! :endpoint, nil, match: ::String
config.add_field! :credentials, nil, match: [::String, ::Hash, ::Google::Auth::Credentials]
config.add_field! :scope, nil, match: [::Array, ::String]
config.add_field! :lib_name, nil, match: ::String
config.add_field! :lib_version, nil, match: ::String
config.add_field! :interceptors, nil, match: ::Array
config.add_field! :timeout, nil, match: ::Numeric
config.add_field! :metadata, nil, match: ::Hash
config.add_field! :retry_policy, nil, match: [::Hash, ::Proc]
config.add_field! :quota_project, nil, match: ::String
+ config.add_field! :universe_domain, nil, match: ::String
end
module Google
module Cloud
module Vision
##
# Create a new client object for ProductSearch.
#
# By default, this returns an instance of
- # [Google::Cloud::Vision::V1::ProductSearch::Client](https://googleapis.dev/ruby/google-cloud-vision-v1/latest/Google/Cloud/Vision/V1/ProductSearch/Client.html)
+ # [Google::Cloud::Vision::V1::ProductSearch::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-ProductSearch-Client)
# for a gRPC client for version V1 of the API.
# However, you can specify a different API version by passing it in the
# `version` parameter. If the ProductSearch service is
# supported by that API version, and the corresponding gem is available, the
# appropriate versioned client will be returned.
@@ -93,10 +94,10 @@
##
# Create a new client object for ImageAnnotator.
#
# By default, this returns an instance of
- # [Google::Cloud::Vision::V1::ImageAnnotator::Client](https://googleapis.dev/ruby/google-cloud-vision-v1/latest/Google/Cloud/Vision/V1/ImageAnnotator/Client.html)
+ # [Google::Cloud::Vision::V1::ImageAnnotator::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-ImageAnnotator-Client)
# for a gRPC client for version V1 of the API.
# However, you can specify a different API version by passing it in the
# `version` parameter. If the ImageAnnotator service is
# supported by that API version, and the corresponding gem is available, the
# appropriate versioned client will be returned.