google-cloud-vision 0.37.3 → 0.38.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/vision.rb +1 -1
- data/lib/google/cloud/vision/v1.rb +1 -1
- data/lib/google/cloud/vision/v1/image_annotator_client.rb +3 -0
- data/lib/google/cloud/vision/v1/product_search_client.rb +3 -0
- data/lib/google/cloud/vision/v1p3beta1.rb +1 -1
- data/lib/google/cloud/vision/v1p3beta1/image_annotator_client.rb +3 -0
- data/lib/google/cloud/vision/v1p3beta1/product_search_client.rb +3 -0
- data/lib/google/cloud/vision/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92e13591a878b6c743e21c419bcaecea377c2f1e8a35840e73855eb8bf07d2f7
|
4
|
+
data.tar.gz: 8c97a2c534ff31d7e0ead0b8611607a049c5d52561f891df3831d4d13a489f15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19807c56d313a8312358cb1e8d4943a342bf3d9dfb4d2f6ed22dca543ddb26b8b8236521a5de98859653cb2e3bce636cb0dcff32c47db3bd27aaee8f600e9ebf
|
7
|
+
data.tar.gz: 298cc305b53305d15f69f7cfdb8f3ba35af8a157a547f2da07290c43b1b72132a4f6f882b58b9e6d7ce0a517ec27f4d60fb37c7c67c56125d48f00daef6009de
|
data/README.md
CHANGED
data/lib/google/cloud/vision.rb
CHANGED
@@ -21,7 +21,7 @@ module Google
|
|
21
21
|
# rubocop:disable LineLength
|
22
22
|
|
23
23
|
##
|
24
|
-
# # Ruby Client for Cloud Vision API
|
24
|
+
# # Ruby Client for Cloud Vision API
|
25
25
|
#
|
26
26
|
# [Cloud Vision API][Product Documentation]:
|
27
27
|
# Integrates Google Vision features, including image labeling, face, logo,
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# rubocop:disable LineLength
|
26
26
|
|
27
27
|
##
|
28
|
-
# # Ruby Client for Cloud Vision API
|
28
|
+
# # Ruby Client for Cloud Vision API
|
29
29
|
#
|
30
30
|
# [Cloud Vision API][Product Documentation]:
|
31
31
|
# Integrates Google Vision features, including image labeling, face, logo,
|
@@ -158,6 +158,9 @@ module Google
|
|
158
158
|
google_api_client.freeze
|
159
159
|
|
160
160
|
headers = { :"x-goog-api-client" => google_api_client }
|
161
|
+
if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
|
162
|
+
headers[:"x-goog-user-project"] = credentials.quota_project_id
|
163
|
+
end
|
161
164
|
headers.merge!(metadata) unless metadata.nil?
|
162
165
|
client_config_file = Pathname.new(__dir__).join(
|
163
166
|
"image_annotator_client_config.json"
|
@@ -266,6 +266,9 @@ module Google
|
|
266
266
|
google_api_client.freeze
|
267
267
|
|
268
268
|
headers = { :"x-goog-api-client" => google_api_client }
|
269
|
+
if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
|
270
|
+
headers[:"x-goog-user-project"] = credentials.quota_project_id
|
271
|
+
end
|
269
272
|
headers.merge!(metadata) unless metadata.nil?
|
270
273
|
client_config_file = Pathname.new(__dir__).join(
|
271
274
|
"product_search_client_config.json"
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# rubocop:disable LineLength
|
26
26
|
|
27
27
|
##
|
28
|
-
# # Ruby Client for Cloud Vision API
|
28
|
+
# # Ruby Client for Cloud Vision API
|
29
29
|
#
|
30
30
|
# [Cloud Vision API][Product Documentation]:
|
31
31
|
# Integrates Google Vision features, including image labeling, face, logo, and
|
@@ -158,6 +158,9 @@ module Google
|
|
158
158
|
google_api_client.freeze
|
159
159
|
|
160
160
|
headers = { :"x-goog-api-client" => google_api_client }
|
161
|
+
if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
|
162
|
+
headers[:"x-goog-user-project"] = credentials.quota_project_id
|
163
|
+
end
|
161
164
|
headers.merge!(metadata) unless metadata.nil?
|
162
165
|
client_config_file = Pathname.new(__dir__).join(
|
163
166
|
"image_annotator_client_config.json"
|
@@ -266,6 +266,9 @@ module Google
|
|
266
266
|
google_api_client.freeze
|
267
267
|
|
268
268
|
headers = { :"x-goog-api-client" => google_api_client }
|
269
|
+
if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
|
270
|
+
headers[:"x-goog-user-project"] = credentials.quota_project_id
|
271
|
+
end
|
269
272
|
headers.merge!(metadata) unless metadata.nil?
|
270
273
|
client_config_file = Pathname.new(__dir__).join(
|
271
274
|
"product_search_client_config.json"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-vision
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.38.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|