google-cloud-automl-v1beta1 0.5.0 → 0.5.4
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/README.md +1 -1
- data/lib/google/cloud/automl/v1beta1/annotation_payload_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/annotation_spec_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/automl/client.rb +687 -181
- data/lib/google/cloud/automl/v1beta1/automl/operations.rb +149 -37
- data/lib/google/cloud/automl/v1beta1/classification_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/column_spec_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/data_items_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/data_stats_pb.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/data_types_pb.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/dataset_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/detection_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/geometry_pb.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/image_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/io_pb.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/model_evaluation_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/model_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/operations_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/prediction_service/client.rb +83 -45
- data/lib/google/cloud/automl/v1beta1/prediction_service/operations.rb +149 -37
- data/lib/google/cloud/automl/v1beta1/prediction_service_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/prediction_service_services_pb.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/ranges_pb.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/regression_pb.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/service_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/service_services_pb.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/table_spec_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/tables_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/temporal_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/text_extraction_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/text_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/text_segment_pb.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/text_sentiment_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/translation_pb.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/version.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/video_pb.rb +2 -2
- data/proto_docs/google/api/field_behavior.rb +7 -1
- metadata +13 -7
@@ -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]
|
@@ -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
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
|
@@ -326,6 +284,21 @@ module Google
|
|
326
284
|
#
|
327
285
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
328
286
|
#
|
287
|
+
# @example Basic example
|
288
|
+
# require "google/cloud/automl/v1beta1"
|
289
|
+
#
|
290
|
+
# # Create a client object. The client can be reused for multiple calls.
|
291
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
292
|
+
#
|
293
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
294
|
+
# request = Google::Cloud::AutoML::V1beta1::CreateDatasetRequest.new
|
295
|
+
#
|
296
|
+
# # Call the create_dataset method.
|
297
|
+
# result = client.create_dataset request
|
298
|
+
#
|
299
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::Dataset.
|
300
|
+
# p result
|
301
|
+
#
|
329
302
|
def create_dataset request, options = nil
|
330
303
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
331
304
|
|
@@ -343,16 +316,20 @@ module Google
|
|
343
316
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
344
317
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
345
318
|
|
346
|
-
header_params = {
|
347
|
-
|
348
|
-
|
319
|
+
header_params = {}
|
320
|
+
if request.parent
|
321
|
+
header_params["parent"] = request.parent
|
322
|
+
end
|
323
|
+
|
349
324
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
350
325
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
351
326
|
|
352
327
|
options.apply_defaults timeout: @config.rpcs.create_dataset.timeout,
|
353
328
|
metadata: metadata,
|
354
329
|
retry_policy: @config.rpcs.create_dataset.retry_policy
|
355
|
-
|
330
|
+
|
331
|
+
options.apply_defaults timeout: @config.timeout,
|
332
|
+
metadata: @config.metadata,
|
356
333
|
retry_policy: @config.retry_policy
|
357
334
|
|
358
335
|
@auto_ml_stub.call_rpc :create_dataset, request, options: options do |response, operation|
|
@@ -392,6 +369,21 @@ module Google
|
|
392
369
|
#
|
393
370
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
394
371
|
#
|
372
|
+
# @example Basic example
|
373
|
+
# require "google/cloud/automl/v1beta1"
|
374
|
+
#
|
375
|
+
# # Create a client object. The client can be reused for multiple calls.
|
376
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
377
|
+
#
|
378
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
379
|
+
# request = Google::Cloud::AutoML::V1beta1::GetDatasetRequest.new
|
380
|
+
#
|
381
|
+
# # Call the get_dataset method.
|
382
|
+
# result = client.get_dataset request
|
383
|
+
#
|
384
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::Dataset.
|
385
|
+
# p result
|
386
|
+
#
|
395
387
|
def get_dataset request, options = nil
|
396
388
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
397
389
|
|
@@ -409,16 +401,20 @@ module Google
|
|
409
401
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
410
402
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
411
403
|
|
412
|
-
header_params = {
|
413
|
-
|
414
|
-
|
404
|
+
header_params = {}
|
405
|
+
if request.name
|
406
|
+
header_params["name"] = request.name
|
407
|
+
end
|
408
|
+
|
415
409
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
416
410
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
417
411
|
|
418
412
|
options.apply_defaults timeout: @config.rpcs.get_dataset.timeout,
|
419
413
|
metadata: metadata,
|
420
414
|
retry_policy: @config.rpcs.get_dataset.retry_policy
|
421
|
-
|
415
|
+
|
416
|
+
options.apply_defaults timeout: @config.timeout,
|
417
|
+
metadata: @config.metadata,
|
422
418
|
retry_policy: @config.retry_policy
|
423
419
|
|
424
420
|
@auto_ml_stub.call_rpc :get_dataset, request, options: options do |response, operation|
|
@@ -474,6 +470,27 @@ module Google
|
|
474
470
|
#
|
475
471
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
476
472
|
#
|
473
|
+
# @example Basic example
|
474
|
+
# require "google/cloud/automl/v1beta1"
|
475
|
+
#
|
476
|
+
# # Create a client object. The client can be reused for multiple calls.
|
477
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
478
|
+
#
|
479
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
480
|
+
# request = Google::Cloud::AutoML::V1beta1::ListDatasetsRequest.new
|
481
|
+
#
|
482
|
+
# # Call the list_datasets method.
|
483
|
+
# result = client.list_datasets request
|
484
|
+
#
|
485
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
486
|
+
# # iterate over all elements by calling #each, and the enumerable
|
487
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
488
|
+
# # methods are also available for managing paging directly.
|
489
|
+
# result.each do |response|
|
490
|
+
# # Each element is of type ::Google::Cloud::AutoML::V1beta1::Dataset.
|
491
|
+
# p response
|
492
|
+
# end
|
493
|
+
#
|
477
494
|
def list_datasets request, options = nil
|
478
495
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
479
496
|
|
@@ -491,16 +508,20 @@ module Google
|
|
491
508
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
492
509
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
493
510
|
|
494
|
-
header_params = {
|
495
|
-
|
496
|
-
|
511
|
+
header_params = {}
|
512
|
+
if request.parent
|
513
|
+
header_params["parent"] = request.parent
|
514
|
+
end
|
515
|
+
|
497
516
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
498
517
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
499
518
|
|
500
519
|
options.apply_defaults timeout: @config.rpcs.list_datasets.timeout,
|
501
520
|
metadata: metadata,
|
502
521
|
retry_policy: @config.rpcs.list_datasets.retry_policy
|
503
|
-
|
522
|
+
|
523
|
+
options.apply_defaults timeout: @config.timeout,
|
524
|
+
metadata: @config.metadata,
|
504
525
|
retry_policy: @config.retry_policy
|
505
526
|
|
506
527
|
@auto_ml_stub.call_rpc :list_datasets, request, options: options do |response, operation|
|
@@ -543,6 +564,21 @@ module Google
|
|
543
564
|
#
|
544
565
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
545
566
|
#
|
567
|
+
# @example Basic example
|
568
|
+
# require "google/cloud/automl/v1beta1"
|
569
|
+
#
|
570
|
+
# # Create a client object. The client can be reused for multiple calls.
|
571
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
572
|
+
#
|
573
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
574
|
+
# request = Google::Cloud::AutoML::V1beta1::UpdateDatasetRequest.new
|
575
|
+
#
|
576
|
+
# # Call the update_dataset method.
|
577
|
+
# result = client.update_dataset request
|
578
|
+
#
|
579
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::Dataset.
|
580
|
+
# p result
|
581
|
+
#
|
546
582
|
def update_dataset request, options = nil
|
547
583
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
548
584
|
|
@@ -560,16 +596,20 @@ module Google
|
|
560
596
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
561
597
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
562
598
|
|
563
|
-
header_params = {
|
564
|
-
|
565
|
-
|
599
|
+
header_params = {}
|
600
|
+
if request.dataset&.name
|
601
|
+
header_params["dataset.name"] = request.dataset.name
|
602
|
+
end
|
603
|
+
|
566
604
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
567
605
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
568
606
|
|
569
607
|
options.apply_defaults timeout: @config.rpcs.update_dataset.timeout,
|
570
608
|
metadata: metadata,
|
571
609
|
retry_policy: @config.rpcs.update_dataset.retry_policy
|
572
|
-
|
610
|
+
|
611
|
+
options.apply_defaults timeout: @config.timeout,
|
612
|
+
metadata: @config.metadata,
|
573
613
|
retry_policy: @config.retry_policy
|
574
614
|
|
575
615
|
@auto_ml_stub.call_rpc :update_dataset, request, options: options do |response, operation|
|
@@ -613,6 +653,28 @@ module Google
|
|
613
653
|
#
|
614
654
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
615
655
|
#
|
656
|
+
# @example Basic example
|
657
|
+
# require "google/cloud/automl/v1beta1"
|
658
|
+
#
|
659
|
+
# # Create a client object. The client can be reused for multiple calls.
|
660
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
661
|
+
#
|
662
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
663
|
+
# request = Google::Cloud::AutoML::V1beta1::DeleteDatasetRequest.new
|
664
|
+
#
|
665
|
+
# # Call the delete_dataset method.
|
666
|
+
# result = client.delete_dataset request
|
667
|
+
#
|
668
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
669
|
+
# # object to check the status of an operation, cancel it, or wait
|
670
|
+
# # for results. Here is how to block until completion:
|
671
|
+
# result.wait_until_done! timeout: 60
|
672
|
+
# if result.response?
|
673
|
+
# p result.response
|
674
|
+
# else
|
675
|
+
# puts "Error!"
|
676
|
+
# end
|
677
|
+
#
|
616
678
|
def delete_dataset request, options = nil
|
617
679
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
618
680
|
|
@@ -630,16 +692,20 @@ module Google
|
|
630
692
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
631
693
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
632
694
|
|
633
|
-
header_params = {
|
634
|
-
|
635
|
-
|
695
|
+
header_params = {}
|
696
|
+
if request.name
|
697
|
+
header_params["name"] = request.name
|
698
|
+
end
|
699
|
+
|
636
700
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
637
701
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
638
702
|
|
639
703
|
options.apply_defaults timeout: @config.rpcs.delete_dataset.timeout,
|
640
704
|
metadata: metadata,
|
641
705
|
retry_policy: @config.rpcs.delete_dataset.retry_policy
|
642
|
-
|
706
|
+
|
707
|
+
options.apply_defaults timeout: @config.timeout,
|
708
|
+
metadata: @config.metadata,
|
643
709
|
retry_policy: @config.retry_policy
|
644
710
|
|
645
711
|
@auto_ml_stub.call_rpc :delete_dataset, request, options: options do |response, operation|
|
@@ -692,6 +758,28 @@ module Google
|
|
692
758
|
#
|
693
759
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
694
760
|
#
|
761
|
+
# @example Basic example
|
762
|
+
# require "google/cloud/automl/v1beta1"
|
763
|
+
#
|
764
|
+
# # Create a client object. The client can be reused for multiple calls.
|
765
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
766
|
+
#
|
767
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
768
|
+
# request = Google::Cloud::AutoML::V1beta1::ImportDataRequest.new
|
769
|
+
#
|
770
|
+
# # Call the import_data method.
|
771
|
+
# result = client.import_data request
|
772
|
+
#
|
773
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
774
|
+
# # object to check the status of an operation, cancel it, or wait
|
775
|
+
# # for results. Here is how to block until completion:
|
776
|
+
# result.wait_until_done! timeout: 60
|
777
|
+
# if result.response?
|
778
|
+
# p result.response
|
779
|
+
# else
|
780
|
+
# puts "Error!"
|
781
|
+
# end
|
782
|
+
#
|
695
783
|
def import_data request, options = nil
|
696
784
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
697
785
|
|
@@ -709,16 +797,20 @@ module Google
|
|
709
797
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
710
798
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
711
799
|
|
712
|
-
header_params = {
|
713
|
-
|
714
|
-
|
800
|
+
header_params = {}
|
801
|
+
if request.name
|
802
|
+
header_params["name"] = request.name
|
803
|
+
end
|
804
|
+
|
715
805
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
716
806
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
717
807
|
|
718
808
|
options.apply_defaults timeout: @config.rpcs.import_data.timeout,
|
719
809
|
metadata: metadata,
|
720
810
|
retry_policy: @config.rpcs.import_data.retry_policy
|
721
|
-
|
811
|
+
|
812
|
+
options.apply_defaults timeout: @config.timeout,
|
813
|
+
metadata: @config.metadata,
|
722
814
|
retry_policy: @config.retry_policy
|
723
815
|
|
724
816
|
@auto_ml_stub.call_rpc :import_data, request, options: options do |response, operation|
|
@@ -763,6 +855,28 @@ module Google
|
|
763
855
|
#
|
764
856
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
765
857
|
#
|
858
|
+
# @example Basic example
|
859
|
+
# require "google/cloud/automl/v1beta1"
|
860
|
+
#
|
861
|
+
# # Create a client object. The client can be reused for multiple calls.
|
862
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
863
|
+
#
|
864
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
865
|
+
# request = Google::Cloud::AutoML::V1beta1::ExportDataRequest.new
|
866
|
+
#
|
867
|
+
# # Call the export_data method.
|
868
|
+
# result = client.export_data request
|
869
|
+
#
|
870
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
871
|
+
# # object to check the status of an operation, cancel it, or wait
|
872
|
+
# # for results. Here is how to block until completion:
|
873
|
+
# result.wait_until_done! timeout: 60
|
874
|
+
# if result.response?
|
875
|
+
# p result.response
|
876
|
+
# else
|
877
|
+
# puts "Error!"
|
878
|
+
# end
|
879
|
+
#
|
766
880
|
def export_data request, options = nil
|
767
881
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
768
882
|
|
@@ -780,16 +894,20 @@ module Google
|
|
780
894
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
781
895
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
782
896
|
|
783
|
-
header_params = {
|
784
|
-
|
785
|
-
|
897
|
+
header_params = {}
|
898
|
+
if request.name
|
899
|
+
header_params["name"] = request.name
|
900
|
+
end
|
901
|
+
|
786
902
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
787
903
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
788
904
|
|
789
905
|
options.apply_defaults timeout: @config.rpcs.export_data.timeout,
|
790
906
|
metadata: metadata,
|
791
907
|
retry_policy: @config.rpcs.export_data.retry_policy
|
792
|
-
|
908
|
+
|
909
|
+
options.apply_defaults timeout: @config.timeout,
|
910
|
+
metadata: @config.metadata,
|
793
911
|
retry_policy: @config.retry_policy
|
794
912
|
|
795
913
|
@auto_ml_stub.call_rpc :export_data, request, options: options do |response, operation|
|
@@ -830,6 +948,21 @@ module Google
|
|
830
948
|
#
|
831
949
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
832
950
|
#
|
951
|
+
# @example Basic example
|
952
|
+
# require "google/cloud/automl/v1beta1"
|
953
|
+
#
|
954
|
+
# # Create a client object. The client can be reused for multiple calls.
|
955
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
956
|
+
#
|
957
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
958
|
+
# request = Google::Cloud::AutoML::V1beta1::GetAnnotationSpecRequest.new
|
959
|
+
#
|
960
|
+
# # Call the get_annotation_spec method.
|
961
|
+
# result = client.get_annotation_spec request
|
962
|
+
#
|
963
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::AnnotationSpec.
|
964
|
+
# p result
|
965
|
+
#
|
833
966
|
def get_annotation_spec request, options = nil
|
834
967
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
835
968
|
|
@@ -847,16 +980,20 @@ module Google
|
|
847
980
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
848
981
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
849
982
|
|
850
|
-
header_params = {
|
851
|
-
|
852
|
-
|
983
|
+
header_params = {}
|
984
|
+
if request.name
|
985
|
+
header_params["name"] = request.name
|
986
|
+
end
|
987
|
+
|
853
988
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
854
989
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
855
990
|
|
856
991
|
options.apply_defaults timeout: @config.rpcs.get_annotation_spec.timeout,
|
857
992
|
metadata: metadata,
|
858
993
|
retry_policy: @config.rpcs.get_annotation_spec.retry_policy
|
859
|
-
|
994
|
+
|
995
|
+
options.apply_defaults timeout: @config.timeout,
|
996
|
+
metadata: @config.metadata,
|
860
997
|
retry_policy: @config.retry_policy
|
861
998
|
|
862
999
|
@auto_ml_stub.call_rpc :get_annotation_spec, request, options: options do |response, operation|
|
@@ -898,6 +1035,21 @@ module Google
|
|
898
1035
|
#
|
899
1036
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
900
1037
|
#
|
1038
|
+
# @example Basic example
|
1039
|
+
# require "google/cloud/automl/v1beta1"
|
1040
|
+
#
|
1041
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1042
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
1043
|
+
#
|
1044
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1045
|
+
# request = Google::Cloud::AutoML::V1beta1::GetTableSpecRequest.new
|
1046
|
+
#
|
1047
|
+
# # Call the get_table_spec method.
|
1048
|
+
# result = client.get_table_spec request
|
1049
|
+
#
|
1050
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::TableSpec.
|
1051
|
+
# p result
|
1052
|
+
#
|
901
1053
|
def get_table_spec request, options = nil
|
902
1054
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
903
1055
|
|
@@ -915,16 +1067,20 @@ module Google
|
|
915
1067
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
916
1068
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
917
1069
|
|
918
|
-
header_params = {
|
919
|
-
|
920
|
-
|
1070
|
+
header_params = {}
|
1071
|
+
if request.name
|
1072
|
+
header_params["name"] = request.name
|
1073
|
+
end
|
1074
|
+
|
921
1075
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
922
1076
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
923
1077
|
|
924
1078
|
options.apply_defaults timeout: @config.rpcs.get_table_spec.timeout,
|
925
1079
|
metadata: metadata,
|
926
1080
|
retry_policy: @config.rpcs.get_table_spec.retry_policy
|
927
|
-
|
1081
|
+
|
1082
|
+
options.apply_defaults timeout: @config.timeout,
|
1083
|
+
metadata: @config.metadata,
|
928
1084
|
retry_policy: @config.retry_policy
|
929
1085
|
|
930
1086
|
@auto_ml_stub.call_rpc :get_table_spec, request, options: options do |response, operation|
|
@@ -976,6 +1132,27 @@ module Google
|
|
976
1132
|
#
|
977
1133
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
978
1134
|
#
|
1135
|
+
# @example Basic example
|
1136
|
+
# require "google/cloud/automl/v1beta1"
|
1137
|
+
#
|
1138
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1139
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
1140
|
+
#
|
1141
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1142
|
+
# request = Google::Cloud::AutoML::V1beta1::ListTableSpecsRequest.new
|
1143
|
+
#
|
1144
|
+
# # Call the list_table_specs method.
|
1145
|
+
# result = client.list_table_specs request
|
1146
|
+
#
|
1147
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1148
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1149
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1150
|
+
# # methods are also available for managing paging directly.
|
1151
|
+
# result.each do |response|
|
1152
|
+
# # Each element is of type ::Google::Cloud::AutoML::V1beta1::TableSpec.
|
1153
|
+
# p response
|
1154
|
+
# end
|
1155
|
+
#
|
979
1156
|
def list_table_specs request, options = nil
|
980
1157
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
981
1158
|
|
@@ -993,16 +1170,20 @@ module Google
|
|
993
1170
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
994
1171
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
995
1172
|
|
996
|
-
header_params = {
|
997
|
-
|
998
|
-
|
1173
|
+
header_params = {}
|
1174
|
+
if request.parent
|
1175
|
+
header_params["parent"] = request.parent
|
1176
|
+
end
|
1177
|
+
|
999
1178
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1000
1179
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1001
1180
|
|
1002
1181
|
options.apply_defaults timeout: @config.rpcs.list_table_specs.timeout,
|
1003
1182
|
metadata: metadata,
|
1004
1183
|
retry_policy: @config.rpcs.list_table_specs.retry_policy
|
1005
|
-
|
1184
|
+
|
1185
|
+
options.apply_defaults timeout: @config.timeout,
|
1186
|
+
metadata: @config.metadata,
|
1006
1187
|
retry_policy: @config.retry_policy
|
1007
1188
|
|
1008
1189
|
@auto_ml_stub.call_rpc :list_table_specs, request, options: options do |response, operation|
|
@@ -1045,6 +1226,21 @@ module Google
|
|
1045
1226
|
#
|
1046
1227
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1047
1228
|
#
|
1229
|
+
# @example Basic example
|
1230
|
+
# require "google/cloud/automl/v1beta1"
|
1231
|
+
#
|
1232
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1233
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
1234
|
+
#
|
1235
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1236
|
+
# request = Google::Cloud::AutoML::V1beta1::UpdateTableSpecRequest.new
|
1237
|
+
#
|
1238
|
+
# # Call the update_table_spec method.
|
1239
|
+
# result = client.update_table_spec request
|
1240
|
+
#
|
1241
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::TableSpec.
|
1242
|
+
# p result
|
1243
|
+
#
|
1048
1244
|
def update_table_spec request, options = nil
|
1049
1245
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1050
1246
|
|
@@ -1062,16 +1258,20 @@ module Google
|
|
1062
1258
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1063
1259
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1064
1260
|
|
1065
|
-
header_params = {
|
1066
|
-
|
1067
|
-
|
1261
|
+
header_params = {}
|
1262
|
+
if request.table_spec&.name
|
1263
|
+
header_params["table_spec.name"] = request.table_spec.name
|
1264
|
+
end
|
1265
|
+
|
1068
1266
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1069
1267
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1070
1268
|
|
1071
1269
|
options.apply_defaults timeout: @config.rpcs.update_table_spec.timeout,
|
1072
1270
|
metadata: metadata,
|
1073
1271
|
retry_policy: @config.rpcs.update_table_spec.retry_policy
|
1074
|
-
|
1272
|
+
|
1273
|
+
options.apply_defaults timeout: @config.timeout,
|
1274
|
+
metadata: @config.metadata,
|
1075
1275
|
retry_policy: @config.retry_policy
|
1076
1276
|
|
1077
1277
|
@auto_ml_stub.call_rpc :update_table_spec, request, options: options do |response, operation|
|
@@ -1113,6 +1313,21 @@ module Google
|
|
1113
1313
|
#
|
1114
1314
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1115
1315
|
#
|
1316
|
+
# @example Basic example
|
1317
|
+
# require "google/cloud/automl/v1beta1"
|
1318
|
+
#
|
1319
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1320
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
1321
|
+
#
|
1322
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1323
|
+
# request = Google::Cloud::AutoML::V1beta1::GetColumnSpecRequest.new
|
1324
|
+
#
|
1325
|
+
# # Call the get_column_spec method.
|
1326
|
+
# result = client.get_column_spec request
|
1327
|
+
#
|
1328
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::ColumnSpec.
|
1329
|
+
# p result
|
1330
|
+
#
|
1116
1331
|
def get_column_spec request, options = nil
|
1117
1332
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1118
1333
|
|
@@ -1130,16 +1345,20 @@ module Google
|
|
1130
1345
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1131
1346
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1132
1347
|
|
1133
|
-
header_params = {
|
1134
|
-
|
1135
|
-
|
1348
|
+
header_params = {}
|
1349
|
+
if request.name
|
1350
|
+
header_params["name"] = request.name
|
1351
|
+
end
|
1352
|
+
|
1136
1353
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1137
1354
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1138
1355
|
|
1139
1356
|
options.apply_defaults timeout: @config.rpcs.get_column_spec.timeout,
|
1140
1357
|
metadata: metadata,
|
1141
1358
|
retry_policy: @config.rpcs.get_column_spec.retry_policy
|
1142
|
-
|
1359
|
+
|
1360
|
+
options.apply_defaults timeout: @config.timeout,
|
1361
|
+
metadata: @config.metadata,
|
1143
1362
|
retry_policy: @config.retry_policy
|
1144
1363
|
|
1145
1364
|
@auto_ml_stub.call_rpc :get_column_spec, request, options: options do |response, operation|
|
@@ -1191,6 +1410,27 @@ module Google
|
|
1191
1410
|
#
|
1192
1411
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1193
1412
|
#
|
1413
|
+
# @example Basic example
|
1414
|
+
# require "google/cloud/automl/v1beta1"
|
1415
|
+
#
|
1416
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1417
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
1418
|
+
#
|
1419
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1420
|
+
# request = Google::Cloud::AutoML::V1beta1::ListColumnSpecsRequest.new
|
1421
|
+
#
|
1422
|
+
# # Call the list_column_specs method.
|
1423
|
+
# result = client.list_column_specs request
|
1424
|
+
#
|
1425
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1426
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1427
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1428
|
+
# # methods are also available for managing paging directly.
|
1429
|
+
# result.each do |response|
|
1430
|
+
# # Each element is of type ::Google::Cloud::AutoML::V1beta1::ColumnSpec.
|
1431
|
+
# p response
|
1432
|
+
# end
|
1433
|
+
#
|
1194
1434
|
def list_column_specs request, options = nil
|
1195
1435
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1196
1436
|
|
@@ -1208,16 +1448,20 @@ module Google
|
|
1208
1448
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1209
1449
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1210
1450
|
|
1211
|
-
header_params = {
|
1212
|
-
|
1213
|
-
|
1451
|
+
header_params = {}
|
1452
|
+
if request.parent
|
1453
|
+
header_params["parent"] = request.parent
|
1454
|
+
end
|
1455
|
+
|
1214
1456
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1215
1457
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1216
1458
|
|
1217
1459
|
options.apply_defaults timeout: @config.rpcs.list_column_specs.timeout,
|
1218
1460
|
metadata: metadata,
|
1219
1461
|
retry_policy: @config.rpcs.list_column_specs.retry_policy
|
1220
|
-
|
1462
|
+
|
1463
|
+
options.apply_defaults timeout: @config.timeout,
|
1464
|
+
metadata: @config.metadata,
|
1221
1465
|
retry_policy: @config.retry_policy
|
1222
1466
|
|
1223
1467
|
@auto_ml_stub.call_rpc :list_column_specs, request, options: options do |response, operation|
|
@@ -1260,6 +1504,21 @@ module Google
|
|
1260
1504
|
#
|
1261
1505
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1262
1506
|
#
|
1507
|
+
# @example Basic example
|
1508
|
+
# require "google/cloud/automl/v1beta1"
|
1509
|
+
#
|
1510
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1511
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
1512
|
+
#
|
1513
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1514
|
+
# request = Google::Cloud::AutoML::V1beta1::UpdateColumnSpecRequest.new
|
1515
|
+
#
|
1516
|
+
# # Call the update_column_spec method.
|
1517
|
+
# result = client.update_column_spec request
|
1518
|
+
#
|
1519
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::ColumnSpec.
|
1520
|
+
# p result
|
1521
|
+
#
|
1263
1522
|
def update_column_spec request, options = nil
|
1264
1523
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1265
1524
|
|
@@ -1277,16 +1536,20 @@ module Google
|
|
1277
1536
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1278
1537
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1279
1538
|
|
1280
|
-
header_params = {
|
1281
|
-
|
1282
|
-
|
1539
|
+
header_params = {}
|
1540
|
+
if request.column_spec&.name
|
1541
|
+
header_params["column_spec.name"] = request.column_spec.name
|
1542
|
+
end
|
1543
|
+
|
1283
1544
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1284
1545
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1285
1546
|
|
1286
1547
|
options.apply_defaults timeout: @config.rpcs.update_column_spec.timeout,
|
1287
1548
|
metadata: metadata,
|
1288
1549
|
retry_policy: @config.rpcs.update_column_spec.retry_policy
|
1289
|
-
|
1550
|
+
|
1551
|
+
options.apply_defaults timeout: @config.timeout,
|
1552
|
+
metadata: @config.metadata,
|
1290
1553
|
retry_policy: @config.retry_policy
|
1291
1554
|
|
1292
1555
|
@auto_ml_stub.call_rpc :update_column_spec, request, options: options do |response, operation|
|
@@ -1332,6 +1595,28 @@ module Google
|
|
1332
1595
|
#
|
1333
1596
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1334
1597
|
#
|
1598
|
+
# @example Basic example
|
1599
|
+
# require "google/cloud/automl/v1beta1"
|
1600
|
+
#
|
1601
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1602
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
1603
|
+
#
|
1604
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1605
|
+
# request = Google::Cloud::AutoML::V1beta1::CreateModelRequest.new
|
1606
|
+
#
|
1607
|
+
# # Call the create_model method.
|
1608
|
+
# result = client.create_model request
|
1609
|
+
#
|
1610
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1611
|
+
# # object to check the status of an operation, cancel it, or wait
|
1612
|
+
# # for results. Here is how to block until completion:
|
1613
|
+
# result.wait_until_done! timeout: 60
|
1614
|
+
# if result.response?
|
1615
|
+
# p result.response
|
1616
|
+
# else
|
1617
|
+
# puts "Error!"
|
1618
|
+
# end
|
1619
|
+
#
|
1335
1620
|
def create_model request, options = nil
|
1336
1621
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1337
1622
|
|
@@ -1349,16 +1634,20 @@ module Google
|
|
1349
1634
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1350
1635
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1351
1636
|
|
1352
|
-
header_params = {
|
1353
|
-
|
1354
|
-
|
1637
|
+
header_params = {}
|
1638
|
+
if request.parent
|
1639
|
+
header_params["parent"] = request.parent
|
1640
|
+
end
|
1641
|
+
|
1355
1642
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1356
1643
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1357
1644
|
|
1358
1645
|
options.apply_defaults timeout: @config.rpcs.create_model.timeout,
|
1359
1646
|
metadata: metadata,
|
1360
1647
|
retry_policy: @config.rpcs.create_model.retry_policy
|
1361
|
-
|
1648
|
+
|
1649
|
+
options.apply_defaults timeout: @config.timeout,
|
1650
|
+
metadata: @config.metadata,
|
1362
1651
|
retry_policy: @config.retry_policy
|
1363
1652
|
|
1364
1653
|
@auto_ml_stub.call_rpc :create_model, request, options: options do |response, operation|
|
@@ -1399,6 +1688,21 @@ module Google
|
|
1399
1688
|
#
|
1400
1689
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1401
1690
|
#
|
1691
|
+
# @example Basic example
|
1692
|
+
# require "google/cloud/automl/v1beta1"
|
1693
|
+
#
|
1694
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1695
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
1696
|
+
#
|
1697
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1698
|
+
# request = Google::Cloud::AutoML::V1beta1::GetModelRequest.new
|
1699
|
+
#
|
1700
|
+
# # Call the get_model method.
|
1701
|
+
# result = client.get_model request
|
1702
|
+
#
|
1703
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::Model.
|
1704
|
+
# p result
|
1705
|
+
#
|
1402
1706
|
def get_model request, options = nil
|
1403
1707
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1404
1708
|
|
@@ -1416,16 +1720,20 @@ module Google
|
|
1416
1720
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1417
1721
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1418
1722
|
|
1419
|
-
header_params = {
|
1420
|
-
|
1421
|
-
|
1723
|
+
header_params = {}
|
1724
|
+
if request.name
|
1725
|
+
header_params["name"] = request.name
|
1726
|
+
end
|
1727
|
+
|
1422
1728
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1423
1729
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1424
1730
|
|
1425
1731
|
options.apply_defaults timeout: @config.rpcs.get_model.timeout,
|
1426
1732
|
metadata: metadata,
|
1427
1733
|
retry_policy: @config.rpcs.get_model.retry_policy
|
1428
|
-
|
1734
|
+
|
1735
|
+
options.apply_defaults timeout: @config.timeout,
|
1736
|
+
metadata: @config.metadata,
|
1429
1737
|
retry_policy: @config.retry_policy
|
1430
1738
|
|
1431
1739
|
@auto_ml_stub.call_rpc :get_model, request, options: options do |response, operation|
|
@@ -1482,6 +1790,27 @@ module Google
|
|
1482
1790
|
#
|
1483
1791
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1484
1792
|
#
|
1793
|
+
# @example Basic example
|
1794
|
+
# require "google/cloud/automl/v1beta1"
|
1795
|
+
#
|
1796
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1797
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
1798
|
+
#
|
1799
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1800
|
+
# request = Google::Cloud::AutoML::V1beta1::ListModelsRequest.new
|
1801
|
+
#
|
1802
|
+
# # Call the list_models method.
|
1803
|
+
# result = client.list_models request
|
1804
|
+
#
|
1805
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1806
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1807
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1808
|
+
# # methods are also available for managing paging directly.
|
1809
|
+
# result.each do |response|
|
1810
|
+
# # Each element is of type ::Google::Cloud::AutoML::V1beta1::Model.
|
1811
|
+
# p response
|
1812
|
+
# end
|
1813
|
+
#
|
1485
1814
|
def list_models request, options = nil
|
1486
1815
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1487
1816
|
|
@@ -1499,16 +1828,20 @@ module Google
|
|
1499
1828
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1500
1829
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1501
1830
|
|
1502
|
-
header_params = {
|
1503
|
-
|
1504
|
-
|
1831
|
+
header_params = {}
|
1832
|
+
if request.parent
|
1833
|
+
header_params["parent"] = request.parent
|
1834
|
+
end
|
1835
|
+
|
1505
1836
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1506
1837
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1507
1838
|
|
1508
1839
|
options.apply_defaults timeout: @config.rpcs.list_models.timeout,
|
1509
1840
|
metadata: metadata,
|
1510
1841
|
retry_policy: @config.rpcs.list_models.retry_policy
|
1511
|
-
|
1842
|
+
|
1843
|
+
options.apply_defaults timeout: @config.timeout,
|
1844
|
+
metadata: @config.metadata,
|
1512
1845
|
retry_policy: @config.retry_policy
|
1513
1846
|
|
1514
1847
|
@auto_ml_stub.call_rpc :list_models, request, options: options do |response, operation|
|
@@ -1553,6 +1886,28 @@ module Google
|
|
1553
1886
|
#
|
1554
1887
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1555
1888
|
#
|
1889
|
+
# @example Basic example
|
1890
|
+
# require "google/cloud/automl/v1beta1"
|
1891
|
+
#
|
1892
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1893
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
1894
|
+
#
|
1895
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1896
|
+
# request = Google::Cloud::AutoML::V1beta1::DeleteModelRequest.new
|
1897
|
+
#
|
1898
|
+
# # Call the delete_model method.
|
1899
|
+
# result = client.delete_model request
|
1900
|
+
#
|
1901
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1902
|
+
# # object to check the status of an operation, cancel it, or wait
|
1903
|
+
# # for results. Here is how to block until completion:
|
1904
|
+
# result.wait_until_done! timeout: 60
|
1905
|
+
# if result.response?
|
1906
|
+
# p result.response
|
1907
|
+
# else
|
1908
|
+
# puts "Error!"
|
1909
|
+
# end
|
1910
|
+
#
|
1556
1911
|
def delete_model request, options = nil
|
1557
1912
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1558
1913
|
|
@@ -1570,16 +1925,20 @@ module Google
|
|
1570
1925
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1571
1926
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1572
1927
|
|
1573
|
-
header_params = {
|
1574
|
-
|
1575
|
-
|
1928
|
+
header_params = {}
|
1929
|
+
if request.name
|
1930
|
+
header_params["name"] = request.name
|
1931
|
+
end
|
1932
|
+
|
1576
1933
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1577
1934
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1578
1935
|
|
1579
1936
|
options.apply_defaults timeout: @config.rpcs.delete_model.timeout,
|
1580
1937
|
metadata: metadata,
|
1581
1938
|
retry_policy: @config.rpcs.delete_model.retry_policy
|
1582
|
-
|
1939
|
+
|
1940
|
+
options.apply_defaults timeout: @config.timeout,
|
1941
|
+
metadata: @config.metadata,
|
1583
1942
|
retry_policy: @config.retry_policy
|
1584
1943
|
|
1585
1944
|
@auto_ml_stub.call_rpc :delete_model, request, options: options do |response, operation|
|
@@ -1635,6 +1994,28 @@ module Google
|
|
1635
1994
|
#
|
1636
1995
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1637
1996
|
#
|
1997
|
+
# @example Basic example
|
1998
|
+
# require "google/cloud/automl/v1beta1"
|
1999
|
+
#
|
2000
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2001
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
2002
|
+
#
|
2003
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2004
|
+
# request = Google::Cloud::AutoML::V1beta1::DeployModelRequest.new
|
2005
|
+
#
|
2006
|
+
# # Call the deploy_model method.
|
2007
|
+
# result = client.deploy_model request
|
2008
|
+
#
|
2009
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
2010
|
+
# # object to check the status of an operation, cancel it, or wait
|
2011
|
+
# # for results. Here is how to block until completion:
|
2012
|
+
# result.wait_until_done! timeout: 60
|
2013
|
+
# if result.response?
|
2014
|
+
# p result.response
|
2015
|
+
# else
|
2016
|
+
# puts "Error!"
|
2017
|
+
# end
|
2018
|
+
#
|
1638
2019
|
def deploy_model request, options = nil
|
1639
2020
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1640
2021
|
|
@@ -1652,16 +2033,20 @@ module Google
|
|
1652
2033
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1653
2034
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1654
2035
|
|
1655
|
-
header_params = {
|
1656
|
-
|
1657
|
-
|
2036
|
+
header_params = {}
|
2037
|
+
if request.name
|
2038
|
+
header_params["name"] = request.name
|
2039
|
+
end
|
2040
|
+
|
1658
2041
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1659
2042
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1660
2043
|
|
1661
2044
|
options.apply_defaults timeout: @config.rpcs.deploy_model.timeout,
|
1662
2045
|
metadata: metadata,
|
1663
2046
|
retry_policy: @config.rpcs.deploy_model.retry_policy
|
1664
|
-
|
2047
|
+
|
2048
|
+
options.apply_defaults timeout: @config.timeout,
|
2049
|
+
metadata: @config.metadata,
|
1665
2050
|
retry_policy: @config.retry_policy
|
1666
2051
|
|
1667
2052
|
@auto_ml_stub.call_rpc :deploy_model, request, options: options do |response, operation|
|
@@ -1708,6 +2093,28 @@ module Google
|
|
1708
2093
|
#
|
1709
2094
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1710
2095
|
#
|
2096
|
+
# @example Basic example
|
2097
|
+
# require "google/cloud/automl/v1beta1"
|
2098
|
+
#
|
2099
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2100
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
2101
|
+
#
|
2102
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2103
|
+
# request = Google::Cloud::AutoML::V1beta1::UndeployModelRequest.new
|
2104
|
+
#
|
2105
|
+
# # Call the undeploy_model method.
|
2106
|
+
# result = client.undeploy_model request
|
2107
|
+
#
|
2108
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
2109
|
+
# # object to check the status of an operation, cancel it, or wait
|
2110
|
+
# # for results. Here is how to block until completion:
|
2111
|
+
# result.wait_until_done! timeout: 60
|
2112
|
+
# if result.response?
|
2113
|
+
# p result.response
|
2114
|
+
# else
|
2115
|
+
# puts "Error!"
|
2116
|
+
# end
|
2117
|
+
#
|
1711
2118
|
def undeploy_model request, options = nil
|
1712
2119
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1713
2120
|
|
@@ -1725,16 +2132,20 @@ module Google
|
|
1725
2132
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1726
2133
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1727
2134
|
|
1728
|
-
header_params = {
|
1729
|
-
|
1730
|
-
|
2135
|
+
header_params = {}
|
2136
|
+
if request.name
|
2137
|
+
header_params["name"] = request.name
|
2138
|
+
end
|
2139
|
+
|
1731
2140
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1732
2141
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1733
2142
|
|
1734
2143
|
options.apply_defaults timeout: @config.rpcs.undeploy_model.timeout,
|
1735
2144
|
metadata: metadata,
|
1736
2145
|
retry_policy: @config.rpcs.undeploy_model.retry_policy
|
1737
|
-
|
2146
|
+
|
2147
|
+
options.apply_defaults timeout: @config.timeout,
|
2148
|
+
metadata: @config.metadata,
|
1738
2149
|
retry_policy: @config.retry_policy
|
1739
2150
|
|
1740
2151
|
@auto_ml_stub.call_rpc :undeploy_model, request, options: options do |response, operation|
|
@@ -1784,6 +2195,28 @@ module Google
|
|
1784
2195
|
#
|
1785
2196
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1786
2197
|
#
|
2198
|
+
# @example Basic example
|
2199
|
+
# require "google/cloud/automl/v1beta1"
|
2200
|
+
#
|
2201
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2202
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
2203
|
+
#
|
2204
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2205
|
+
# request = Google::Cloud::AutoML::V1beta1::ExportModelRequest.new
|
2206
|
+
#
|
2207
|
+
# # Call the export_model method.
|
2208
|
+
# result = client.export_model request
|
2209
|
+
#
|
2210
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
2211
|
+
# # object to check the status of an operation, cancel it, or wait
|
2212
|
+
# # for results. Here is how to block until completion:
|
2213
|
+
# result.wait_until_done! timeout: 60
|
2214
|
+
# if result.response?
|
2215
|
+
# p result.response
|
2216
|
+
# else
|
2217
|
+
# puts "Error!"
|
2218
|
+
# end
|
2219
|
+
#
|
1787
2220
|
def export_model request, options = nil
|
1788
2221
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1789
2222
|
|
@@ -1801,16 +2234,20 @@ module Google
|
|
1801
2234
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1802
2235
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1803
2236
|
|
1804
|
-
header_params = {
|
1805
|
-
|
1806
|
-
|
2237
|
+
header_params = {}
|
2238
|
+
if request.name
|
2239
|
+
header_params["name"] = request.name
|
2240
|
+
end
|
2241
|
+
|
1807
2242
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1808
2243
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1809
2244
|
|
1810
2245
|
options.apply_defaults timeout: @config.rpcs.export_model.timeout,
|
1811
2246
|
metadata: metadata,
|
1812
2247
|
retry_policy: @config.rpcs.export_model.retry_policy
|
1813
|
-
|
2248
|
+
|
2249
|
+
options.apply_defaults timeout: @config.timeout,
|
2250
|
+
metadata: @config.metadata,
|
1814
2251
|
retry_policy: @config.retry_policy
|
1815
2252
|
|
1816
2253
|
@auto_ml_stub.call_rpc :export_model, request, options: options do |response, operation|
|
@@ -1867,6 +2304,28 @@ module Google
|
|
1867
2304
|
#
|
1868
2305
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1869
2306
|
#
|
2307
|
+
# @example Basic example
|
2308
|
+
# require "google/cloud/automl/v1beta1"
|
2309
|
+
#
|
2310
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2311
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
2312
|
+
#
|
2313
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2314
|
+
# request = Google::Cloud::AutoML::V1beta1::ExportEvaluatedExamplesRequest.new
|
2315
|
+
#
|
2316
|
+
# # Call the export_evaluated_examples method.
|
2317
|
+
# result = client.export_evaluated_examples request
|
2318
|
+
#
|
2319
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
2320
|
+
# # object to check the status of an operation, cancel it, or wait
|
2321
|
+
# # for results. Here is how to block until completion:
|
2322
|
+
# result.wait_until_done! timeout: 60
|
2323
|
+
# if result.response?
|
2324
|
+
# p result.response
|
2325
|
+
# else
|
2326
|
+
# puts "Error!"
|
2327
|
+
# end
|
2328
|
+
#
|
1870
2329
|
def export_evaluated_examples request, options = nil
|
1871
2330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1872
2331
|
|
@@ -1884,16 +2343,20 @@ module Google
|
|
1884
2343
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1885
2344
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1886
2345
|
|
1887
|
-
header_params = {
|
1888
|
-
|
1889
|
-
|
2346
|
+
header_params = {}
|
2347
|
+
if request.name
|
2348
|
+
header_params["name"] = request.name
|
2349
|
+
end
|
2350
|
+
|
1890
2351
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1891
2352
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1892
2353
|
|
1893
2354
|
options.apply_defaults timeout: @config.rpcs.export_evaluated_examples.timeout,
|
1894
2355
|
metadata: metadata,
|
1895
2356
|
retry_policy: @config.rpcs.export_evaluated_examples.retry_policy
|
1896
|
-
|
2357
|
+
|
2358
|
+
options.apply_defaults timeout: @config.timeout,
|
2359
|
+
metadata: @config.metadata,
|
1897
2360
|
retry_policy: @config.retry_policy
|
1898
2361
|
|
1899
2362
|
@auto_ml_stub.call_rpc :export_evaluated_examples, request, options: options do |response, operation|
|
@@ -1934,6 +2397,21 @@ module Google
|
|
1934
2397
|
#
|
1935
2398
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1936
2399
|
#
|
2400
|
+
# @example Basic example
|
2401
|
+
# require "google/cloud/automl/v1beta1"
|
2402
|
+
#
|
2403
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2404
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
2405
|
+
#
|
2406
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2407
|
+
# request = Google::Cloud::AutoML::V1beta1::GetModelEvaluationRequest.new
|
2408
|
+
#
|
2409
|
+
# # Call the get_model_evaluation method.
|
2410
|
+
# result = client.get_model_evaluation request
|
2411
|
+
#
|
2412
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::ModelEvaluation.
|
2413
|
+
# p result
|
2414
|
+
#
|
1937
2415
|
def get_model_evaluation request, options = nil
|
1938
2416
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1939
2417
|
|
@@ -1951,16 +2429,20 @@ module Google
|
|
1951
2429
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1952
2430
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1953
2431
|
|
1954
|
-
header_params = {
|
1955
|
-
|
1956
|
-
|
2432
|
+
header_params = {}
|
2433
|
+
if request.name
|
2434
|
+
header_params["name"] = request.name
|
2435
|
+
end
|
2436
|
+
|
1957
2437
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1958
2438
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1959
2439
|
|
1960
2440
|
options.apply_defaults timeout: @config.rpcs.get_model_evaluation.timeout,
|
1961
2441
|
metadata: metadata,
|
1962
2442
|
retry_policy: @config.rpcs.get_model_evaluation.retry_policy
|
1963
|
-
|
2443
|
+
|
2444
|
+
options.apply_defaults timeout: @config.timeout,
|
2445
|
+
metadata: @config.metadata,
|
1964
2446
|
retry_policy: @config.retry_policy
|
1965
2447
|
|
1966
2448
|
@auto_ml_stub.call_rpc :get_model_evaluation, request, options: options do |response, operation|
|
@@ -2021,6 +2503,27 @@ module Google
|
|
2021
2503
|
#
|
2022
2504
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2023
2505
|
#
|
2506
|
+
# @example Basic example
|
2507
|
+
# require "google/cloud/automl/v1beta1"
|
2508
|
+
#
|
2509
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2510
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
2511
|
+
#
|
2512
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2513
|
+
# request = Google::Cloud::AutoML::V1beta1::ListModelEvaluationsRequest.new
|
2514
|
+
#
|
2515
|
+
# # Call the list_model_evaluations method.
|
2516
|
+
# result = client.list_model_evaluations request
|
2517
|
+
#
|
2518
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2519
|
+
# # iterate over all elements by calling #each, and the enumerable
|
2520
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
2521
|
+
# # methods are also available for managing paging directly.
|
2522
|
+
# result.each do |response|
|
2523
|
+
# # Each element is of type ::Google::Cloud::AutoML::V1beta1::ModelEvaluation.
|
2524
|
+
# p response
|
2525
|
+
# end
|
2526
|
+
#
|
2024
2527
|
def list_model_evaluations request, options = nil
|
2025
2528
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2026
2529
|
|
@@ -2038,16 +2541,20 @@ module Google
|
|
2038
2541
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
2039
2542
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2040
2543
|
|
2041
|
-
header_params = {
|
2042
|
-
|
2043
|
-
|
2544
|
+
header_params = {}
|
2545
|
+
if request.parent
|
2546
|
+
header_params["parent"] = request.parent
|
2547
|
+
end
|
2548
|
+
|
2044
2549
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2045
2550
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2046
2551
|
|
2047
2552
|
options.apply_defaults timeout: @config.rpcs.list_model_evaluations.timeout,
|
2048
2553
|
metadata: metadata,
|
2049
2554
|
retry_policy: @config.rpcs.list_model_evaluations.retry_policy
|
2050
|
-
|
2555
|
+
|
2556
|
+
options.apply_defaults timeout: @config.timeout,
|
2557
|
+
metadata: @config.metadata,
|
2051
2558
|
retry_policy: @config.retry_policy
|
2052
2559
|
|
2053
2560
|
@auto_ml_stub.call_rpc :list_model_evaluations, request, options: options do |response, operation|
|
@@ -2072,22 +2579,21 @@ module Google
|
|
2072
2579
|
# Configuration can be applied globally to all clients, or to a single client
|
2073
2580
|
# on construction.
|
2074
2581
|
#
|
2075
|
-
#
|
2076
|
-
#
|
2077
|
-
#
|
2078
|
-
# to 20 seconds,
|
2079
|
-
#
|
2080
|
-
#
|
2081
|
-
#
|
2082
|
-
#
|
2083
|
-
#
|
2084
|
-
#
|
2085
|
-
#
|
2086
|
-
#
|
2087
|
-
#
|
2088
|
-
#
|
2089
|
-
#
|
2090
|
-
# end
|
2582
|
+
# @example
|
2583
|
+
#
|
2584
|
+
# # Modify the global config, setting the timeout for
|
2585
|
+
# # create_dataset to 20 seconds,
|
2586
|
+
# # and all remaining timeouts to 10 seconds.
|
2587
|
+
# ::Google::Cloud::AutoML::V1beta1::AutoML::Client.configure do |config|
|
2588
|
+
# config.timeout = 10.0
|
2589
|
+
# config.rpcs.create_dataset.timeout = 20.0
|
2590
|
+
# end
|
2591
|
+
#
|
2592
|
+
# # Apply the above configuration only to a new client.
|
2593
|
+
# client = ::Google::Cloud::AutoML::V1beta1::AutoML::Client.new do |config|
|
2594
|
+
# config.timeout = 10.0
|
2595
|
+
# config.rpcs.create_dataset.timeout = 20.0
|
2596
|
+
# end
|
2091
2597
|
#
|
2092
2598
|
# @!attribute [rw] endpoint
|
2093
2599
|
# The hostname or hostname:port of the service endpoint.
|