google-cloud-vision-v1p3beta1 0.1.5 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/vision/v1p3beta1/image_annotator/client.rb +16 -11
- data/lib/google/cloud/vision/v1p3beta1/image_annotator/operations.rb +14 -10
- data/lib/google/cloud/vision/v1p3beta1/product_search/client.rb +16 -11
- data/lib/google/cloud/vision/v1p3beta1/product_search/operations.rb +14 -10
- data/lib/google/cloud/vision/v1p3beta1/version.rb +1 -1
- metadata +32 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 47396fd5d4c76b7859a7d510e11e35fba685491c03e4bee3234960829697c5b9
|
|
4
|
+
data.tar.gz: ee8f0f8608d6581cc330f55c69a85d985d8d86c1e6555da68639facdbead6c31
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fae793707921d472b04e8f5eb25be80b88996ca08f1fac8df5b41a30479544fbef98fb50a5d470ef34e3fa71b4686e0f8040f9e60fc98357ad2445748e1bd45a
|
|
7
|
+
data.tar.gz: de85fc29ad8a25e6822212e870321858770176c56c88daa1a574e4822bad0f99e05125e71c47bfc13e979f5dc4078e7bb511bb12dd9c2eb2c8e06ab11d3cf707
|
|
@@ -148,7 +148,8 @@ module Google
|
|
|
148
148
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
149
149
|
credentials = Credentials.new credentials, scope: @config.scope
|
|
150
150
|
end
|
|
151
|
-
@quota_project_id =
|
|
151
|
+
@quota_project_id = @config.quota_project
|
|
152
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
|
152
153
|
|
|
153
154
|
@operations_client = Operations.new do |config|
|
|
154
155
|
config.credentials = credentials
|
|
@@ -375,24 +376,28 @@ module Google
|
|
|
375
376
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
376
377
|
# trigger a retry.
|
|
377
378
|
# @return [::Hash]
|
|
379
|
+
# @!attribute [rw] quota_project
|
|
380
|
+
# A separate project against which to charge quota.
|
|
381
|
+
# @return [::String]
|
|
378
382
|
#
|
|
379
383
|
class Configuration
|
|
380
384
|
extend ::Gapic::Config
|
|
381
385
|
|
|
382
|
-
config_attr :endpoint,
|
|
383
|
-
config_attr :credentials,
|
|
386
|
+
config_attr :endpoint, "vision.googleapis.com", ::String
|
|
387
|
+
config_attr :credentials, nil do |value|
|
|
384
388
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
385
389
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
386
390
|
allowed.any? { |klass| klass === value }
|
|
387
391
|
end
|
|
388
|
-
config_attr :scope,
|
|
389
|
-
config_attr :lib_name,
|
|
390
|
-
config_attr :lib_version,
|
|
391
|
-
config_attr(:channel_args,
|
|
392
|
-
config_attr :interceptors,
|
|
393
|
-
config_attr :timeout,
|
|
394
|
-
config_attr :metadata,
|
|
395
|
-
config_attr :retry_policy,
|
|
392
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
|
393
|
+
config_attr :lib_name, nil, ::String, nil
|
|
394
|
+
config_attr :lib_version, nil, ::String, nil
|
|
395
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
|
396
|
+
config_attr :interceptors, nil, ::Array, nil
|
|
397
|
+
config_attr :timeout, nil, ::Numeric, nil
|
|
398
|
+
config_attr :metadata, nil, ::Hash, nil
|
|
399
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
400
|
+
config_attr :quota_project, nil, ::String, nil
|
|
396
401
|
|
|
397
402
|
# @private
|
|
398
403
|
def initialize parent_config = nil
|
|
@@ -464,24 +464,28 @@ module Google
|
|
|
464
464
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
465
465
|
# trigger a retry.
|
|
466
466
|
# @return [::Hash]
|
|
467
|
+
# @!attribute [rw] quota_project
|
|
468
|
+
# A separate project against which to charge quota.
|
|
469
|
+
# @return [::String]
|
|
467
470
|
#
|
|
468
471
|
class Configuration
|
|
469
472
|
extend ::Gapic::Config
|
|
470
473
|
|
|
471
|
-
config_attr :endpoint,
|
|
472
|
-
config_attr :credentials,
|
|
474
|
+
config_attr :endpoint, "vision.googleapis.com", ::String
|
|
475
|
+
config_attr :credentials, nil do |value|
|
|
473
476
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
474
477
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
475
478
|
allowed.any? { |klass| klass === value }
|
|
476
479
|
end
|
|
477
|
-
config_attr :scope,
|
|
478
|
-
config_attr :lib_name,
|
|
479
|
-
config_attr :lib_version,
|
|
480
|
-
config_attr(:channel_args,
|
|
481
|
-
config_attr :interceptors,
|
|
482
|
-
config_attr :timeout,
|
|
483
|
-
config_attr :metadata,
|
|
484
|
-
config_attr :retry_policy,
|
|
480
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
|
481
|
+
config_attr :lib_name, nil, ::String, nil
|
|
482
|
+
config_attr :lib_version, nil, ::String, nil
|
|
483
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
|
484
|
+
config_attr :interceptors, nil, ::Array, nil
|
|
485
|
+
config_attr :timeout, nil, ::Numeric, nil
|
|
486
|
+
config_attr :metadata, nil, ::Hash, nil
|
|
487
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
488
|
+
config_attr :quota_project, nil, ::String, nil
|
|
485
489
|
|
|
486
490
|
# @private
|
|
487
491
|
def initialize parent_config = nil
|
|
@@ -287,7 +287,8 @@ module Google
|
|
|
287
287
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
288
288
|
credentials = Credentials.new credentials, scope: @config.scope
|
|
289
289
|
end
|
|
290
|
-
@quota_project_id =
|
|
290
|
+
@quota_project_id = @config.quota_project
|
|
291
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
|
291
292
|
|
|
292
293
|
@operations_client = Operations.new do |config|
|
|
293
294
|
config.credentials = credentials
|
|
@@ -1822,24 +1823,28 @@ module Google
|
|
|
1822
1823
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1823
1824
|
# trigger a retry.
|
|
1824
1825
|
# @return [::Hash]
|
|
1826
|
+
# @!attribute [rw] quota_project
|
|
1827
|
+
# A separate project against which to charge quota.
|
|
1828
|
+
# @return [::String]
|
|
1825
1829
|
#
|
|
1826
1830
|
class Configuration
|
|
1827
1831
|
extend ::Gapic::Config
|
|
1828
1832
|
|
|
1829
|
-
config_attr :endpoint,
|
|
1830
|
-
config_attr :credentials,
|
|
1833
|
+
config_attr :endpoint, "vision.googleapis.com", ::String
|
|
1834
|
+
config_attr :credentials, nil do |value|
|
|
1831
1835
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
1832
1836
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
1833
1837
|
allowed.any? { |klass| klass === value }
|
|
1834
1838
|
end
|
|
1835
|
-
config_attr :scope,
|
|
1836
|
-
config_attr :lib_name,
|
|
1837
|
-
config_attr :lib_version,
|
|
1838
|
-
config_attr(:channel_args,
|
|
1839
|
-
config_attr :interceptors,
|
|
1840
|
-
config_attr :timeout,
|
|
1841
|
-
config_attr :metadata,
|
|
1842
|
-
config_attr :retry_policy,
|
|
1839
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
|
1840
|
+
config_attr :lib_name, nil, ::String, nil
|
|
1841
|
+
config_attr :lib_version, nil, ::String, nil
|
|
1842
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
|
1843
|
+
config_attr :interceptors, nil, ::Array, nil
|
|
1844
|
+
config_attr :timeout, nil, ::Numeric, nil
|
|
1845
|
+
config_attr :metadata, nil, ::Hash, nil
|
|
1846
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
1847
|
+
config_attr :quota_project, nil, ::String, nil
|
|
1843
1848
|
|
|
1844
1849
|
# @private
|
|
1845
1850
|
def initialize parent_config = nil
|
|
@@ -464,24 +464,28 @@ module Google
|
|
|
464
464
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
465
465
|
# trigger a retry.
|
|
466
466
|
# @return [::Hash]
|
|
467
|
+
# @!attribute [rw] quota_project
|
|
468
|
+
# A separate project against which to charge quota.
|
|
469
|
+
# @return [::String]
|
|
467
470
|
#
|
|
468
471
|
class Configuration
|
|
469
472
|
extend ::Gapic::Config
|
|
470
473
|
|
|
471
|
-
config_attr :endpoint,
|
|
472
|
-
config_attr :credentials,
|
|
474
|
+
config_attr :endpoint, "vision.googleapis.com", ::String
|
|
475
|
+
config_attr :credentials, nil do |value|
|
|
473
476
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
474
477
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
475
478
|
allowed.any? { |klass| klass === value }
|
|
476
479
|
end
|
|
477
|
-
config_attr :scope,
|
|
478
|
-
config_attr :lib_name,
|
|
479
|
-
config_attr :lib_version,
|
|
480
|
-
config_attr(:channel_args,
|
|
481
|
-
config_attr :interceptors,
|
|
482
|
-
config_attr :timeout,
|
|
483
|
-
config_attr :metadata,
|
|
484
|
-
config_attr :retry_policy,
|
|
480
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
|
481
|
+
config_attr :lib_name, nil, ::String, nil
|
|
482
|
+
config_attr :lib_version, nil, ::String, nil
|
|
483
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
|
484
|
+
config_attr :interceptors, nil, ::Array, nil
|
|
485
|
+
config_attr :timeout, nil, ::Numeric, nil
|
|
486
|
+
config_attr :metadata, nil, ::Hash, nil
|
|
487
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
488
|
+
config_attr :quota_project, nil, ::String, nil
|
|
485
489
|
|
|
486
490
|
# @private
|
|
487
491
|
def initialize parent_config = nil
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-vision-v1p3beta1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.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-05-
|
|
11
|
+
date: 2020-05-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|
|
@@ -58,14 +58,42 @@ dependencies:
|
|
|
58
58
|
requirements:
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '5.
|
|
61
|
+
version: '5.14'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '5.
|
|
68
|
+
version: '5.14'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: minitest-focus
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - "~>"
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '1.1'
|
|
76
|
+
type: :development
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - "~>"
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '1.1'
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: minitest-rg
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - "~>"
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '5.2'
|
|
90
|
+
type: :development
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - "~>"
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '5.2'
|
|
69
97
|
- !ruby/object:Gem::Dependency
|
|
70
98
|
name: rake
|
|
71
99
|
requirement: !ruby/object:Gem::Requirement
|