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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 728cfbfcbadf75365d1b332bf5904cc58faf71835c4ea3c9745bf932be53a7da
4
- data.tar.gz: e7fe439d5543fe793a5dbf8097256a4449960bd8e2b678470e8ca9277617c787
3
+ metadata.gz: 92e13591a878b6c743e21c419bcaecea377c2f1e8a35840e73855eb8bf07d2f7
4
+ data.tar.gz: 8c97a2c534ff31d7e0ead0b8611607a049c5d52561f891df3831d4d13a489f15
5
5
  SHA512:
6
- metadata.gz: 864b7a968ce5a58c9df136919fc03cf27e9956165294e1d496ad68ee7fd087e1bb97bdea77158d7469d92ee30196b0986e96f633931afcbaa70ac4629422fdbe
7
- data.tar.gz: d1517a14e8164d2c329d7dfd38fad3edf5c0c979fc2a3148353528dbb4b655b9ab70292ad4b09b8e4b2a45b6244d81e418b44358afc42c5a7145bab2e134c380
6
+ metadata.gz: 19807c56d313a8312358cb1e8d4943a342bf3d9dfb4d2f6ed22dca543ddb26b8b8236521a5de98859653cb2e3bce636cb0dcff32c47db3bd27aaee8f600e9ebf
7
+ data.tar.gz: 298cc305b53305d15f69f7cfdb8f3ba35af8a157a547f2da07290c43b1b72132a4f6f882b58b9e6d7ce0a517ec27f4d60fb37c7c67c56125d48f00daef6009de
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Ruby Client for Cloud Vision API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
1
+ # Ruby Client for Cloud Vision API
2
2
 
3
3
  [Cloud Vision API][Product Documentation]:
4
4
  Integrates Google Vision features, including image labeling, face, logo,
@@ -21,7 +21,7 @@ module Google
21
21
  # rubocop:disable LineLength
22
22
 
23
23
  ##
24
- # # Ruby Client for Cloud Vision API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
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 ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
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 ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
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"
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Vision
19
- VERSION = "0.37.3".freeze
19
+ VERSION = "0.38.0".freeze
20
20
  end
21
21
  end
22
22
  end
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.37.3
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-02-05 00:00:00.000000000 Z
11
+ date: 2020-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax