google-cloud-automl-v1beta1 0.4.0 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/LICENSE.md +188 -190
- data/README.md +3 -3
- data/lib/google/cloud/automl/v1beta1/automl/client.rb +140 -135
- data/lib/google/cloud/automl/v1beta1/automl/operations.rb +39 -30
- data/lib/google/cloud/automl/v1beta1/prediction_service/client.rb +40 -43
- data/lib/google/cloud/automl/v1beta1/prediction_service/operations.rb +39 -30
- data/lib/google/cloud/automl/v1beta1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- metadata +16 -10
@@ -54,13 +54,12 @@ module Google
|
|
54
54
|
# See {::Google::Cloud::AutoML::V1beta1::AutoML::Client::Configuration}
|
55
55
|
# for a description of the configuration fields.
|
56
56
|
#
|
57
|
-
#
|
57
|
+
# @example
|
58
58
|
#
|
59
|
-
#
|
60
|
-
#
|
61
|
-
#
|
62
|
-
#
|
63
|
-
# end
|
59
|
+
# # Modify the configuration for all AutoMl clients
|
60
|
+
# ::Google::Cloud::AutoML::V1beta1::AutoML::Client.configure do |config|
|
61
|
+
# config.timeout = 10.0
|
62
|
+
# end
|
64
63
|
#
|
65
64
|
# @yield [config] Configure the Client client.
|
66
65
|
# @yieldparam config [Client::Configuration]
|
@@ -73,7 +72,7 @@ module Google
|
|
73
72
|
parent_config = while namespace.any?
|
74
73
|
parent_name = namespace.join "::"
|
75
74
|
parent_const = const_get parent_name
|
76
|
-
break parent_const.configure if parent_const
|
75
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
77
76
|
namespace.pop
|
78
77
|
end
|
79
78
|
default_config = Client::Configuration.new parent_config
|
@@ -82,28 +81,19 @@ module Google
|
|
82
81
|
|
83
82
|
default_config.rpcs.get_dataset.timeout = 5.0
|
84
83
|
default_config.rpcs.get_dataset.retry_policy = {
|
85
|
-
initial_delay: 0.1,
|
86
|
-
max_delay: 60.0,
|
87
|
-
multiplier: 1.3,
|
88
|
-
retry_codes: [14, 4]
|
84
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
89
85
|
}
|
90
86
|
|
91
87
|
default_config.rpcs.list_datasets.timeout = 5.0
|
92
88
|
default_config.rpcs.list_datasets.retry_policy = {
|
93
|
-
initial_delay: 0.1,
|
94
|
-
max_delay: 60.0,
|
95
|
-
multiplier: 1.3,
|
96
|
-
retry_codes: [14, 4]
|
89
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
97
90
|
}
|
98
91
|
|
99
92
|
default_config.rpcs.update_dataset.timeout = 5.0
|
100
93
|
|
101
94
|
default_config.rpcs.delete_dataset.timeout = 5.0
|
102
95
|
default_config.rpcs.delete_dataset.retry_policy = {
|
103
|
-
initial_delay: 0.1,
|
104
|
-
max_delay: 60.0,
|
105
|
-
multiplier: 1.3,
|
106
|
-
retry_codes: [14, 4]
|
96
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
107
97
|
}
|
108
98
|
|
109
99
|
default_config.rpcs.import_data.timeout = 5.0
|
@@ -112,44 +102,29 @@ module Google
|
|
112
102
|
|
113
103
|
default_config.rpcs.get_annotation_spec.timeout = 5.0
|
114
104
|
default_config.rpcs.get_annotation_spec.retry_policy = {
|
115
|
-
initial_delay: 0.1,
|
116
|
-
max_delay: 60.0,
|
117
|
-
multiplier: 1.3,
|
118
|
-
retry_codes: [14, 4]
|
105
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
119
106
|
}
|
120
107
|
|
121
108
|
default_config.rpcs.get_table_spec.timeout = 5.0
|
122
109
|
default_config.rpcs.get_table_spec.retry_policy = {
|
123
|
-
initial_delay: 0.1,
|
124
|
-
max_delay: 60.0,
|
125
|
-
multiplier: 1.3,
|
126
|
-
retry_codes: [14, 4]
|
110
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
127
111
|
}
|
128
112
|
|
129
113
|
default_config.rpcs.list_table_specs.timeout = 5.0
|
130
114
|
default_config.rpcs.list_table_specs.retry_policy = {
|
131
|
-
initial_delay: 0.1,
|
132
|
-
max_delay: 60.0,
|
133
|
-
multiplier: 1.3,
|
134
|
-
retry_codes: [14, 4]
|
115
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
135
116
|
}
|
136
117
|
|
137
118
|
default_config.rpcs.update_table_spec.timeout = 5.0
|
138
119
|
|
139
120
|
default_config.rpcs.get_column_spec.timeout = 5.0
|
140
121
|
default_config.rpcs.get_column_spec.retry_policy = {
|
141
|
-
initial_delay: 0.1,
|
142
|
-
max_delay: 60.0,
|
143
|
-
multiplier: 1.3,
|
144
|
-
retry_codes: [14, 4]
|
122
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
145
123
|
}
|
146
124
|
|
147
125
|
default_config.rpcs.list_column_specs.timeout = 5.0
|
148
126
|
default_config.rpcs.list_column_specs.retry_policy = {
|
149
|
-
initial_delay: 0.1,
|
150
|
-
max_delay: 60.0,
|
151
|
-
multiplier: 1.3,
|
152
|
-
retry_codes: [14, 4]
|
127
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
153
128
|
}
|
154
129
|
|
155
130
|
default_config.rpcs.update_column_spec.timeout = 5.0
|
@@ -158,26 +133,17 @@ module Google
|
|
158
133
|
|
159
134
|
default_config.rpcs.get_model.timeout = 5.0
|
160
135
|
default_config.rpcs.get_model.retry_policy = {
|
161
|
-
initial_delay: 0.1,
|
162
|
-
max_delay: 60.0,
|
163
|
-
multiplier: 1.3,
|
164
|
-
retry_codes: [14, 4]
|
136
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
165
137
|
}
|
166
138
|
|
167
139
|
default_config.rpcs.list_models.timeout = 5.0
|
168
140
|
default_config.rpcs.list_models.retry_policy = {
|
169
|
-
initial_delay: 0.1,
|
170
|
-
max_delay: 60.0,
|
171
|
-
multiplier: 1.3,
|
172
|
-
retry_codes: [14, 4]
|
141
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
173
142
|
}
|
174
143
|
|
175
144
|
default_config.rpcs.delete_model.timeout = 5.0
|
176
145
|
default_config.rpcs.delete_model.retry_policy = {
|
177
|
-
initial_delay: 0.1,
|
178
|
-
max_delay: 60.0,
|
179
|
-
multiplier: 1.3,
|
180
|
-
retry_codes: [14, 4]
|
146
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
181
147
|
}
|
182
148
|
|
183
149
|
default_config.rpcs.deploy_model.timeout = 5.0
|
@@ -190,10 +156,7 @@ module Google
|
|
190
156
|
|
191
157
|
default_config.rpcs.get_model_evaluation.timeout = 5.0
|
192
158
|
default_config.rpcs.get_model_evaluation.retry_policy = {
|
193
|
-
initial_delay: 0.1,
|
194
|
-
max_delay: 60.0,
|
195
|
-
multiplier: 1.3,
|
196
|
-
retry_codes: [14, 4]
|
159
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
197
160
|
}
|
198
161
|
|
199
162
|
default_config.rpcs.list_model_evaluations.timeout = 5.0
|
@@ -227,19 +190,15 @@ module Google
|
|
227
190
|
##
|
228
191
|
# Create a new AutoMl client object.
|
229
192
|
#
|
230
|
-
#
|
231
|
-
#
|
232
|
-
# To create a new AutoMl client with the default
|
233
|
-
# configuration:
|
193
|
+
# @example
|
234
194
|
#
|
235
|
-
#
|
195
|
+
# # Create a client using the default configuration
|
196
|
+
# client = ::Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
236
197
|
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
241
|
-
# config.timeout = 10.0
|
242
|
-
# end
|
198
|
+
# # Create a client using a custom configuration
|
199
|
+
# client = ::Google::Cloud::AutoML::V1beta1::AutoML::Client.new do |config|
|
200
|
+
# config.timeout = 10.0
|
201
|
+
# end
|
243
202
|
#
|
244
203
|
# @yield [config] Configure the AutoMl client.
|
245
204
|
# @yieldparam config [Client::Configuration]
|
@@ -259,14 +218,13 @@ module Google
|
|
259
218
|
|
260
219
|
# Create credentials
|
261
220
|
credentials = @config.credentials
|
262
|
-
# Use self-signed JWT if the
|
221
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
263
222
|
# but only if the default endpoint does not have a region prefix.
|
264
|
-
enable_self_signed_jwt = @config.
|
265
|
-
@config.endpoint == Client.configure.endpoint &&
|
223
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
266
224
|
!@config.endpoint.split(".").first.include?("-")
|
267
|
-
credentials ||= Credentials.default scope:
|
225
|
+
credentials ||= Credentials.default scope: @config.scope,
|
268
226
|
enable_self_signed_jwt: enable_self_signed_jwt
|
269
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
227
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
270
228
|
credentials = Credentials.new credentials, scope: @config.scope
|
271
229
|
end
|
272
230
|
@quota_project_id = @config.quota_project
|
@@ -352,7 +310,9 @@ module Google
|
|
352
310
|
options.apply_defaults timeout: @config.rpcs.create_dataset.timeout,
|
353
311
|
metadata: metadata,
|
354
312
|
retry_policy: @config.rpcs.create_dataset.retry_policy
|
355
|
-
|
313
|
+
|
314
|
+
options.apply_defaults timeout: @config.timeout,
|
315
|
+
metadata: @config.metadata,
|
356
316
|
retry_policy: @config.retry_policy
|
357
317
|
|
358
318
|
@auto_ml_stub.call_rpc :create_dataset, request, options: options do |response, operation|
|
@@ -418,7 +378,9 @@ module Google
|
|
418
378
|
options.apply_defaults timeout: @config.rpcs.get_dataset.timeout,
|
419
379
|
metadata: metadata,
|
420
380
|
retry_policy: @config.rpcs.get_dataset.retry_policy
|
421
|
-
|
381
|
+
|
382
|
+
options.apply_defaults timeout: @config.timeout,
|
383
|
+
metadata: @config.metadata,
|
422
384
|
retry_policy: @config.retry_policy
|
423
385
|
|
424
386
|
@auto_ml_stub.call_rpc :get_dataset, request, options: options do |response, operation|
|
@@ -500,7 +462,9 @@ module Google
|
|
500
462
|
options.apply_defaults timeout: @config.rpcs.list_datasets.timeout,
|
501
463
|
metadata: metadata,
|
502
464
|
retry_policy: @config.rpcs.list_datasets.retry_policy
|
503
|
-
|
465
|
+
|
466
|
+
options.apply_defaults timeout: @config.timeout,
|
467
|
+
metadata: @config.metadata,
|
504
468
|
retry_policy: @config.retry_policy
|
505
469
|
|
506
470
|
@auto_ml_stub.call_rpc :list_datasets, request, options: options do |response, operation|
|
@@ -569,7 +533,9 @@ module Google
|
|
569
533
|
options.apply_defaults timeout: @config.rpcs.update_dataset.timeout,
|
570
534
|
metadata: metadata,
|
571
535
|
retry_policy: @config.rpcs.update_dataset.retry_policy
|
572
|
-
|
536
|
+
|
537
|
+
options.apply_defaults timeout: @config.timeout,
|
538
|
+
metadata: @config.metadata,
|
573
539
|
retry_policy: @config.retry_policy
|
574
540
|
|
575
541
|
@auto_ml_stub.call_rpc :update_dataset, request, options: options do |response, operation|
|
@@ -639,7 +605,9 @@ module Google
|
|
639
605
|
options.apply_defaults timeout: @config.rpcs.delete_dataset.timeout,
|
640
606
|
metadata: metadata,
|
641
607
|
retry_policy: @config.rpcs.delete_dataset.retry_policy
|
642
|
-
|
608
|
+
|
609
|
+
options.apply_defaults timeout: @config.timeout,
|
610
|
+
metadata: @config.metadata,
|
643
611
|
retry_policy: @config.retry_policy
|
644
612
|
|
645
613
|
@auto_ml_stub.call_rpc :delete_dataset, request, options: options do |response, operation|
|
@@ -718,7 +686,9 @@ module Google
|
|
718
686
|
options.apply_defaults timeout: @config.rpcs.import_data.timeout,
|
719
687
|
metadata: metadata,
|
720
688
|
retry_policy: @config.rpcs.import_data.retry_policy
|
721
|
-
|
689
|
+
|
690
|
+
options.apply_defaults timeout: @config.timeout,
|
691
|
+
metadata: @config.metadata,
|
722
692
|
retry_policy: @config.retry_policy
|
723
693
|
|
724
694
|
@auto_ml_stub.call_rpc :import_data, request, options: options do |response, operation|
|
@@ -789,7 +759,9 @@ module Google
|
|
789
759
|
options.apply_defaults timeout: @config.rpcs.export_data.timeout,
|
790
760
|
metadata: metadata,
|
791
761
|
retry_policy: @config.rpcs.export_data.retry_policy
|
792
|
-
|
762
|
+
|
763
|
+
options.apply_defaults timeout: @config.timeout,
|
764
|
+
metadata: @config.metadata,
|
793
765
|
retry_policy: @config.retry_policy
|
794
766
|
|
795
767
|
@auto_ml_stub.call_rpc :export_data, request, options: options do |response, operation|
|
@@ -856,7 +828,9 @@ module Google
|
|
856
828
|
options.apply_defaults timeout: @config.rpcs.get_annotation_spec.timeout,
|
857
829
|
metadata: metadata,
|
858
830
|
retry_policy: @config.rpcs.get_annotation_spec.retry_policy
|
859
|
-
|
831
|
+
|
832
|
+
options.apply_defaults timeout: @config.timeout,
|
833
|
+
metadata: @config.metadata,
|
860
834
|
retry_policy: @config.retry_policy
|
861
835
|
|
862
836
|
@auto_ml_stub.call_rpc :get_annotation_spec, request, options: options do |response, operation|
|
@@ -924,7 +898,9 @@ module Google
|
|
924
898
|
options.apply_defaults timeout: @config.rpcs.get_table_spec.timeout,
|
925
899
|
metadata: metadata,
|
926
900
|
retry_policy: @config.rpcs.get_table_spec.retry_policy
|
927
|
-
|
901
|
+
|
902
|
+
options.apply_defaults timeout: @config.timeout,
|
903
|
+
metadata: @config.metadata,
|
928
904
|
retry_policy: @config.retry_policy
|
929
905
|
|
930
906
|
@auto_ml_stub.call_rpc :get_table_spec, request, options: options do |response, operation|
|
@@ -1002,7 +978,9 @@ module Google
|
|
1002
978
|
options.apply_defaults timeout: @config.rpcs.list_table_specs.timeout,
|
1003
979
|
metadata: metadata,
|
1004
980
|
retry_policy: @config.rpcs.list_table_specs.retry_policy
|
1005
|
-
|
981
|
+
|
982
|
+
options.apply_defaults timeout: @config.timeout,
|
983
|
+
metadata: @config.metadata,
|
1006
984
|
retry_policy: @config.retry_policy
|
1007
985
|
|
1008
986
|
@auto_ml_stub.call_rpc :list_table_specs, request, options: options do |response, operation|
|
@@ -1071,7 +1049,9 @@ module Google
|
|
1071
1049
|
options.apply_defaults timeout: @config.rpcs.update_table_spec.timeout,
|
1072
1050
|
metadata: metadata,
|
1073
1051
|
retry_policy: @config.rpcs.update_table_spec.retry_policy
|
1074
|
-
|
1052
|
+
|
1053
|
+
options.apply_defaults timeout: @config.timeout,
|
1054
|
+
metadata: @config.metadata,
|
1075
1055
|
retry_policy: @config.retry_policy
|
1076
1056
|
|
1077
1057
|
@auto_ml_stub.call_rpc :update_table_spec, request, options: options do |response, operation|
|
@@ -1139,7 +1119,9 @@ module Google
|
|
1139
1119
|
options.apply_defaults timeout: @config.rpcs.get_column_spec.timeout,
|
1140
1120
|
metadata: metadata,
|
1141
1121
|
retry_policy: @config.rpcs.get_column_spec.retry_policy
|
1142
|
-
|
1122
|
+
|
1123
|
+
options.apply_defaults timeout: @config.timeout,
|
1124
|
+
metadata: @config.metadata,
|
1143
1125
|
retry_policy: @config.retry_policy
|
1144
1126
|
|
1145
1127
|
@auto_ml_stub.call_rpc :get_column_spec, request, options: options do |response, operation|
|
@@ -1217,7 +1199,9 @@ module Google
|
|
1217
1199
|
options.apply_defaults timeout: @config.rpcs.list_column_specs.timeout,
|
1218
1200
|
metadata: metadata,
|
1219
1201
|
retry_policy: @config.rpcs.list_column_specs.retry_policy
|
1220
|
-
|
1202
|
+
|
1203
|
+
options.apply_defaults timeout: @config.timeout,
|
1204
|
+
metadata: @config.metadata,
|
1221
1205
|
retry_policy: @config.retry_policy
|
1222
1206
|
|
1223
1207
|
@auto_ml_stub.call_rpc :list_column_specs, request, options: options do |response, operation|
|
@@ -1286,7 +1270,9 @@ module Google
|
|
1286
1270
|
options.apply_defaults timeout: @config.rpcs.update_column_spec.timeout,
|
1287
1271
|
metadata: metadata,
|
1288
1272
|
retry_policy: @config.rpcs.update_column_spec.retry_policy
|
1289
|
-
|
1273
|
+
|
1274
|
+
options.apply_defaults timeout: @config.timeout,
|
1275
|
+
metadata: @config.metadata,
|
1290
1276
|
retry_policy: @config.retry_policy
|
1291
1277
|
|
1292
1278
|
@auto_ml_stub.call_rpc :update_column_spec, request, options: options do |response, operation|
|
@@ -1358,7 +1344,9 @@ module Google
|
|
1358
1344
|
options.apply_defaults timeout: @config.rpcs.create_model.timeout,
|
1359
1345
|
metadata: metadata,
|
1360
1346
|
retry_policy: @config.rpcs.create_model.retry_policy
|
1361
|
-
|
1347
|
+
|
1348
|
+
options.apply_defaults timeout: @config.timeout,
|
1349
|
+
metadata: @config.metadata,
|
1362
1350
|
retry_policy: @config.retry_policy
|
1363
1351
|
|
1364
1352
|
@auto_ml_stub.call_rpc :create_model, request, options: options do |response, operation|
|
@@ -1425,7 +1413,9 @@ module Google
|
|
1425
1413
|
options.apply_defaults timeout: @config.rpcs.get_model.timeout,
|
1426
1414
|
metadata: metadata,
|
1427
1415
|
retry_policy: @config.rpcs.get_model.retry_policy
|
1428
|
-
|
1416
|
+
|
1417
|
+
options.apply_defaults timeout: @config.timeout,
|
1418
|
+
metadata: @config.metadata,
|
1429
1419
|
retry_policy: @config.retry_policy
|
1430
1420
|
|
1431
1421
|
@auto_ml_stub.call_rpc :get_model, request, options: options do |response, operation|
|
@@ -1508,7 +1498,9 @@ module Google
|
|
1508
1498
|
options.apply_defaults timeout: @config.rpcs.list_models.timeout,
|
1509
1499
|
metadata: metadata,
|
1510
1500
|
retry_policy: @config.rpcs.list_models.retry_policy
|
1511
|
-
|
1501
|
+
|
1502
|
+
options.apply_defaults timeout: @config.timeout,
|
1503
|
+
metadata: @config.metadata,
|
1512
1504
|
retry_policy: @config.retry_policy
|
1513
1505
|
|
1514
1506
|
@auto_ml_stub.call_rpc :list_models, request, options: options do |response, operation|
|
@@ -1579,7 +1571,9 @@ module Google
|
|
1579
1571
|
options.apply_defaults timeout: @config.rpcs.delete_model.timeout,
|
1580
1572
|
metadata: metadata,
|
1581
1573
|
retry_policy: @config.rpcs.delete_model.retry_policy
|
1582
|
-
|
1574
|
+
|
1575
|
+
options.apply_defaults timeout: @config.timeout,
|
1576
|
+
metadata: @config.metadata,
|
1583
1577
|
retry_policy: @config.retry_policy
|
1584
1578
|
|
1585
1579
|
@auto_ml_stub.call_rpc :delete_model, request, options: options do |response, operation|
|
@@ -1661,7 +1655,9 @@ module Google
|
|
1661
1655
|
options.apply_defaults timeout: @config.rpcs.deploy_model.timeout,
|
1662
1656
|
metadata: metadata,
|
1663
1657
|
retry_policy: @config.rpcs.deploy_model.retry_policy
|
1664
|
-
|
1658
|
+
|
1659
|
+
options.apply_defaults timeout: @config.timeout,
|
1660
|
+
metadata: @config.metadata,
|
1665
1661
|
retry_policy: @config.retry_policy
|
1666
1662
|
|
1667
1663
|
@auto_ml_stub.call_rpc :deploy_model, request, options: options do |response, operation|
|
@@ -1734,7 +1730,9 @@ module Google
|
|
1734
1730
|
options.apply_defaults timeout: @config.rpcs.undeploy_model.timeout,
|
1735
1731
|
metadata: metadata,
|
1736
1732
|
retry_policy: @config.rpcs.undeploy_model.retry_policy
|
1737
|
-
|
1733
|
+
|
1734
|
+
options.apply_defaults timeout: @config.timeout,
|
1735
|
+
metadata: @config.metadata,
|
1738
1736
|
retry_policy: @config.retry_policy
|
1739
1737
|
|
1740
1738
|
@auto_ml_stub.call_rpc :undeploy_model, request, options: options do |response, operation|
|
@@ -1810,7 +1808,9 @@ module Google
|
|
1810
1808
|
options.apply_defaults timeout: @config.rpcs.export_model.timeout,
|
1811
1809
|
metadata: metadata,
|
1812
1810
|
retry_policy: @config.rpcs.export_model.retry_policy
|
1813
|
-
|
1811
|
+
|
1812
|
+
options.apply_defaults timeout: @config.timeout,
|
1813
|
+
metadata: @config.metadata,
|
1814
1814
|
retry_policy: @config.retry_policy
|
1815
1815
|
|
1816
1816
|
@auto_ml_stub.call_rpc :export_model, request, options: options do |response, operation|
|
@@ -1893,7 +1893,9 @@ module Google
|
|
1893
1893
|
options.apply_defaults timeout: @config.rpcs.export_evaluated_examples.timeout,
|
1894
1894
|
metadata: metadata,
|
1895
1895
|
retry_policy: @config.rpcs.export_evaluated_examples.retry_policy
|
1896
|
-
|
1896
|
+
|
1897
|
+
options.apply_defaults timeout: @config.timeout,
|
1898
|
+
metadata: @config.metadata,
|
1897
1899
|
retry_policy: @config.retry_policy
|
1898
1900
|
|
1899
1901
|
@auto_ml_stub.call_rpc :export_evaluated_examples, request, options: options do |response, operation|
|
@@ -1960,7 +1962,9 @@ module Google
|
|
1960
1962
|
options.apply_defaults timeout: @config.rpcs.get_model_evaluation.timeout,
|
1961
1963
|
metadata: metadata,
|
1962
1964
|
retry_policy: @config.rpcs.get_model_evaluation.retry_policy
|
1963
|
-
|
1965
|
+
|
1966
|
+
options.apply_defaults timeout: @config.timeout,
|
1967
|
+
metadata: @config.metadata,
|
1964
1968
|
retry_policy: @config.retry_policy
|
1965
1969
|
|
1966
1970
|
@auto_ml_stub.call_rpc :get_model_evaluation, request, options: options do |response, operation|
|
@@ -2047,7 +2051,9 @@ module Google
|
|
2047
2051
|
options.apply_defaults timeout: @config.rpcs.list_model_evaluations.timeout,
|
2048
2052
|
metadata: metadata,
|
2049
2053
|
retry_policy: @config.rpcs.list_model_evaluations.retry_policy
|
2050
|
-
|
2054
|
+
|
2055
|
+
options.apply_defaults timeout: @config.timeout,
|
2056
|
+
metadata: @config.metadata,
|
2051
2057
|
retry_policy: @config.retry_policy
|
2052
2058
|
|
2053
2059
|
@auto_ml_stub.call_rpc :list_model_evaluations, request, options: options do |response, operation|
|
@@ -2072,22 +2078,21 @@ module Google
|
|
2072
2078
|
# Configuration can be applied globally to all clients, or to a single client
|
2073
2079
|
# on construction.
|
2074
2080
|
#
|
2075
|
-
#
|
2076
|
-
#
|
2077
|
-
# To modify the global config, setting the timeout for create_dataset
|
2078
|
-
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
2079
|
-
#
|
2080
|
-
# ::Google::Cloud::AutoML::V1beta1::AutoML::Client.configure do |config|
|
2081
|
-
# config.timeout = 10.0
|
2082
|
-
# config.rpcs.create_dataset.timeout = 20.0
|
2083
|
-
# end
|
2081
|
+
# @example
|
2084
2082
|
#
|
2085
|
-
#
|
2083
|
+
# # Modify the global config, setting the timeout for
|
2084
|
+
# # create_dataset to 20 seconds,
|
2085
|
+
# # and all remaining timeouts to 10 seconds.
|
2086
|
+
# ::Google::Cloud::AutoML::V1beta1::AutoML::Client.configure do |config|
|
2087
|
+
# config.timeout = 10.0
|
2088
|
+
# config.rpcs.create_dataset.timeout = 20.0
|
2089
|
+
# end
|
2086
2090
|
#
|
2087
|
-
#
|
2088
|
-
#
|
2089
|
-
#
|
2090
|
-
#
|
2091
|
+
# # Apply the above configuration only to a new client.
|
2092
|
+
# client = ::Google::Cloud::AutoML::V1beta1::AutoML::Client.new do |config|
|
2093
|
+
# config.timeout = 10.0
|
2094
|
+
# config.rpcs.create_dataset.timeout = 20.0
|
2095
|
+
# end
|
2091
2096
|
#
|
2092
2097
|
# @!attribute [rw] endpoint
|
2093
2098
|
# The hostname or hostname:port of the service endpoint.
|
@@ -2151,7 +2156,7 @@ module Google
|
|
2151
2156
|
config_attr :scope, nil, ::String, ::Array, nil
|
2152
2157
|
config_attr :lib_name, nil, ::String, nil
|
2153
2158
|
config_attr :lib_version, nil, ::String, nil
|
2154
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
2159
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
2155
2160
|
config_attr :interceptors, nil, ::Array, nil
|
2156
2161
|
config_attr :timeout, nil, ::Numeric, nil
|
2157
2162
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -2172,7 +2177,7 @@ module Google
|
|
2172
2177
|
def rpcs
|
2173
2178
|
@rpcs ||= begin
|
2174
2179
|
parent_rpcs = nil
|
2175
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
2180
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
2176
2181
|
Rpcs.new parent_rpcs
|
2177
2182
|
end
|
2178
2183
|
end
|
@@ -2318,53 +2323,53 @@ module Google
|
|
2318
2323
|
|
2319
2324
|
# @private
|
2320
2325
|
def initialize parent_rpcs = nil
|
2321
|
-
create_dataset_config = parent_rpcs
|
2326
|
+
create_dataset_config = parent_rpcs.create_dataset if parent_rpcs.respond_to? :create_dataset
|
2322
2327
|
@create_dataset = ::Gapic::Config::Method.new create_dataset_config
|
2323
|
-
get_dataset_config = parent_rpcs
|
2328
|
+
get_dataset_config = parent_rpcs.get_dataset if parent_rpcs.respond_to? :get_dataset
|
2324
2329
|
@get_dataset = ::Gapic::Config::Method.new get_dataset_config
|
2325
|
-
list_datasets_config = parent_rpcs
|
2330
|
+
list_datasets_config = parent_rpcs.list_datasets if parent_rpcs.respond_to? :list_datasets
|
2326
2331
|
@list_datasets = ::Gapic::Config::Method.new list_datasets_config
|
2327
|
-
update_dataset_config = parent_rpcs
|
2332
|
+
update_dataset_config = parent_rpcs.update_dataset if parent_rpcs.respond_to? :update_dataset
|
2328
2333
|
@update_dataset = ::Gapic::Config::Method.new update_dataset_config
|
2329
|
-
delete_dataset_config = parent_rpcs
|
2334
|
+
delete_dataset_config = parent_rpcs.delete_dataset if parent_rpcs.respond_to? :delete_dataset
|
2330
2335
|
@delete_dataset = ::Gapic::Config::Method.new delete_dataset_config
|
2331
|
-
import_data_config = parent_rpcs
|
2336
|
+
import_data_config = parent_rpcs.import_data if parent_rpcs.respond_to? :import_data
|
2332
2337
|
@import_data = ::Gapic::Config::Method.new import_data_config
|
2333
|
-
export_data_config = parent_rpcs
|
2338
|
+
export_data_config = parent_rpcs.export_data if parent_rpcs.respond_to? :export_data
|
2334
2339
|
@export_data = ::Gapic::Config::Method.new export_data_config
|
2335
|
-
get_annotation_spec_config = parent_rpcs
|
2340
|
+
get_annotation_spec_config = parent_rpcs.get_annotation_spec if parent_rpcs.respond_to? :get_annotation_spec
|
2336
2341
|
@get_annotation_spec = ::Gapic::Config::Method.new get_annotation_spec_config
|
2337
|
-
get_table_spec_config = parent_rpcs
|
2342
|
+
get_table_spec_config = parent_rpcs.get_table_spec if parent_rpcs.respond_to? :get_table_spec
|
2338
2343
|
@get_table_spec = ::Gapic::Config::Method.new get_table_spec_config
|
2339
|
-
list_table_specs_config = parent_rpcs
|
2344
|
+
list_table_specs_config = parent_rpcs.list_table_specs if parent_rpcs.respond_to? :list_table_specs
|
2340
2345
|
@list_table_specs = ::Gapic::Config::Method.new list_table_specs_config
|
2341
|
-
update_table_spec_config = parent_rpcs
|
2346
|
+
update_table_spec_config = parent_rpcs.update_table_spec if parent_rpcs.respond_to? :update_table_spec
|
2342
2347
|
@update_table_spec = ::Gapic::Config::Method.new update_table_spec_config
|
2343
|
-
get_column_spec_config = parent_rpcs
|
2348
|
+
get_column_spec_config = parent_rpcs.get_column_spec if parent_rpcs.respond_to? :get_column_spec
|
2344
2349
|
@get_column_spec = ::Gapic::Config::Method.new get_column_spec_config
|
2345
|
-
list_column_specs_config = parent_rpcs
|
2350
|
+
list_column_specs_config = parent_rpcs.list_column_specs if parent_rpcs.respond_to? :list_column_specs
|
2346
2351
|
@list_column_specs = ::Gapic::Config::Method.new list_column_specs_config
|
2347
|
-
update_column_spec_config = parent_rpcs
|
2352
|
+
update_column_spec_config = parent_rpcs.update_column_spec if parent_rpcs.respond_to? :update_column_spec
|
2348
2353
|
@update_column_spec = ::Gapic::Config::Method.new update_column_spec_config
|
2349
|
-
create_model_config = parent_rpcs
|
2354
|
+
create_model_config = parent_rpcs.create_model if parent_rpcs.respond_to? :create_model
|
2350
2355
|
@create_model = ::Gapic::Config::Method.new create_model_config
|
2351
|
-
get_model_config = parent_rpcs
|
2356
|
+
get_model_config = parent_rpcs.get_model if parent_rpcs.respond_to? :get_model
|
2352
2357
|
@get_model = ::Gapic::Config::Method.new get_model_config
|
2353
|
-
list_models_config = parent_rpcs
|
2358
|
+
list_models_config = parent_rpcs.list_models if parent_rpcs.respond_to? :list_models
|
2354
2359
|
@list_models = ::Gapic::Config::Method.new list_models_config
|
2355
|
-
delete_model_config = parent_rpcs
|
2360
|
+
delete_model_config = parent_rpcs.delete_model if parent_rpcs.respond_to? :delete_model
|
2356
2361
|
@delete_model = ::Gapic::Config::Method.new delete_model_config
|
2357
|
-
deploy_model_config = parent_rpcs
|
2362
|
+
deploy_model_config = parent_rpcs.deploy_model if parent_rpcs.respond_to? :deploy_model
|
2358
2363
|
@deploy_model = ::Gapic::Config::Method.new deploy_model_config
|
2359
|
-
undeploy_model_config = parent_rpcs
|
2364
|
+
undeploy_model_config = parent_rpcs.undeploy_model if parent_rpcs.respond_to? :undeploy_model
|
2360
2365
|
@undeploy_model = ::Gapic::Config::Method.new undeploy_model_config
|
2361
|
-
export_model_config = parent_rpcs
|
2366
|
+
export_model_config = parent_rpcs.export_model if parent_rpcs.respond_to? :export_model
|
2362
2367
|
@export_model = ::Gapic::Config::Method.new export_model_config
|
2363
|
-
export_evaluated_examples_config = parent_rpcs
|
2368
|
+
export_evaluated_examples_config = parent_rpcs.export_evaluated_examples if parent_rpcs.respond_to? :export_evaluated_examples
|
2364
2369
|
@export_evaluated_examples = ::Gapic::Config::Method.new export_evaluated_examples_config
|
2365
|
-
get_model_evaluation_config = parent_rpcs
|
2370
|
+
get_model_evaluation_config = parent_rpcs.get_model_evaluation if parent_rpcs.respond_to? :get_model_evaluation
|
2366
2371
|
@get_model_evaluation = ::Gapic::Config::Method.new get_model_evaluation_config
|
2367
|
-
list_model_evaluations_config = parent_rpcs
|
2372
|
+
list_model_evaluations_config = parent_rpcs.list_model_evaluations if parent_rpcs.respond_to? :list_model_evaluations
|
2368
2373
|
@list_model_evaluations = ::Gapic::Config::Method.new list_model_evaluations_config
|
2369
2374
|
|
2370
2375
|
yield self if block_given?
|