google-cloud-vision-v1p3beta1 0.1.5 → 0.2.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: 563825b9d08929290391d73cd24ad8bab61f0546c3b723e4ff628004ca31052a
4
- data.tar.gz: 02e91fde9b936d89e235e2603c2d855cba67638484b2ea05fd6543baf9387584
3
+ metadata.gz: 47396fd5d4c76b7859a7d510e11e35fba685491c03e4bee3234960829697c5b9
4
+ data.tar.gz: ee8f0f8608d6581cc330f55c69a85d985d8d86c1e6555da68639facdbead6c31
5
5
  SHA512:
6
- metadata.gz: baee099bb4be37e6f8956c9a422bc2704c4dbaf826c4394e70447f4d3f264e8ddd9ea0b687b3c2d661a76f61a70a491f7c96b7b5f4c7277dee72494a35ecc983
7
- data.tar.gz: ea7548ea41c32603fbbcbdcb5fbf149c7cc9c5cc9e21101d5170c8bc97c4ee0648a6008ce1cf1081a6820ca4c6a1f3f51b11819b677b3bee174c6aa9923c17ca
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 = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
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, "vision.googleapis.com", String
383
- config_attr :credentials, nil do |value|
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, nil, ::String, ::Array, nil
389
- config_attr :lib_name, nil, ::String, nil
390
- config_attr :lib_version, nil, ::String, nil
391
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
392
- config_attr :interceptors, nil, ::Array, nil
393
- config_attr :timeout, nil, ::Numeric, nil
394
- config_attr :metadata, nil, ::Hash, nil
395
- config_attr :retry_policy, nil, ::Hash, Proc, nil
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, "vision.googleapis.com", String
472
- config_attr :credentials, nil do |value|
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, nil, ::String, ::Array, nil
478
- config_attr :lib_name, nil, ::String, nil
479
- config_attr :lib_version, nil, ::String, nil
480
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
481
- config_attr :interceptors, nil, ::Array, nil
482
- config_attr :timeout, nil, ::Numeric, nil
483
- config_attr :metadata, nil, ::Hash, nil
484
- config_attr :retry_policy, nil, ::Hash, Proc, nil
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 = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
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, "vision.googleapis.com", String
1830
- config_attr :credentials, nil do |value|
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, nil, ::String, ::Array, nil
1836
- config_attr :lib_name, nil, ::String, nil
1837
- config_attr :lib_version, nil, ::String, nil
1838
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
1839
- config_attr :interceptors, nil, ::Array, nil
1840
- config_attr :timeout, nil, ::Numeric, nil
1841
- config_attr :metadata, nil, ::Hash, nil
1842
- config_attr :retry_policy, nil, ::Hash, Proc, nil
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, "vision.googleapis.com", String
472
- config_attr :credentials, nil do |value|
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, nil, ::String, ::Array, nil
478
- config_attr :lib_name, nil, ::String, nil
479
- config_attr :lib_version, nil, ::String, nil
480
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
481
- config_attr :interceptors, nil, ::Array, nil
482
- config_attr :timeout, nil, ::Numeric, nil
483
- config_attr :metadata, nil, ::Hash, nil
484
- config_attr :retry_policy, nil, ::Hash, Proc, nil
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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Vision
23
23
  module V1p3beta1
24
- VERSION = "0.1.5"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
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.1.5
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-05 00:00:00.000000000 Z
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.10'
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.10'
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