google-cloud-automl-v1 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/automl/v1/automl/client.rb +16 -11
- data/lib/google/cloud/automl/v1/automl/operations.rb +14 -10
- data/lib/google/cloud/automl/v1/prediction_service/client.rb +16 -11
- data/lib/google/cloud/automl/v1/prediction_service/operations.rb +14 -10
- data/lib/google/cloud/automl/v1/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: 1dac08e3ab7f67db79ec5746c5b9a3d209b411d8aa38ec74000678d551dcb98c
|
4
|
+
data.tar.gz: b23fdb4b0af2783e5d35ec0cb2c778deaaac522f562d6fe8226a5c352bf1e701
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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,
|
1661
|
-
config_attr :credentials,
|
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,
|
1667
|
-
config_attr :lib_name,
|
1668
|
-
config_attr :lib_version,
|
1669
|
-
config_attr(:channel_args,
|
1670
|
-
config_attr :interceptors,
|
1671
|
-
config_attr :timeout,
|
1672
|
-
config_attr :metadata,
|
1673
|
-
config_attr :retry_policy,
|
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,
|
472
|
-
config_attr :credentials,
|
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,
|
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
|
@@ -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 =
|
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,
|
552
|
-
config_attr :credentials,
|
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,
|
558
|
-
config_attr :lib_name,
|
559
|
-
config_attr :lib_version,
|
560
|
-
config_attr(:channel_args,
|
561
|
-
config_attr :interceptors,
|
562
|
-
config_attr :timeout,
|
563
|
-
config_attr :metadata,
|
564
|
-
config_attr :retry_policy,
|
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,
|
472
|
-
config_attr :credentials,
|
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,
|
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-automl-v1
|
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
|