google-cloud-automl-v1beta1 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: 55d49e0f6838ccaace3105cc81f82f3f48f5b5bde3ad713c875f91766a9b9d6b
4
- data.tar.gz: 5179ac40c4645166d7fe2a713b15cb518dd7bbd71bfd2400b7b1d4709717aeac
3
+ metadata.gz: 4d30d332e36bfce53c766595864cd4a87e2b4ee1a187af69fb8980a77fccdeea
4
+ data.tar.gz: f982628088daa20810be0b95903e2819b70453f5b204ba6d5e891c0cb5b0cd0e
5
5
  SHA512:
6
- metadata.gz: 0b0144b5717e26f6e9cb231fad8eecee95b466ad8bdf8521c1834c0af1da01217e5f3c5ec434dfcff692b9726b74b901dc2e39fc787b177956c927443d5fdfe8
7
- data.tar.gz: 8950c1698b65768e392d4b7649b3d0e43f64df64d36be0430c84d51194ed269f19d4f2ee33bd64bca4522e8c5457b1517f867e251bc91a8391b1106d152153b0
6
+ metadata.gz: f0b8d657448b3168e38ac3acd4264b36bb79b2f60d9f48d738e391b477ac16ea8da91df9804f9a4c8fe9f8c7f552698f7d9fb0bd59b6c35813c80aaf6fc4f7ee
7
+ data.tar.gz: 8cda70061ac8ed87332345091b21f15b4b678d11e5f2fca7f197590ef6ebf102108e77e3844a6f1a2c41e856560a238a34c2d411e2b469a8e383c0f908bddb46
@@ -263,7 +263,8 @@ module Google
263
263
  if credentials.is_a?(String) || credentials.is_a?(Hash)
264
264
  credentials = Credentials.new credentials, scope: @config.scope
265
265
  end
266
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
266
+ @quota_project_id = @config.quota_project
267
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
267
268
 
268
269
  @operations_client = Operations.new do |config|
269
270
  config.credentials = credentials
@@ -2128,24 +2129,28 @@ module Google
2128
2129
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
2129
2130
  # trigger a retry.
2130
2131
  # @return [::Hash]
2132
+ # @!attribute [rw] quota_project
2133
+ # A separate project against which to charge quota.
2134
+ # @return [::String]
2131
2135
  #
2132
2136
  class Configuration
2133
2137
  extend ::Gapic::Config
2134
2138
 
2135
- config_attr :endpoint, "automl.googleapis.com", String
2136
- config_attr :credentials, nil do |value|
2139
+ config_attr :endpoint, "automl.googleapis.com", ::String
2140
+ config_attr :credentials, nil do |value|
2137
2141
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2138
2142
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
2139
2143
  allowed.any? { |klass| klass === value }
2140
2144
  end
2141
- config_attr :scope, nil, ::String, ::Array, nil
2142
- config_attr :lib_name, nil, ::String, nil
2143
- config_attr :lib_version, nil, ::String, nil
2144
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
2145
- config_attr :interceptors, nil, ::Array, nil
2146
- config_attr :timeout, nil, ::Numeric, nil
2147
- config_attr :metadata, nil, ::Hash, nil
2148
- config_attr :retry_policy, nil, ::Hash, Proc, nil
2145
+ config_attr :scope, nil, ::String, ::Array, nil
2146
+ config_attr :lib_name, nil, ::String, nil
2147
+ config_attr :lib_version, nil, ::String, nil
2148
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
2149
+ config_attr :interceptors, nil, ::Array, nil
2150
+ config_attr :timeout, nil, ::Numeric, nil
2151
+ config_attr :metadata, nil, ::Hash, nil
2152
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
2153
+ config_attr :quota_project, nil, ::String, nil
2149
2154
 
2150
2155
  # @private
2151
2156
  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
@@ -500,24 +501,28 @@ module Google
500
501
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
501
502
  # trigger a retry.
502
503
  # @return [::Hash]
504
+ # @!attribute [rw] quota_project
505
+ # A separate project against which to charge quota.
506
+ # @return [::String]
503
507
  #
504
508
  class Configuration
505
509
  extend ::Gapic::Config
506
510
 
507
- config_attr :endpoint, "automl.googleapis.com", String
508
- config_attr :credentials, nil do |value|
511
+ config_attr :endpoint, "automl.googleapis.com", ::String
512
+ config_attr :credentials, nil do |value|
509
513
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
510
514
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
511
515
  allowed.any? { |klass| klass === value }
512
516
  end
513
- config_attr :scope, nil, ::String, ::Array, nil
514
- config_attr :lib_name, nil, ::String, nil
515
- config_attr :lib_version, nil, ::String, nil
516
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
517
- config_attr :interceptors, nil, ::Array, nil
518
- config_attr :timeout, nil, ::Numeric, nil
519
- config_attr :metadata, nil, ::Hash, nil
520
- config_attr :retry_policy, nil, ::Hash, Proc, nil
517
+ config_attr :scope, nil, ::String, ::Array, nil
518
+ config_attr :lib_name, nil, ::String, nil
519
+ config_attr :lib_version, nil, ::String, nil
520
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
521
+ config_attr :interceptors, nil, ::Array, nil
522
+ config_attr :timeout, nil, ::Numeric, nil
523
+ config_attr :metadata, nil, ::Hash, nil
524
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
525
+ config_attr :quota_project, nil, ::String, nil
521
526
 
522
527
  # @private
523
528
  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 V1beta1
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-v1beta1
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