lib/google/cloud/vision/v1.rb in google-cloud-vision-0.33.1 vs lib/google/cloud/vision/v1.rb in google-cloud-vision-0.34.0
- old
+ new
@@ -131,19 +131,25 @@
# or the specified config is missing data points.
# @param timeout [Numeric]
# The default timeout, in seconds, for calls made through this client.
# @param metadata [Hash]
# Default metadata to be sent with each request. This can be overridden on a per call basis.
+ # @param service_address [String]
+ # Override for the service hostname, or `nil` to leave as the default.
+ # @param service_port [Integer]
+ # Override for the service port, or `nil` to leave as the default.
# @param exception_transformer [Proc]
# An optional proc that intercepts any exceptions raised during an API call to inject
# custom error handling.
def self.new \
credentials: nil,
scopes: nil,
client_config: nil,
timeout: nil,
metadata: nil,
+ service_address: nil,
+ service_port: nil,
exception_transformer: nil,
lib_name: nil,
lib_version: nil
kwargs = {
credentials: credentials,
@@ -151,10 +157,12 @@
client_config: client_config,
timeout: timeout,
metadata: metadata,
exception_transformer: exception_transformer,
lib_name: lib_name,
+ service_address: service_address,
+ service_port: service_port,
lib_version: lib_version
}.select { |_, v| v != nil }
Google::Cloud::Vision::V1::ImageAnnotatorClient.new(**kwargs)
end
end
@@ -202,19 +210,25 @@
# or the specified config is missing data points.
# @param timeout [Numeric]
# The default timeout, in seconds, for calls made through this client.
# @param metadata [Hash]
# Default metadata to be sent with each request. This can be overridden on a per call basis.
+ # @param service_address [String]
+ # Override for the service hostname, or `nil` to leave as the default.
+ # @param service_port [Integer]
+ # Override for the service port, or `nil` to leave as the default.
# @param exception_transformer [Proc]
# An optional proc that intercepts any exceptions raised during an API call to inject
# custom error handling.
def self.new \
credentials: nil,
scopes: nil,
client_config: nil,
timeout: nil,
metadata: nil,
+ service_address: nil,
+ service_port: nil,
exception_transformer: nil,
lib_name: nil,
lib_version: nil
kwargs = {
credentials: credentials,
@@ -222,9 +236,11 @@
client_config: client_config,
timeout: timeout,
metadata: metadata,
exception_transformer: exception_transformer,
lib_name: lib_name,
+ service_address: service_address,
+ service_port: service_port,
lib_version: lib_version
}.select { |_, v| v != nil }
Google::Cloud::Vision::V1::ProductSearchClient.new(**kwargs)
end
end