google-cloud-automl-v1 0.1.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e0406243769230c9e7b96dabcc4a3d057b25b86ace341552a5577ae20446566d
4
- data.tar.gz: acf6688b0a9c7937c293dbccaa5f9790ea83f8e1e93ddb0526758620e15162c7
3
+ metadata.gz: 1dac08e3ab7f67db79ec5746c5b9a3d209b411d8aa38ec74000678d551dcb98c
4
+ data.tar.gz: b23fdb4b0af2783e5d35ec0cb2c778deaaac522f562d6fe8226a5c352bf1e701
5
5
  SHA512:
6
- metadata.gz: 3b4d01119f7760c2007e6a9649d058098d351d4cfe62c0ac5b5e52f3a6f0392a6aed3986b6355314e1a8cef18013303169873f3274bcbc0c2b671d68efabe9ec
7
- data.tar.gz: 91cf508c511ad83782c3b7bf1d571126137e1eaaf88235933c2c80c8387b923f76c225d3412bfe024aa5d4a6bc04f4634dc627d485052bcf174425e6de360188
6
+ metadata.gz: eecc576dd621c660860b1446152fc2fabcf03bcf4d0a79e24dbc7e7d365865879f355ae9e9c3ad81172b5cd6b08d1236488e796ce2a98dcae9d73f742f879cf3
7
+ data.tar.gz: 5854a05fc6e2067c2ae1fd7cc31c7b8aad5c41045ab9e0b88443e792a6697bd7fce947ad1160023ea38044e8e2f2fdca9ac1858ab67c4e865cf2073e1a08204a
@@ -233,7 +233,8 @@ module Google
233
233
  if credentials.is_a?(String) || credentials.is_a?(Hash)
234
234
  credentials = Credentials.new credentials, scope: @config.scope
235
235
  end
236
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
236
+ @quota_project_id = @config.quota_project
237
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
237
238
 
238
239
  @operations_client = Operations.new do |config|
239
240
  config.credentials = credentials
@@ -1653,24 +1654,28 @@ module Google
1653
1654
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1654
1655
  # trigger a retry.
1655
1656
  # @return [::Hash]
1657
+ # @!attribute [rw] quota_project
1658
+ # A separate project against which to charge quota.
1659
+ # @return [::String]
1656
1660
  #
1657
1661
  class Configuration
1658
1662
  extend ::Gapic::Config
1659
1663
 
1660
- config_attr :endpoint, "automl.googleapis.com", String
1661
- config_attr :credentials, nil do |value|
1664
+ config_attr :endpoint, "automl.googleapis.com", ::String
1665
+ config_attr :credentials, nil do |value|
1662
1666
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1663
1667
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
1664
1668
  allowed.any? { |klass| klass === value }
1665
1669
  end
1666
- config_attr :scope, nil, ::String, ::Array, nil
1667
- config_attr :lib_name, nil, ::String, nil
1668
- config_attr :lib_version, nil, ::String, nil
1669
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
1670
- config_attr :interceptors, nil, ::Array, nil
1671
- config_attr :timeout, nil, ::Numeric, nil
1672
- config_attr :metadata, nil, ::Hash, nil
1673
- config_attr :retry_policy, nil, ::Hash, Proc, nil
1670
+ config_attr :scope, nil, ::String, ::Array, nil
1671
+ config_attr :lib_name, nil, ::String, nil
1672
+ config_attr :lib_version, nil, ::String, nil
1673
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
1674
+ config_attr :interceptors, nil, ::Array, nil
1675
+ config_attr :timeout, nil, ::Numeric, nil
1676
+ config_attr :metadata, nil, ::Hash, nil
1677
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1678
+ config_attr :quota_project, nil, ::String, nil
1674
1679
 
1675
1680
  # @private
1676
1681
  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, "automl.googleapis.com", String
472
- config_attr :credentials, nil do |value|
474
+ config_attr :endpoint, "automl.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
@@ -137,7 +137,8 @@ module Google
137
137
  if credentials.is_a?(String) || credentials.is_a?(Hash)
138
138
  credentials = Credentials.new credentials, scope: @config.scope
139
139
  end
140
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
140
+ @quota_project_id = @config.quota_project
141
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
141
142
 
142
143
  @operations_client = Operations.new do |config|
143
144
  config.credentials = credentials
@@ -544,24 +545,28 @@ module Google
544
545
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
545
546
  # trigger a retry.
546
547
  # @return [::Hash]
548
+ # @!attribute [rw] quota_project
549
+ # A separate project against which to charge quota.
550
+ # @return [::String]
547
551
  #
548
552
  class Configuration
549
553
  extend ::Gapic::Config
550
554
 
551
- config_attr :endpoint, "automl.googleapis.com", String
552
- config_attr :credentials, nil do |value|
555
+ config_attr :endpoint, "automl.googleapis.com", ::String
556
+ config_attr :credentials, nil do |value|
553
557
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
554
558
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
555
559
  allowed.any? { |klass| klass === value }
556
560
  end
557
- config_attr :scope, nil, ::String, ::Array, nil
558
- config_attr :lib_name, nil, ::String, nil
559
- config_attr :lib_version, nil, ::String, nil
560
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
561
- config_attr :interceptors, nil, ::Array, nil
562
- config_attr :timeout, nil, ::Numeric, nil
563
- config_attr :metadata, nil, ::Hash, nil
564
- config_attr :retry_policy, nil, ::Hash, Proc, nil
561
+ config_attr :scope, nil, ::String, ::Array, nil
562
+ config_attr :lib_name, nil, ::String, nil
563
+ config_attr :lib_version, nil, ::String, nil
564
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
565
+ config_attr :interceptors, nil, ::Array, nil
566
+ config_attr :timeout, nil, ::Numeric, nil
567
+ config_attr :metadata, nil, ::Hash, nil
568
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
569
+ config_attr :quota_project, nil, ::String, nil
565
570
 
566
571
  # @private
567
572
  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, "automl.googleapis.com", String
472
- config_attr :credentials, nil do |value|
474
+ config_attr :endpoint, "automl.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 Automl
23
23
  module V1
24
- VERSION = "0.1.1"
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-automl-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
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