google-cloud-automl-v1beta1 0.2.1 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/google/cloud/automl/v1beta1/automl/client.rb +14 -14
- data/lib/google/cloud/automl/v1beta1/automl/operations.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/prediction_service/client.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/prediction_service/operations.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/version.rb +1 -1
- data/proto_docs/google/cloud/automl/v1beta1/io.rb +7 -14
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aecd3e7ef7b56b005e5685f406b9a794444a862513ac10cb8731e52c9d612bd7
|
4
|
+
data.tar.gz: 8952ce8b1d461630e6b7d4a906868cfdb389bd8499240cd537f81a1988832cf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 956d5d8a2a1bb5b8590bd4184e9f233a071295d28648acdb4a426cd6b59a6376e98a0feff1d50b533d5e8b6337a57bf0d8d98a97713f239a2ded29106b1634d1
|
7
|
+
data.tar.gz: 2feb936ca45194862841ed48d3a8d9367efbc5057f1ebe5f96f49b32e74fdc8677b39d0a35a36a1bc0611e9681dedd45f706a842233022622b4ba3761f54bce9
|
data/README.md
CHANGED
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
|
|
18
18
|
|
19
19
|
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
20
20
|
1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
21
|
+
1. [Enable the API.](https://console.cloud.google.com/apis/library/automl.googleapis.com)
|
21
22
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
22
23
|
|
23
24
|
## Quick Start
|
@@ -33,6 +34,9 @@ response = client.predict request
|
|
33
34
|
View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-automl-v1beta1/latest)
|
34
35
|
for class and method documentation.
|
35
36
|
|
37
|
+
See also the [Product Documentation](https://cloud.google.com/automl)
|
38
|
+
for general usage information.
|
39
|
+
|
36
40
|
## Enabling Logging
|
37
41
|
|
38
42
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
@@ -85,7 +85,7 @@ module Google
|
|
85
85
|
initial_delay: 0.1,
|
86
86
|
max_delay: 60.0,
|
87
87
|
multiplier: 1.3,
|
88
|
-
retry_codes: [
|
88
|
+
retry_codes: [14, 4]
|
89
89
|
}
|
90
90
|
|
91
91
|
default_config.rpcs.list_datasets.timeout = 5.0
|
@@ -93,7 +93,7 @@ module Google
|
|
93
93
|
initial_delay: 0.1,
|
94
94
|
max_delay: 60.0,
|
95
95
|
multiplier: 1.3,
|
96
|
-
retry_codes: [
|
96
|
+
retry_codes: [14, 4]
|
97
97
|
}
|
98
98
|
|
99
99
|
default_config.rpcs.update_dataset.timeout = 5.0
|
@@ -103,7 +103,7 @@ module Google
|
|
103
103
|
initial_delay: 0.1,
|
104
104
|
max_delay: 60.0,
|
105
105
|
multiplier: 1.3,
|
106
|
-
retry_codes: [
|
106
|
+
retry_codes: [14, 4]
|
107
107
|
}
|
108
108
|
|
109
109
|
default_config.rpcs.import_data.timeout = 5.0
|
@@ -115,7 +115,7 @@ module Google
|
|
115
115
|
initial_delay: 0.1,
|
116
116
|
max_delay: 60.0,
|
117
117
|
multiplier: 1.3,
|
118
|
-
retry_codes: [
|
118
|
+
retry_codes: [14, 4]
|
119
119
|
}
|
120
120
|
|
121
121
|
default_config.rpcs.get_table_spec.timeout = 5.0
|
@@ -123,7 +123,7 @@ module Google
|
|
123
123
|
initial_delay: 0.1,
|
124
124
|
max_delay: 60.0,
|
125
125
|
multiplier: 1.3,
|
126
|
-
retry_codes: [
|
126
|
+
retry_codes: [14, 4]
|
127
127
|
}
|
128
128
|
|
129
129
|
default_config.rpcs.list_table_specs.timeout = 5.0
|
@@ -131,7 +131,7 @@ module Google
|
|
131
131
|
initial_delay: 0.1,
|
132
132
|
max_delay: 60.0,
|
133
133
|
multiplier: 1.3,
|
134
|
-
retry_codes: [
|
134
|
+
retry_codes: [14, 4]
|
135
135
|
}
|
136
136
|
|
137
137
|
default_config.rpcs.update_table_spec.timeout = 5.0
|
@@ -141,7 +141,7 @@ module Google
|
|
141
141
|
initial_delay: 0.1,
|
142
142
|
max_delay: 60.0,
|
143
143
|
multiplier: 1.3,
|
144
|
-
retry_codes: [
|
144
|
+
retry_codes: [14, 4]
|
145
145
|
}
|
146
146
|
|
147
147
|
default_config.rpcs.list_column_specs.timeout = 5.0
|
@@ -149,7 +149,7 @@ module Google
|
|
149
149
|
initial_delay: 0.1,
|
150
150
|
max_delay: 60.0,
|
151
151
|
multiplier: 1.3,
|
152
|
-
retry_codes: [
|
152
|
+
retry_codes: [14, 4]
|
153
153
|
}
|
154
154
|
|
155
155
|
default_config.rpcs.update_column_spec.timeout = 5.0
|
@@ -161,7 +161,7 @@ module Google
|
|
161
161
|
initial_delay: 0.1,
|
162
162
|
max_delay: 60.0,
|
163
163
|
multiplier: 1.3,
|
164
|
-
retry_codes: [
|
164
|
+
retry_codes: [14, 4]
|
165
165
|
}
|
166
166
|
|
167
167
|
default_config.rpcs.list_models.timeout = 5.0
|
@@ -169,7 +169,7 @@ module Google
|
|
169
169
|
initial_delay: 0.1,
|
170
170
|
max_delay: 60.0,
|
171
171
|
multiplier: 1.3,
|
172
|
-
retry_codes: [
|
172
|
+
retry_codes: [14, 4]
|
173
173
|
}
|
174
174
|
|
175
175
|
default_config.rpcs.delete_model.timeout = 5.0
|
@@ -177,7 +177,7 @@ module Google
|
|
177
177
|
initial_delay: 0.1,
|
178
178
|
max_delay: 60.0,
|
179
179
|
multiplier: 1.3,
|
180
|
-
retry_codes: [
|
180
|
+
retry_codes: [14, 4]
|
181
181
|
}
|
182
182
|
|
183
183
|
default_config.rpcs.deploy_model.timeout = 5.0
|
@@ -193,7 +193,7 @@ module Google
|
|
193
193
|
initial_delay: 0.1,
|
194
194
|
max_delay: 60.0,
|
195
195
|
multiplier: 1.3,
|
196
|
-
retry_codes: [
|
196
|
+
retry_codes: [14, 4]
|
197
197
|
}
|
198
198
|
|
199
199
|
default_config.rpcs.list_model_evaluations.timeout = 5.0
|
@@ -2138,7 +2138,7 @@ module Google
|
|
2138
2138
|
|
2139
2139
|
config_attr :endpoint, "automl.googleapis.com", ::String
|
2140
2140
|
config_attr :credentials, nil do |value|
|
2141
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2141
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2142
2142
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
2143
2143
|
allowed.any? { |klass| klass === value }
|
2144
2144
|
end
|
@@ -2166,7 +2166,7 @@ module Google
|
|
2166
2166
|
def rpcs
|
2167
2167
|
@rpcs ||= begin
|
2168
2168
|
parent_rpcs = nil
|
2169
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
2169
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
2170
2170
|
Rpcs.new parent_rpcs
|
2171
2171
|
end
|
2172
2172
|
end
|
@@ -475,7 +475,7 @@ module Google
|
|
475
475
|
|
476
476
|
config_attr :endpoint, "automl.googleapis.com", ::String
|
477
477
|
config_attr :credentials, nil do |value|
|
478
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
478
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
479
479
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
480
480
|
allowed.any? { |klass| klass === value }
|
481
481
|
end
|
@@ -503,7 +503,7 @@ module Google
|
|
503
503
|
def rpcs
|
504
504
|
@rpcs ||= begin
|
505
505
|
parent_rpcs = nil
|
506
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
506
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
507
507
|
Rpcs.new parent_rpcs
|
508
508
|
end
|
509
509
|
end
|
@@ -510,7 +510,7 @@ module Google
|
|
510
510
|
|
511
511
|
config_attr :endpoint, "automl.googleapis.com", ::String
|
512
512
|
config_attr :credentials, nil do |value|
|
513
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
513
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
514
514
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
515
515
|
allowed.any? { |klass| klass === value }
|
516
516
|
end
|
@@ -538,7 +538,7 @@ module Google
|
|
538
538
|
def rpcs
|
539
539
|
@rpcs ||= begin
|
540
540
|
parent_rpcs = nil
|
541
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
541
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
542
542
|
Rpcs.new parent_rpcs
|
543
543
|
end
|
544
544
|
end
|
@@ -475,7 +475,7 @@ module Google
|
|
475
475
|
|
476
476
|
config_attr :endpoint, "automl.googleapis.com", ::String
|
477
477
|
config_attr :credentials, nil do |value|
|
478
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
478
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
479
479
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
480
480
|
allowed.any? { |klass| klass === value }
|
481
481
|
end
|
@@ -503,7 +503,7 @@ module Google
|
|
503
503
|
def rpcs
|
504
504
|
@rpcs ||= begin
|
505
505
|
parent_rpcs = nil
|
506
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
506
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
507
507
|
Rpcs.new parent_rpcs
|
508
508
|
end
|
509
509
|
end
|
@@ -723,8 +723,7 @@ module Google
|
|
723
723
|
# that wraps the same "ID" : "<id_value>" but here followed by
|
724
724
|
# exactly one
|
725
725
|
#
|
726
|
-
# [`google.rpc.Status`](https
|
727
|
-
# //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
|
726
|
+
# [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
|
728
727
|
# containing only `code` and `message`fields.
|
729
728
|
#
|
730
729
|
# * For Image Object Detection:
|
@@ -745,8 +744,7 @@ module Google
|
|
745
744
|
# that wraps the same "ID" : "<id_value>" but here followed by
|
746
745
|
# exactly one
|
747
746
|
#
|
748
|
-
# [`google.rpc.Status`](https
|
749
|
-
# //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
|
747
|
+
# [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
|
750
748
|
# containing only `code` and `message`fields.
|
751
749
|
# * For Video Classification:
|
752
750
|
# In the created directory a video_classification.csv file, and a .JSON
|
@@ -820,8 +818,7 @@ module Google
|
|
820
818
|
# proto that wraps input text snippet or input text file followed by
|
821
819
|
# exactly one
|
822
820
|
#
|
823
|
-
# [`google.rpc.Status`](https
|
824
|
-
# //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
|
821
|
+
# [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
|
825
822
|
# containing only `code` and `message`.
|
826
823
|
#
|
827
824
|
# * For Text Sentiment:
|
@@ -844,8 +841,7 @@ module Google
|
|
844
841
|
# proto that wraps input text snippet or input text file followed by
|
845
842
|
# exactly one
|
846
843
|
#
|
847
|
-
# [`google.rpc.Status`](https
|
848
|
-
# //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
|
844
|
+
# [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
|
849
845
|
# containing only `code` and `message`.
|
850
846
|
#
|
851
847
|
# * For Text Extraction:
|
@@ -880,8 +876,7 @@ module Google
|
|
880
876
|
# or the document proto (in case of document) but here followed by
|
881
877
|
# exactly one
|
882
878
|
#
|
883
|
-
# [`google.rpc.Status`](https
|
884
|
-
# //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
|
879
|
+
# [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
|
885
880
|
# containing only `code` and `message`.
|
886
881
|
#
|
887
882
|
# * For Tables:
|
@@ -933,8 +928,7 @@ module Google
|
|
933
928
|
# will have analogous format as `tables_*.csv`, but always with a
|
934
929
|
# single target column having
|
935
930
|
#
|
936
|
-
# [`google.rpc.Status`](https
|
937
|
-
# //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
|
931
|
+
# [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
|
938
932
|
# represented as a JSON string, and containing only `code` and
|
939
933
|
# `message`.
|
940
934
|
# BigQuery case:
|
@@ -972,8 +966,7 @@ module Google
|
|
972
966
|
# {::Google::Cloud::AutoML::V1beta1::ColumnSpec#display_name display_name}>",
|
973
967
|
# and as a value has
|
974
968
|
#
|
975
|
-
# [`google.rpc.Status`](https
|
976
|
-
# //github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
|
969
|
+
# [`google.rpc.Status`](https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto)
|
977
970
|
# represented as a STRUCT, and containing only `code` and `message`.
|
978
971
|
# @!attribute [rw] gcs_destination
|
979
972
|
# @return [::Google::Cloud::AutoML::V1beta1::GcsDestination]
|
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.2.
|
4
|
+
version: 0.2.6
|
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-
|
11
|
+
date: 2020-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: google-cloud-errors
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -265,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
265
265
|
- !ruby/object:Gem::Version
|
266
266
|
version: '0'
|
267
267
|
requirements: []
|
268
|
-
rubygems_version: 3.
|
268
|
+
rubygems_version: 3.1.3
|
269
269
|
signing_key:
|
270
270
|
specification_version: 4
|
271
271
|
summary: API Client library for the Cloud AutoML V1beta1 API
|