google-cloud-automl-v1beta1 0.1.0 → 0.2.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 +6 -6
- data/README.md +1 -1
- data/lib/google/cloud/automl/v1beta1.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/automl.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/automl/client.rb +497 -492
- data/lib/google/cloud/automl/v1beta1/automl/credentials.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/automl/operations.rb +109 -103
- data/lib/google/cloud/automl/v1beta1/automl/paths.rb +25 -25
- data/lib/google/cloud/automl/v1beta1/prediction_service.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/prediction_service/client.rb +87 -82
- data/lib/google/cloud/automl/v1beta1/prediction_service/credentials.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/prediction_service/operations.rb +109 -103
- data/lib/google/cloud/automl/v1beta1/prediction_service/paths.rb +3 -3
- data/lib/google/cloud/automl/v1beta1/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/cloud/automl/v1beta1/annotation_payload.rb +13 -13
- data/proto_docs/google/cloud/automl/v1beta1/annotation_spec.rb +5 -5
- data/proto_docs/google/cloud/automl/v1beta1/classification.rb +43 -43
- data/proto_docs/google/cloud/automl/v1beta1/column_spec.rb +12 -12
- data/proto_docs/google/cloud/automl/v1beta1/data_items.rb +49 -49
- data/proto_docs/google/cloud/automl/v1beta1/data_stats.rb +65 -65
- data/proto_docs/google/cloud/automl/v1beta1/data_types.rb +23 -23
- data/proto_docs/google/cloud/automl/v1beta1/dataset.rb +17 -17
- data/proto_docs/google/cloud/automl/v1beta1/detection.rb +32 -32
- data/proto_docs/google/cloud/automl/v1beta1/geometry.rb +7 -7
- data/proto_docs/google/cloud/automl/v1beta1/image.rb +38 -38
- data/proto_docs/google/cloud/automl/v1beta1/io.rb +92 -99
- data/proto_docs/google/cloud/automl/v1beta1/model.rb +17 -17
- data/proto_docs/google/cloud/automl/v1beta1/model_evaluation.rb +17 -17
- data/proto_docs/google/cloud/automl/v1beta1/operations.rb +56 -56
- data/proto_docs/google/cloud/automl/v1beta1/prediction_service.rb +41 -41
- data/proto_docs/google/cloud/automl/v1beta1/ranges.rb +4 -4
- data/proto_docs/google/cloud/automl/v1beta1/regression.rb +7 -7
- data/proto_docs/google/cloud/automl/v1beta1/service.rb +167 -167
- data/proto_docs/google/cloud/automl/v1beta1/table_spec.rb +9 -9
- data/proto_docs/google/cloud/automl/v1beta1/tables.rb +47 -47
- data/proto_docs/google/cloud/automl/v1beta1/temporal.rb +4 -4
- data/proto_docs/google/cloud/automl/v1beta1/text.rb +15 -15
- data/proto_docs/google/cloud/automl/v1beta1/text_extraction.rb +14 -14
- data/proto_docs/google/cloud/automl/v1beta1/text_segment.rb +5 -5
- data/proto_docs/google/cloud/automl/v1beta1/text_sentiment.rb +15 -15
- data/proto_docs/google/cloud/automl/v1beta1/translation.rb +16 -16
- data/proto_docs/google/cloud/automl/v1beta1/video.rb +8 -8
- data/proto_docs/google/longrunning/operations.rb +30 -30
- data/proto_docs/google/protobuf/any.rb +4 -4
- data/proto_docs/google/protobuf/duration.rb +4 -4
- data/proto_docs/google/protobuf/empty.rb +2 -2
- data/proto_docs/google/protobuf/field_mask.rb +3 -3
- data/proto_docs/google/protobuf/struct.rb +18 -18
- data/proto_docs/google/protobuf/timestamp.rb +4 -4
- data/proto_docs/google/rpc/status.rb +6 -6
- metadata +33 -6
- data/lib/google/cloud/common_resources_pb.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69ceb62bd77003d2423387e93b02915f5ea1e97a923766ab17344165b6abdddf
|
4
|
+
data.tar.gz: 9bb4e78a29005bd132544abc35f1a4daef9de732ce6bf46f9448417b77edc11b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5945ef44f02fd8a150a02470e057b52e5a0114ed48ea2dfbd6aff12ccd8629532ccb9b92031d31ffb80b5911f0648fd97272955a4a4e570a7707237579d73628
|
7
|
+
data.tar.gz: 0fa96ac6deafe06a708dcbb6ccdab0026c8b499e7df1688834db918dc33b68711a3db8331f3943586e733acfb0bacfc049152bdb293cfcb51bc8637c9c6c27ac
|
data/AUTHENTICATION.md
CHANGED
@@ -27,7 +27,7 @@ export AUTOML_CREDENTIALS=path/to/keyfile.json
|
|
27
27
|
```ruby
|
28
28
|
require "google/cloud/automl/v1beta1"
|
29
29
|
|
30
|
-
client = Google::Cloud::AutoML::V1beta1::PredictionService::Client.new
|
30
|
+
client = ::Google::Cloud::AutoML::V1beta1::PredictionService::Client.new
|
31
31
|
```
|
32
32
|
|
33
33
|
## Credential Lookup
|
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
|
|
64
64
|
|
65
65
|
The environment variables that google-cloud-automl-v1beta1
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
|
-
{Google::Cloud::AutoML::V1beta1::PredictionService::Credentials}):
|
67
|
+
{::Google::Cloud::AutoML::V1beta1::PredictionService::Credentials}):
|
68
68
|
|
69
69
|
1. `AUTOML_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
70
|
2. `AUTOML_KEYFILE` - Path to JSON file, or JSON contents
|
@@ -77,7 +77,7 @@ require "google/cloud/automl/v1beta1"
|
|
77
77
|
|
78
78
|
ENV["AUTOML_CREDENTIALS"] = "path/to/keyfile.json"
|
79
79
|
|
80
|
-
client = Google::Cloud::AutoML::V1beta1::PredictionService::Client.new
|
80
|
+
client = ::Google::Cloud::AutoML::V1beta1::PredictionService::Client.new
|
81
81
|
```
|
82
82
|
|
83
83
|
### Configuration
|
@@ -88,7 +88,7 @@ environment variables. Either on an individual client initialization:
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/automl/v1beta1"
|
90
90
|
|
91
|
-
client = Google::Cloud::AutoML::V1beta1::PredictionService::Client.new do |config|
|
91
|
+
client = ::Google::Cloud::AutoML::V1beta1::PredictionService::Client.new do |config|
|
92
92
|
config.credentials = "path/to/keyfile.json"
|
93
93
|
end
|
94
94
|
```
|
@@ -98,11 +98,11 @@ Or configured globally for all clients:
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/automl/v1beta1"
|
100
100
|
|
101
|
-
Google::Cloud::AutoML::V1beta1::PredictionService::Client.configure do |config|
|
101
|
+
::Google::Cloud::AutoML::V1beta1::PredictionService::Client.configure do |config|
|
102
102
|
config.credentials = "path/to/keyfile.json"
|
103
103
|
end
|
104
104
|
|
105
|
-
client = Google::Cloud::AutoML::V1beta1::PredictionService::Client.new
|
105
|
+
client = ::Google::Cloud::AutoML::V1beta1::PredictionService::Client.new
|
106
106
|
```
|
107
107
|
|
108
108
|
### Cloud SDK
|
data/README.md
CHANGED
@@ -25,7 +25,7 @@ In order to use this library, you first need to go through the following steps:
|
|
25
25
|
```ruby
|
26
26
|
require "google/cloud/automl/v1beta1"
|
27
27
|
|
28
|
-
client = Google::Cloud::AutoML::V1beta1::PredictionService::Client.new
|
28
|
+
client = ::Google::Cloud::AutoML::V1beta1::PredictionService::Client.new
|
29
29
|
request = my_create_request
|
30
30
|
response = client.predict request
|
31
31
|
```
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# To load this package, including all its services, and instantiate a client:
|
28
28
|
#
|
29
29
|
# require "google/cloud/automl/v1beta1"
|
30
|
-
# client = Google::Cloud::AutoML::V1beta1::PredictionService::Client.new
|
30
|
+
# client = ::Google::Cloud::AutoML::V1beta1::PredictionService::Client.new
|
31
31
|
#
|
32
32
|
module V1beta1
|
33
33
|
end
|
@@ -50,7 +50,7 @@ module Google
|
|
50
50
|
# To load this service and instantiate a client:
|
51
51
|
#
|
52
52
|
# require "google/cloud/automl/v1beta1/automl"
|
53
|
-
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
53
|
+
# client = ::Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
54
54
|
#
|
55
55
|
module AutoML
|
56
56
|
end
|
@@ -51,15 +51,15 @@ module Google
|
|
51
51
|
##
|
52
52
|
# Configure the AutoMl Client class.
|
53
53
|
#
|
54
|
-
# See {Google::Cloud::AutoML::V1beta1::AutoML::Client::Configuration}
|
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
59
|
# To modify the configuration for all AutoMl clients:
|
60
60
|
#
|
61
|
-
# Google::Cloud::AutoML::V1beta1::AutoML::Client.configure do |config|
|
62
|
-
# config.timeout =
|
61
|
+
# ::Google::Cloud::AutoML::V1beta1::AutoML::Client.configure do |config|
|
62
|
+
# config.timeout = 10.0
|
63
63
|
# end
|
64
64
|
#
|
65
65
|
# @yield [config] Configure the Client client.
|
@@ -211,7 +211,7 @@ module Google
|
|
211
211
|
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
212
212
|
# should be made on {Client.configure}.
|
213
213
|
#
|
214
|
-
# See {Google::Cloud::AutoML::V1beta1::AutoML::Client::Configuration}
|
214
|
+
# See {::Google::Cloud::AutoML::V1beta1::AutoML::Client::Configuration}
|
215
215
|
# for a description of the configuration fields.
|
216
216
|
#
|
217
217
|
# @yield [config] Configure the Client client.
|
@@ -232,13 +232,13 @@ module Google
|
|
232
232
|
# To create a new AutoMl client with the default
|
233
233
|
# configuration:
|
234
234
|
#
|
235
|
-
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
235
|
+
# client = ::Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
236
236
|
#
|
237
237
|
# To create a new AutoMl client with a custom
|
238
238
|
# configuration:
|
239
239
|
#
|
240
|
-
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new do |config|
|
241
|
-
# config.timeout =
|
240
|
+
# client = ::Google::Cloud::AutoML::V1beta1::AutoML::Client.new do |config|
|
241
|
+
# config.timeout = 10.0
|
242
242
|
# end
|
243
243
|
#
|
244
244
|
# @yield [config] Configure the AutoMl client.
|
@@ -263,15 +263,16 @@ module Google
|
|
263
263
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
264
264
|
credentials = Credentials.new credentials, scope: @config.scope
|
265
265
|
end
|
266
|
-
@quota_project_id =
|
266
|
+
@quota_project_id = @config.quota_project
|
267
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
267
268
|
|
268
269
|
@operations_client = Operations.new do |config|
|
269
270
|
config.credentials = credentials
|
270
271
|
config.endpoint = @config.endpoint
|
271
272
|
end
|
272
273
|
|
273
|
-
@auto_ml_stub = Gapic::ServiceStub.new(
|
274
|
-
Google::Cloud::AutoML::V1beta1::AutoMl::Stub,
|
274
|
+
@auto_ml_stub = ::Gapic::ServiceStub.new(
|
275
|
+
::Google::Cloud::AutoML::V1beta1::AutoMl::Stub,
|
275
276
|
credentials: credentials,
|
276
277
|
endpoint: @config.endpoint,
|
277
278
|
channel_args: @config.channel_args,
|
@@ -282,7 +283,7 @@ module Google
|
|
282
283
|
##
|
283
284
|
# Get the associated client for long-running operations.
|
284
285
|
#
|
285
|
-
# @return [Google::Cloud::AutoML::V1beta1::AutoML::Operations]
|
286
|
+
# @return [::Google::Cloud::AutoML::V1beta1::AutoML::Operations]
|
286
287
|
#
|
287
288
|
attr_reader :operations_client
|
288
289
|
|
@@ -293,12 +294,12 @@ module Google
|
|
293
294
|
#
|
294
295
|
# @overload create_dataset(request, options = nil)
|
295
296
|
# Pass arguments to `create_dataset` via a request object, either of type
|
296
|
-
# {Google::Cloud::AutoML::V1beta1::CreateDatasetRequest} or an equivalent Hash.
|
297
|
+
# {::Google::Cloud::AutoML::V1beta1::CreateDatasetRequest} or an equivalent Hash.
|
297
298
|
#
|
298
|
-
# @param request [Google::Cloud::AutoML::V1beta1::CreateDatasetRequest, Hash]
|
299
|
+
# @param request [::Google::Cloud::AutoML::V1beta1::CreateDatasetRequest, ::Hash]
|
299
300
|
# A request object representing the call parameters. Required. To specify no
|
300
301
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
301
|
-
# @param options [Gapic::CallOptions, Hash]
|
302
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
302
303
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
303
304
|
#
|
304
305
|
# @overload create_dataset(parent: nil, dataset: nil)
|
@@ -306,32 +307,32 @@ module Google
|
|
306
307
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
307
308
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
308
309
|
#
|
309
|
-
# @param parent [String]
|
310
|
+
# @param parent [::String]
|
310
311
|
# Required. The resource name of the project to create the dataset for.
|
311
|
-
# @param dataset [Google::Cloud::AutoML::V1beta1::Dataset, Hash]
|
312
|
+
# @param dataset [::Google::Cloud::AutoML::V1beta1::Dataset, ::Hash]
|
312
313
|
# Required. The dataset to create.
|
313
314
|
#
|
314
315
|
# @yield [response, operation] Access the result along with the RPC operation
|
315
|
-
# @yieldparam response [Google::Cloud::AutoML::V1beta1::Dataset]
|
316
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
316
|
+
# @yieldparam response [::Google::Cloud::AutoML::V1beta1::Dataset]
|
317
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
317
318
|
#
|
318
|
-
# @return [Google::Cloud::AutoML::V1beta1::Dataset]
|
319
|
+
# @return [::Google::Cloud::AutoML::V1beta1::Dataset]
|
319
320
|
#
|
320
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
321
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
321
322
|
#
|
322
323
|
def create_dataset request, options = nil
|
323
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
324
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
324
325
|
|
325
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1beta1::CreateDatasetRequest
|
326
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1beta1::CreateDatasetRequest
|
326
327
|
|
327
328
|
# Converts hash and nil to an options object
|
328
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
329
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
329
330
|
|
330
331
|
# Customize the options with defaults
|
331
332
|
metadata = @config.rpcs.create_dataset.metadata.to_h
|
332
333
|
|
333
334
|
# Set x-goog-api-client and x-goog-user-project headers
|
334
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
335
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
335
336
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
336
337
|
gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
|
337
338
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -352,8 +353,8 @@ module Google
|
|
352
353
|
yield response, operation if block_given?
|
353
354
|
return response
|
354
355
|
end
|
355
|
-
rescue GRPC::BadStatus => e
|
356
|
-
raise Google::Cloud::Error.from_error(e)
|
356
|
+
rescue ::GRPC::BadStatus => e
|
357
|
+
raise ::Google::Cloud::Error.from_error(e)
|
357
358
|
end
|
358
359
|
|
359
360
|
##
|
@@ -361,12 +362,12 @@ module Google
|
|
361
362
|
#
|
362
363
|
# @overload get_dataset(request, options = nil)
|
363
364
|
# Pass arguments to `get_dataset` via a request object, either of type
|
364
|
-
# {Google::Cloud::AutoML::V1beta1::GetDatasetRequest} or an equivalent Hash.
|
365
|
+
# {::Google::Cloud::AutoML::V1beta1::GetDatasetRequest} or an equivalent Hash.
|
365
366
|
#
|
366
|
-
# @param request [Google::Cloud::AutoML::V1beta1::GetDatasetRequest, Hash]
|
367
|
+
# @param request [::Google::Cloud::AutoML::V1beta1::GetDatasetRequest, ::Hash]
|
367
368
|
# A request object representing the call parameters. Required. To specify no
|
368
369
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
369
|
-
# @param options [Gapic::CallOptions, Hash]
|
370
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
370
371
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
371
372
|
#
|
372
373
|
# @overload get_dataset(name: nil)
|
@@ -374,30 +375,30 @@ module Google
|
|
374
375
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
375
376
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
376
377
|
#
|
377
|
-
# @param name [String]
|
378
|
+
# @param name [::String]
|
378
379
|
# Required. The resource name of the dataset to retrieve.
|
379
380
|
#
|
380
381
|
# @yield [response, operation] Access the result along with the RPC operation
|
381
|
-
# @yieldparam response [Google::Cloud::AutoML::V1beta1::Dataset]
|
382
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
382
|
+
# @yieldparam response [::Google::Cloud::AutoML::V1beta1::Dataset]
|
383
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
383
384
|
#
|
384
|
-
# @return [Google::Cloud::AutoML::V1beta1::Dataset]
|
385
|
+
# @return [::Google::Cloud::AutoML::V1beta1::Dataset]
|
385
386
|
#
|
386
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
387
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
387
388
|
#
|
388
389
|
def get_dataset request, options = nil
|
389
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
390
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
390
391
|
|
391
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1beta1::GetDatasetRequest
|
392
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1beta1::GetDatasetRequest
|
392
393
|
|
393
394
|
# Converts hash and nil to an options object
|
394
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
395
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
395
396
|
|
396
397
|
# Customize the options with defaults
|
397
398
|
metadata = @config.rpcs.get_dataset.metadata.to_h
|
398
399
|
|
399
400
|
# Set x-goog-api-client and x-goog-user-project headers
|
400
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
401
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
401
402
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
402
403
|
gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
|
403
404
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -418,8 +419,8 @@ module Google
|
|
418
419
|
yield response, operation if block_given?
|
419
420
|
return response
|
420
421
|
end
|
421
|
-
rescue GRPC::BadStatus => e
|
422
|
-
raise Google::Cloud::Error.from_error(e)
|
422
|
+
rescue ::GRPC::BadStatus => e
|
423
|
+
raise ::Google::Cloud::Error.from_error(e)
|
423
424
|
end
|
424
425
|
|
425
426
|
##
|
@@ -427,12 +428,12 @@ module Google
|
|
427
428
|
#
|
428
429
|
# @overload list_datasets(request, options = nil)
|
429
430
|
# Pass arguments to `list_datasets` via a request object, either of type
|
430
|
-
# {Google::Cloud::AutoML::V1beta1::ListDatasetsRequest} or an equivalent Hash.
|
431
|
+
# {::Google::Cloud::AutoML::V1beta1::ListDatasetsRequest} or an equivalent Hash.
|
431
432
|
#
|
432
|
-
# @param request [Google::Cloud::AutoML::V1beta1::ListDatasetsRequest, Hash]
|
433
|
+
# @param request [::Google::Cloud::AutoML::V1beta1::ListDatasetsRequest, ::Hash]
|
433
434
|
# A request object representing the call parameters. Required. To specify no
|
434
435
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
435
|
-
# @param options [Gapic::CallOptions, Hash]
|
436
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
436
437
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
437
438
|
#
|
438
439
|
# @overload list_datasets(parent: nil, filter: nil, page_size: nil, page_token: nil)
|
@@ -440,9 +441,9 @@ module Google
|
|
440
441
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
441
442
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
442
443
|
#
|
443
|
-
# @param parent [String]
|
444
|
+
# @param parent [::String]
|
444
445
|
# Required. The resource name of the project from which to list datasets.
|
445
|
-
# @param filter [String]
|
446
|
+
# @param filter [::String]
|
446
447
|
# An expression for filtering the results of the request.
|
447
448
|
#
|
448
449
|
# * `dataset_metadata` - for existence of the case (e.g.
|
@@ -450,36 +451,36 @@ module Google
|
|
450
451
|
#
|
451
452
|
# * `translation_dataset_metadata:*` --> The dataset has
|
452
453
|
# translation_dataset_metadata.
|
453
|
-
# @param page_size [Integer]
|
454
|
+
# @param page_size [::Integer]
|
454
455
|
# Requested page size. Server may return fewer results than requested.
|
455
456
|
# If unspecified, server will pick a default size.
|
456
|
-
# @param page_token [String]
|
457
|
+
# @param page_token [::String]
|
457
458
|
# A token identifying a page of results for the server to return
|
458
459
|
# Typically obtained via
|
459
|
-
# {Google::Cloud::AutoML::V1beta1::ListDatasetsResponse#next_page_token ListDatasetsResponse.next_page_token} of the previous
|
460
|
-
# {Google::Cloud::AutoML::V1beta1::AutoML::Client#list_datasets AutoMl.ListDatasets} call.
|
460
|
+
# {::Google::Cloud::AutoML::V1beta1::ListDatasetsResponse#next_page_token ListDatasetsResponse.next_page_token} of the previous
|
461
|
+
# {::Google::Cloud::AutoML::V1beta1::AutoML::Client#list_datasets AutoMl.ListDatasets} call.
|
461
462
|
#
|
462
463
|
# @yield [response, operation] Access the result along with the RPC operation
|
463
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
464
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
464
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AutoML::V1beta1::Dataset>]
|
465
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
465
466
|
#
|
466
|
-
# @return [Gapic::PagedEnumerable
|
467
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::AutoML::V1beta1::Dataset>]
|
467
468
|
#
|
468
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
469
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
469
470
|
#
|
470
471
|
def list_datasets request, options = nil
|
471
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
472
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
472
473
|
|
473
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1beta1::ListDatasetsRequest
|
474
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1beta1::ListDatasetsRequest
|
474
475
|
|
475
476
|
# Converts hash and nil to an options object
|
476
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
477
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
477
478
|
|
478
479
|
# Customize the options with defaults
|
479
480
|
metadata = @config.rpcs.list_datasets.metadata.to_h
|
480
481
|
|
481
482
|
# Set x-goog-api-client and x-goog-user-project headers
|
482
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
483
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
483
484
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
484
485
|
gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
|
485
486
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -497,12 +498,12 @@ module Google
|
|
497
498
|
retry_policy: @config.retry_policy
|
498
499
|
|
499
500
|
@auto_ml_stub.call_rpc :list_datasets, request, options: options do |response, operation|
|
500
|
-
response = Gapic::PagedEnumerable.new @auto_ml_stub, :list_datasets, request, response, operation, options
|
501
|
+
response = ::Gapic::PagedEnumerable.new @auto_ml_stub, :list_datasets, request, response, operation, options
|
501
502
|
yield response, operation if block_given?
|
502
503
|
return response
|
503
504
|
end
|
504
|
-
rescue GRPC::BadStatus => e
|
505
|
-
raise Google::Cloud::Error.from_error(e)
|
505
|
+
rescue ::GRPC::BadStatus => e
|
506
|
+
raise ::Google::Cloud::Error.from_error(e)
|
506
507
|
end
|
507
508
|
|
508
509
|
##
|
@@ -510,12 +511,12 @@ module Google
|
|
510
511
|
#
|
511
512
|
# @overload update_dataset(request, options = nil)
|
512
513
|
# Pass arguments to `update_dataset` via a request object, either of type
|
513
|
-
# {Google::Cloud::AutoML::V1beta1::UpdateDatasetRequest} or an equivalent Hash.
|
514
|
+
# {::Google::Cloud::AutoML::V1beta1::UpdateDatasetRequest} or an equivalent Hash.
|
514
515
|
#
|
515
|
-
# @param request [Google::Cloud::AutoML::V1beta1::UpdateDatasetRequest, Hash]
|
516
|
+
# @param request [::Google::Cloud::AutoML::V1beta1::UpdateDatasetRequest, ::Hash]
|
516
517
|
# A request object representing the call parameters. Required. To specify no
|
517
518
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
518
|
-
# @param options [Gapic::CallOptions, Hash]
|
519
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
519
520
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
520
521
|
#
|
521
522
|
# @overload update_dataset(dataset: nil, update_mask: nil)
|
@@ -523,32 +524,32 @@ module Google
|
|
523
524
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
524
525
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
525
526
|
#
|
526
|
-
# @param dataset [Google::Cloud::AutoML::V1beta1::Dataset, Hash]
|
527
|
+
# @param dataset [::Google::Cloud::AutoML::V1beta1::Dataset, ::Hash]
|
527
528
|
# Required. The dataset which replaces the resource on the server.
|
528
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
529
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
529
530
|
# The update mask applies to the resource.
|
530
531
|
#
|
531
532
|
# @yield [response, operation] Access the result along with the RPC operation
|
532
|
-
# @yieldparam response [Google::Cloud::AutoML::V1beta1::Dataset]
|
533
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
533
|
+
# @yieldparam response [::Google::Cloud::AutoML::V1beta1::Dataset]
|
534
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
534
535
|
#
|
535
|
-
# @return [Google::Cloud::AutoML::V1beta1::Dataset]
|
536
|
+
# @return [::Google::Cloud::AutoML::V1beta1::Dataset]
|
536
537
|
#
|
537
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
538
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
538
539
|
#
|
539
540
|
def update_dataset request, options = nil
|
540
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
541
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
541
542
|
|
542
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1beta1::UpdateDatasetRequest
|
543
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1beta1::UpdateDatasetRequest
|
543
544
|
|
544
545
|
# Converts hash and nil to an options object
|
545
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
546
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
546
547
|
|
547
548
|
# Customize the options with defaults
|
548
549
|
metadata = @config.rpcs.update_dataset.metadata.to_h
|
549
550
|
|
550
551
|
# Set x-goog-api-client and x-goog-user-project headers
|
551
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
552
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
552
553
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
553
554
|
gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
|
554
555
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -569,25 +570,25 @@ module Google
|
|
569
570
|
yield response, operation if block_given?
|
570
571
|
return response
|
571
572
|
end
|
572
|
-
rescue GRPC::BadStatus => e
|
573
|
-
raise Google::Cloud::Error.from_error(e)
|
573
|
+
rescue ::GRPC::BadStatus => e
|
574
|
+
raise ::Google::Cloud::Error.from_error(e)
|
574
575
|
end
|
575
576
|
|
576
577
|
##
|
577
578
|
# Deletes a dataset and all of its contents.
|
578
579
|
# Returns empty response in the
|
579
|
-
# {Google::Longrunning::Operation#response response} field when it completes,
|
580
|
+
# {::Google::Longrunning::Operation#response response} field when it completes,
|
580
581
|
# and `delete_details` in the
|
581
|
-
# {Google::Longrunning::Operation#metadata metadata} field.
|
582
|
+
# {::Google::Longrunning::Operation#metadata metadata} field.
|
582
583
|
#
|
583
584
|
# @overload delete_dataset(request, options = nil)
|
584
585
|
# Pass arguments to `delete_dataset` via a request object, either of type
|
585
|
-
# {Google::Cloud::AutoML::V1beta1::DeleteDatasetRequest} or an equivalent Hash.
|
586
|
+
# {::Google::Cloud::AutoML::V1beta1::DeleteDatasetRequest} or an equivalent Hash.
|
586
587
|
#
|
587
|
-
# @param request [Google::Cloud::AutoML::V1beta1::DeleteDatasetRequest, Hash]
|
588
|
+
# @param request [::Google::Cloud::AutoML::V1beta1::DeleteDatasetRequest, ::Hash]
|
588
589
|
# A request object representing the call parameters. Required. To specify no
|
589
590
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
590
|
-
# @param options [Gapic::CallOptions, Hash]
|
591
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
591
592
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
592
593
|
#
|
593
594
|
# @overload delete_dataset(name: nil)
|
@@ -595,30 +596,30 @@ module Google
|
|
595
596
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
596
597
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
597
598
|
#
|
598
|
-
# @param name [String]
|
599
|
+
# @param name [::String]
|
599
600
|
# Required. The resource name of the dataset to delete.
|
600
601
|
#
|
601
602
|
# @yield [response, operation] Access the result along with the RPC operation
|
602
|
-
# @yieldparam response [Gapic::Operation]
|
603
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
603
|
+
# @yieldparam response [::Gapic::Operation]
|
604
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
604
605
|
#
|
605
|
-
# @return [Gapic::Operation]
|
606
|
+
# @return [::Gapic::Operation]
|
606
607
|
#
|
607
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
608
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
608
609
|
#
|
609
610
|
def delete_dataset request, options = nil
|
610
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
611
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
611
612
|
|
612
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1beta1::DeleteDatasetRequest
|
613
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1beta1::DeleteDatasetRequest
|
613
614
|
|
614
615
|
# Converts hash and nil to an options object
|
615
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
616
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
616
617
|
|
617
618
|
# Customize the options with defaults
|
618
619
|
metadata = @config.rpcs.delete_dataset.metadata.to_h
|
619
620
|
|
620
621
|
# Set x-goog-api-client and x-goog-user-project headers
|
621
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
622
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
622
623
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
623
624
|
gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
|
624
625
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -636,12 +637,12 @@ module Google
|
|
636
637
|
retry_policy: @config.retry_policy
|
637
638
|
|
638
639
|
@auto_ml_stub.call_rpc :delete_dataset, request, options: options do |response, operation|
|
639
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
640
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
640
641
|
yield response, operation if block_given?
|
641
642
|
return response
|
642
643
|
end
|
643
|
-
rescue GRPC::BadStatus => e
|
644
|
-
raise Google::Cloud::Error.from_error(e)
|
644
|
+
rescue ::GRPC::BadStatus => e
|
645
|
+
raise ::Google::Cloud::Error.from_error(e)
|
645
646
|
end
|
646
647
|
|
647
648
|
##
|
@@ -650,19 +651,19 @@ module Google
|
|
650
651
|
#
|
651
652
|
# For Tables:
|
652
653
|
# * A
|
653
|
-
# {Google::Cloud::AutoML::V1beta1::InputConfig#params schema_inference_version}
|
654
|
+
# {::Google::Cloud::AutoML::V1beta1::InputConfig#params schema_inference_version}
|
654
655
|
# parameter must be explicitly set.
|
655
656
|
# Returns an empty response in the
|
656
|
-
# {Google::Longrunning::Operation#response response} field when it completes.
|
657
|
+
# {::Google::Longrunning::Operation#response response} field when it completes.
|
657
658
|
#
|
658
659
|
# @overload import_data(request, options = nil)
|
659
660
|
# Pass arguments to `import_data` via a request object, either of type
|
660
|
-
# {Google::Cloud::AutoML::V1beta1::ImportDataRequest} or an equivalent Hash.
|
661
|
+
# {::Google::Cloud::AutoML::V1beta1::ImportDataRequest} or an equivalent Hash.
|
661
662
|
#
|
662
|
-
# @param request [Google::Cloud::AutoML::V1beta1::ImportDataRequest, Hash]
|
663
|
+
# @param request [::Google::Cloud::AutoML::V1beta1::ImportDataRequest, ::Hash]
|
663
664
|
# A request object representing the call parameters. Required. To specify no
|
664
665
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
665
|
-
# @param options [Gapic::CallOptions, Hash]
|
666
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
666
667
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
667
668
|
#
|
668
669
|
# @overload import_data(name: nil, input_config: nil)
|
@@ -670,34 +671,34 @@ module Google
|
|
670
671
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
671
672
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
672
673
|
#
|
673
|
-
# @param name [String]
|
674
|
+
# @param name [::String]
|
674
675
|
# Required. Dataset name. Dataset must already exist. All imported
|
675
676
|
# annotations and examples will be added.
|
676
|
-
# @param input_config [Google::Cloud::AutoML::V1beta1::InputConfig, Hash]
|
677
|
+
# @param input_config [::Google::Cloud::AutoML::V1beta1::InputConfig, ::Hash]
|
677
678
|
# Required. The desired input location and its domain specific semantics,
|
678
679
|
# if any.
|
679
680
|
#
|
680
681
|
# @yield [response, operation] Access the result along with the RPC operation
|
681
|
-
# @yieldparam response [Gapic::Operation]
|
682
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
682
|
+
# @yieldparam response [::Gapic::Operation]
|
683
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
683
684
|
#
|
684
|
-
# @return [Gapic::Operation]
|
685
|
+
# @return [::Gapic::Operation]
|
685
686
|
#
|
686
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
687
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
687
688
|
#
|
688
689
|
def import_data request, options = nil
|
689
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
690
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
690
691
|
|
691
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1beta1::ImportDataRequest
|
692
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1beta1::ImportDataRequest
|
692
693
|
|
693
694
|
# Converts hash and nil to an options object
|
694
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
695
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
695
696
|
|
696
697
|
# Customize the options with defaults
|
697
698
|
metadata = @config.rpcs.import_data.metadata.to_h
|
698
699
|
|
699
700
|
# Set x-goog-api-client and x-goog-user-project headers
|
700
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
701
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
701
702
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
702
703
|
gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
|
703
704
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -715,27 +716,27 @@ module Google
|
|
715
716
|
retry_policy: @config.retry_policy
|
716
717
|
|
717
718
|
@auto_ml_stub.call_rpc :import_data, request, options: options do |response, operation|
|
718
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
719
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
719
720
|
yield response, operation if block_given?
|
720
721
|
return response
|
721
722
|
end
|
722
|
-
rescue GRPC::BadStatus => e
|
723
|
-
raise Google::Cloud::Error.from_error(e)
|
723
|
+
rescue ::GRPC::BadStatus => e
|
724
|
+
raise ::Google::Cloud::Error.from_error(e)
|
724
725
|
end
|
725
726
|
|
726
727
|
##
|
727
728
|
# Exports dataset's data to the provided output location.
|
728
729
|
# Returns an empty response in the
|
729
|
-
# {Google::Longrunning::Operation#response response} field when it completes.
|
730
|
+
# {::Google::Longrunning::Operation#response response} field when it completes.
|
730
731
|
#
|
731
732
|
# @overload export_data(request, options = nil)
|
732
733
|
# Pass arguments to `export_data` via a request object, either of type
|
733
|
-
# {Google::Cloud::AutoML::V1beta1::ExportDataRequest} or an equivalent Hash.
|
734
|
+
# {::Google::Cloud::AutoML::V1beta1::ExportDataRequest} or an equivalent Hash.
|
734
735
|
#
|
735
|
-
# @param request [Google::Cloud::AutoML::V1beta1::ExportDataRequest, Hash]
|
736
|
+
# @param request [::Google::Cloud::AutoML::V1beta1::ExportDataRequest, ::Hash]
|
736
737
|
# A request object representing the call parameters. Required. To specify no
|
737
738
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
738
|
-
# @param options [Gapic::CallOptions, Hash]
|
739
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
739
740
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
740
741
|
#
|
741
742
|
# @overload export_data(name: nil, output_config: nil)
|
@@ -743,32 +744,32 @@ module Google
|
|
743
744
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
744
745
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
745
746
|
#
|
746
|
-
# @param name [String]
|
747
|
+
# @param name [::String]
|
747
748
|
# Required. The resource name of the dataset.
|
748
|
-
# @param output_config [Google::Cloud::AutoML::V1beta1::OutputConfig, Hash]
|
749
|
+
# @param output_config [::Google::Cloud::AutoML::V1beta1::OutputConfig, ::Hash]
|
749
750
|
# Required. The desired output location.
|
750
751
|
#
|
751
752
|
# @yield [response, operation] Access the result along with the RPC operation
|
752
|
-
# @yieldparam response [Gapic::Operation]
|
753
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
753
|
+
# @yieldparam response [::Gapic::Operation]
|
754
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
754
755
|
#
|
755
|
-
# @return [Gapic::Operation]
|
756
|
+
# @return [::Gapic::Operation]
|
756
757
|
#
|
757
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
758
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
758
759
|
#
|
759
760
|
def export_data request, options = nil
|
760
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
761
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
761
762
|
|
762
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1beta1::ExportDataRequest
|
763
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1beta1::ExportDataRequest
|
763
764
|
|
764
765
|
# Converts hash and nil to an options object
|
765
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
766
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
766
767
|
|
767
768
|
# Customize the options with defaults
|
768
769
|
metadata = @config.rpcs.export_data.metadata.to_h
|
769
770
|
|
770
771
|
# Set x-goog-api-client and x-goog-user-project headers
|
771
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
772
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
772
773
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
773
774
|
gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
|
774
775
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -786,12 +787,12 @@ module Google
|
|
786
787
|
retry_policy: @config.retry_policy
|
787
788
|
|
788
789
|
@auto_ml_stub.call_rpc :export_data, request, options: options do |response, operation|
|
789
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
790
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
790
791
|
yield response, operation if block_given?
|
791
792
|
return response
|
792
793
|
end
|
793
|
-
rescue GRPC::BadStatus => e
|
794
|
-
raise Google::Cloud::Error.from_error(e)
|
794
|
+
rescue ::GRPC::BadStatus => e
|
795
|
+
raise ::Google::Cloud::Error.from_error(e)
|
795
796
|
end
|
796
797
|
|
797
798
|
##
|
@@ -799,12 +800,12 @@ module Google
|
|
799
800
|
#
|
800
801
|
# @overload get_annotation_spec(request, options = nil)
|
801
802
|
# Pass arguments to `get_annotation_spec` via a request object, either of type
|
802
|
-
# {Google::Cloud::AutoML::V1beta1::GetAnnotationSpecRequest} or an equivalent Hash.
|
803
|
+
# {::Google::Cloud::AutoML::V1beta1::GetAnnotationSpecRequest} or an equivalent Hash.
|
803
804
|
#
|
804
|
-
# @param request [Google::Cloud::AutoML::V1beta1::GetAnnotationSpecRequest, Hash]
|
805
|
+
# @param request [::Google::Cloud::AutoML::V1beta1::GetAnnotationSpecRequest, ::Hash]
|
805
806
|
# A request object representing the call parameters. Required. To specify no
|
806
807
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
807
|
-
# @param options [Gapic::CallOptions, Hash]
|
808
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
808
809
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
809
810
|
#
|
810
811
|
# @overload get_annotation_spec(name: nil)
|
@@ -812,30 +813,30 @@ module Google
|
|
812
813
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
813
814
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
814
815
|
#
|
815
|
-
# @param name [String]
|
816
|
+
# @param name [::String]
|
816
817
|
# Required. The resource name of the annotation spec to retrieve.
|
817
818
|
#
|
818
819
|
# @yield [response, operation] Access the result along with the RPC operation
|
819
|
-
# @yieldparam response [Google::Cloud::AutoML::V1beta1::AnnotationSpec]
|
820
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
820
|
+
# @yieldparam response [::Google::Cloud::AutoML::V1beta1::AnnotationSpec]
|
821
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
821
822
|
#
|
822
|
-
# @return [Google::Cloud::AutoML::V1beta1::AnnotationSpec]
|
823
|
+
# @return [::Google::Cloud::AutoML::V1beta1::AnnotationSpec]
|
823
824
|
#
|
824
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
825
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
825
826
|
#
|
826
827
|
def get_annotation_spec request, options = nil
|
827
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
828
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
828
829
|
|
829
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1beta1::GetAnnotationSpecRequest
|
830
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1beta1::GetAnnotationSpecRequest
|
830
831
|
|
831
832
|
# Converts hash and nil to an options object
|
832
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
833
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
833
834
|
|
834
835
|
# Customize the options with defaults
|
835
836
|
metadata = @config.rpcs.get_annotation_spec.metadata.to_h
|
836
837
|
|
837
838
|
# Set x-goog-api-client and x-goog-user-project headers
|
838
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
839
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
839
840
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
840
841
|
gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
|
841
842
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -856,8 +857,8 @@ module Google
|
|
856
857
|
yield response, operation if block_given?
|
857
858
|
return response
|
858
859
|
end
|
859
|
-
rescue GRPC::BadStatus => e
|
860
|
-
raise Google::Cloud::Error.from_error(e)
|
860
|
+
rescue ::GRPC::BadStatus => e
|
861
|
+
raise ::Google::Cloud::Error.from_error(e)
|
861
862
|
end
|
862
863
|
|
863
864
|
##
|
@@ -865,12 +866,12 @@ module Google
|
|
865
866
|
#
|
866
867
|
# @overload get_table_spec(request, options = nil)
|
867
868
|
# Pass arguments to `get_table_spec` via a request object, either of type
|
868
|
-
# {Google::Cloud::AutoML::V1beta1::GetTableSpecRequest} or an equivalent Hash.
|
869
|
+
# {::Google::Cloud::AutoML::V1beta1::GetTableSpecRequest} or an equivalent Hash.
|
869
870
|
#
|
870
|
-
# @param request [Google::Cloud::AutoML::V1beta1::GetTableSpecRequest, Hash]
|
871
|
+
# @param request [::Google::Cloud::AutoML::V1beta1::GetTableSpecRequest, ::Hash]
|
871
872
|
# A request object representing the call parameters. Required. To specify no
|
872
873
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
873
|
-
# @param options [Gapic::CallOptions, Hash]
|
874
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
874
875
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
875
876
|
#
|
876
877
|
# @overload get_table_spec(name: nil, field_mask: nil)
|
@@ -878,32 +879,32 @@ module Google
|
|
878
879
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
879
880
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
880
881
|
#
|
881
|
-
# @param name [String]
|
882
|
+
# @param name [::String]
|
882
883
|
# Required. The resource name of the table spec to retrieve.
|
883
|
-
# @param field_mask [Google::Protobuf::FieldMask, Hash]
|
884
|
+
# @param field_mask [::Google::Protobuf::FieldMask, ::Hash]
|
884
885
|
# Mask specifying which fields to read.
|
885
886
|
#
|
886
887
|
# @yield [response, operation] Access the result along with the RPC operation
|
887
|
-
# @yieldparam response [Google::Cloud::AutoML::V1beta1::TableSpec]
|
888
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
888
|
+
# @yieldparam response [::Google::Cloud::AutoML::V1beta1::TableSpec]
|
889
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
889
890
|
#
|
890
|
-
# @return [Google::Cloud::AutoML::V1beta1::TableSpec]
|
891
|
+
# @return [::Google::Cloud::AutoML::V1beta1::TableSpec]
|
891
892
|
#
|
892
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
893
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
893
894
|
#
|
894
895
|
def get_table_spec request, options = nil
|
895
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
896
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
896
897
|
|
897
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1beta1::GetTableSpecRequest
|
898
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1beta1::GetTableSpecRequest
|
898
899
|
|
899
900
|
# Converts hash and nil to an options object
|
900
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
901
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
901
902
|
|
902
903
|
# Customize the options with defaults
|
903
904
|
metadata = @config.rpcs.get_table_spec.metadata.to_h
|
904
905
|
|
905
906
|
# Set x-goog-api-client and x-goog-user-project headers
|
906
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
907
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
907
908
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
908
909
|
gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
|
909
910
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -924,8 +925,8 @@ module Google
|
|
924
925
|
yield response, operation if block_given?
|
925
926
|
return response
|
926
927
|
end
|
927
|
-
rescue GRPC::BadStatus => e
|
928
|
-
raise Google::Cloud::Error.from_error(e)
|
928
|
+
rescue ::GRPC::BadStatus => e
|
929
|
+
raise ::Google::Cloud::Error.from_error(e)
|
929
930
|
end
|
930
931
|
|
931
932
|
##
|
@@ -933,12 +934,12 @@ module Google
|
|
933
934
|
#
|
934
935
|
# @overload list_table_specs(request, options = nil)
|
935
936
|
# Pass arguments to `list_table_specs` via a request object, either of type
|
936
|
-
# {Google::Cloud::AutoML::V1beta1::ListTableSpecsRequest} or an equivalent Hash.
|
937
|
+
# {::Google::Cloud::AutoML::V1beta1::ListTableSpecsRequest} or an equivalent Hash.
|
937
938
|
#
|
938
|
-
# @param request [Google::Cloud::AutoML::V1beta1::ListTableSpecsRequest, Hash]
|
939
|
+
# @param request [::Google::Cloud::AutoML::V1beta1::ListTableSpecsRequest, ::Hash]
|
939
940
|
# A request object representing the call parameters. Required. To specify no
|
940
941
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
941
|
-
# @param options [Gapic::CallOptions, Hash]
|
942
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
942
943
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
943
944
|
#
|
944
945
|
# @overload list_table_specs(parent: nil, field_mask: nil, filter: nil, page_size: nil, page_token: nil)
|
@@ -946,42 +947,42 @@ module Google
|
|
946
947
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
947
948
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
948
949
|
#
|
949
|
-
# @param parent [String]
|
950
|
+
# @param parent [::String]
|
950
951
|
# Required. The resource name of the dataset to list table specs from.
|
951
|
-
# @param field_mask [Google::Protobuf::FieldMask, Hash]
|
952
|
+
# @param field_mask [::Google::Protobuf::FieldMask, ::Hash]
|
952
953
|
# Mask specifying which fields to read.
|
953
|
-
# @param filter [String]
|
954
|
+
# @param filter [::String]
|
954
955
|
# Filter expression, see go/filtering.
|
955
|
-
# @param page_size [Integer]
|
956
|
+
# @param page_size [::Integer]
|
956
957
|
# Requested page size. The server can return fewer results than requested.
|
957
958
|
# If unspecified, the server will pick a default size.
|
958
|
-
# @param page_token [String]
|
959
|
+
# @param page_token [::String]
|
959
960
|
# A token identifying a page of results for the server to return.
|
960
961
|
# Typically obtained from the
|
961
|
-
# {Google::Cloud::AutoML::V1beta1::ListTableSpecsResponse#next_page_token ListTableSpecsResponse.next_page_token} field of the previous
|
962
|
-
# {Google::Cloud::AutoML::V1beta1::AutoML::Client#list_table_specs AutoMl.ListTableSpecs} call.
|
962
|
+
# {::Google::Cloud::AutoML::V1beta1::ListTableSpecsResponse#next_page_token ListTableSpecsResponse.next_page_token} field of the previous
|
963
|
+
# {::Google::Cloud::AutoML::V1beta1::AutoML::Client#list_table_specs AutoMl.ListTableSpecs} call.
|
963
964
|
#
|
964
965
|
# @yield [response, operation] Access the result along with the RPC operation
|
965
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
966
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
966
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AutoML::V1beta1::TableSpec>]
|
967
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
967
968
|
#
|
968
|
-
# @return [Gapic::PagedEnumerable
|
969
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::AutoML::V1beta1::TableSpec>]
|
969
970
|
#
|
970
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
971
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
971
972
|
#
|
972
973
|
def list_table_specs request, options = nil
|
973
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
974
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
974
975
|
|
975
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1beta1::ListTableSpecsRequest
|
976
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1beta1::ListTableSpecsRequest
|
976
977
|
|
977
978
|
# Converts hash and nil to an options object
|
978
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
979
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
979
980
|
|
980
981
|
# Customize the options with defaults
|
981
982
|
metadata = @config.rpcs.list_table_specs.metadata.to_h
|
982
983
|
|
983
984
|
# Set x-goog-api-client and x-goog-user-project headers
|
984
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
985
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
985
986
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
986
987
|
gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
|
987
988
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -999,12 +1000,12 @@ module Google
|
|
999
1000
|
retry_policy: @config.retry_policy
|
1000
1001
|
|
1001
1002
|
@auto_ml_stub.call_rpc :list_table_specs, request, options: options do |response, operation|
|
1002
|
-
response = Gapic::PagedEnumerable.new @auto_ml_stub, :list_table_specs, request, response, operation, options
|
1003
|
+
response = ::Gapic::PagedEnumerable.new @auto_ml_stub, :list_table_specs, request, response, operation, options
|
1003
1004
|
yield response, operation if block_given?
|
1004
1005
|
return response
|
1005
1006
|
end
|
1006
|
-
rescue GRPC::BadStatus => e
|
1007
|
-
raise Google::Cloud::Error.from_error(e)
|
1007
|
+
rescue ::GRPC::BadStatus => e
|
1008
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1008
1009
|
end
|
1009
1010
|
|
1010
1011
|
##
|
@@ -1012,12 +1013,12 @@ module Google
|
|
1012
1013
|
#
|
1013
1014
|
# @overload update_table_spec(request, options = nil)
|
1014
1015
|
# Pass arguments to `update_table_spec` via a request object, either of type
|
1015
|
-
# {Google::Cloud::AutoML::V1beta1::UpdateTableSpecRequest} or an equivalent Hash.
|
1016
|
+
# {::Google::Cloud::AutoML::V1beta1::UpdateTableSpecRequest} or an equivalent Hash.
|
1016
1017
|
#
|
1017
|
-
# @param request [Google::Cloud::AutoML::V1beta1::UpdateTableSpecRequest, Hash]
|
1018
|
+
# @param request [::Google::Cloud::AutoML::V1beta1::UpdateTableSpecRequest, ::Hash]
|
1018
1019
|
# A request object representing the call parameters. Required. To specify no
|
1019
1020
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1020
|
-
# @param options [Gapic::CallOptions, Hash]
|
1021
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1021
1022
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1022
1023
|
#
|
1023
1024
|
# @overload update_table_spec(table_spec: nil, update_mask: nil)
|
@@ -1025,32 +1026,32 @@ module Google
|
|
1025
1026
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1026
1027
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1027
1028
|
#
|
1028
|
-
# @param table_spec [Google::Cloud::AutoML::V1beta1::TableSpec, Hash]
|
1029
|
+
# @param table_spec [::Google::Cloud::AutoML::V1beta1::TableSpec, ::Hash]
|
1029
1030
|
# Required. The table spec which replaces the resource on the server.
|
1030
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
1031
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1031
1032
|
# The update mask applies to the resource.
|
1032
1033
|
#
|
1033
1034
|
# @yield [response, operation] Access the result along with the RPC operation
|
1034
|
-
# @yieldparam response [Google::Cloud::AutoML::V1beta1::TableSpec]
|
1035
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1035
|
+
# @yieldparam response [::Google::Cloud::AutoML::V1beta1::TableSpec]
|
1036
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1036
1037
|
#
|
1037
|
-
# @return [Google::Cloud::AutoML::V1beta1::TableSpec]
|
1038
|
+
# @return [::Google::Cloud::AutoML::V1beta1::TableSpec]
|
1038
1039
|
#
|
1039
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1040
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1040
1041
|
#
|
1041
1042
|
def update_table_spec request, options = nil
|
1042
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1043
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1043
1044
|
|
1044
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1beta1::UpdateTableSpecRequest
|
1045
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1beta1::UpdateTableSpecRequest
|
1045
1046
|
|
1046
1047
|
# Converts hash and nil to an options object
|
1047
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1048
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1048
1049
|
|
1049
1050
|
# Customize the options with defaults
|
1050
1051
|
metadata = @config.rpcs.update_table_spec.metadata.to_h
|
1051
1052
|
|
1052
1053
|
# Set x-goog-api-client and x-goog-user-project headers
|
1053
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1054
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1054
1055
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1055
1056
|
gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
|
1056
1057
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1071,8 +1072,8 @@ module Google
|
|
1071
1072
|
yield response, operation if block_given?
|
1072
1073
|
return response
|
1073
1074
|
end
|
1074
|
-
rescue GRPC::BadStatus => e
|
1075
|
-
raise Google::Cloud::Error.from_error(e)
|
1075
|
+
rescue ::GRPC::BadStatus => e
|
1076
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1076
1077
|
end
|
1077
1078
|
|
1078
1079
|
##
|
@@ -1080,12 +1081,12 @@ module Google
|
|
1080
1081
|
#
|
1081
1082
|
# @overload get_column_spec(request, options = nil)
|
1082
1083
|
# Pass arguments to `get_column_spec` via a request object, either of type
|
1083
|
-
# {Google::Cloud::AutoML::V1beta1::GetColumnSpecRequest} or an equivalent Hash.
|
1084
|
+
# {::Google::Cloud::AutoML::V1beta1::GetColumnSpecRequest} or an equivalent Hash.
|
1084
1085
|
#
|
1085
|
-
# @param request [Google::Cloud::AutoML::V1beta1::GetColumnSpecRequest, Hash]
|
1086
|
+
# @param request [::Google::Cloud::AutoML::V1beta1::GetColumnSpecRequest, ::Hash]
|
1086
1087
|
# A request object representing the call parameters. Required. To specify no
|
1087
1088
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1088
|
-
# @param options [Gapic::CallOptions, Hash]
|
1089
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1089
1090
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1090
1091
|
#
|
1091
1092
|
# @overload get_column_spec(name: nil, field_mask: nil)
|
@@ -1093,32 +1094,32 @@ module Google
|
|
1093
1094
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1094
1095
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1095
1096
|
#
|
1096
|
-
# @param name [String]
|
1097
|
+
# @param name [::String]
|
1097
1098
|
# Required. The resource name of the column spec to retrieve.
|
1098
|
-
# @param field_mask [Google::Protobuf::FieldMask, Hash]
|
1099
|
+
# @param field_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1099
1100
|
# Mask specifying which fields to read.
|
1100
1101
|
#
|
1101
1102
|
# @yield [response, operation] Access the result along with the RPC operation
|
1102
|
-
# @yieldparam response [Google::Cloud::AutoML::V1beta1::ColumnSpec]
|
1103
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1103
|
+
# @yieldparam response [::Google::Cloud::AutoML::V1beta1::ColumnSpec]
|
1104
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1104
1105
|
#
|
1105
|
-
# @return [Google::Cloud::AutoML::V1beta1::ColumnSpec]
|
1106
|
+
# @return [::Google::Cloud::AutoML::V1beta1::ColumnSpec]
|
1106
1107
|
#
|
1107
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1108
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1108
1109
|
#
|
1109
1110
|
def get_column_spec request, options = nil
|
1110
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1111
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1111
1112
|
|
1112
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1beta1::GetColumnSpecRequest
|
1113
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1beta1::GetColumnSpecRequest
|
1113
1114
|
|
1114
1115
|
# Converts hash and nil to an options object
|
1115
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1116
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1116
1117
|
|
1117
1118
|
# Customize the options with defaults
|
1118
1119
|
metadata = @config.rpcs.get_column_spec.metadata.to_h
|
1119
1120
|
|
1120
1121
|
# Set x-goog-api-client and x-goog-user-project headers
|
1121
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1122
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1122
1123
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1123
1124
|
gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
|
1124
1125
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1139,8 +1140,8 @@ module Google
|
|
1139
1140
|
yield response, operation if block_given?
|
1140
1141
|
return response
|
1141
1142
|
end
|
1142
|
-
rescue GRPC::BadStatus => e
|
1143
|
-
raise Google::Cloud::Error.from_error(e)
|
1143
|
+
rescue ::GRPC::BadStatus => e
|
1144
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1144
1145
|
end
|
1145
1146
|
|
1146
1147
|
##
|
@@ -1148,12 +1149,12 @@ module Google
|
|
1148
1149
|
#
|
1149
1150
|
# @overload list_column_specs(request, options = nil)
|
1150
1151
|
# Pass arguments to `list_column_specs` via a request object, either of type
|
1151
|
-
# {Google::Cloud::AutoML::V1beta1::ListColumnSpecsRequest} or an equivalent Hash.
|
1152
|
+
# {::Google::Cloud::AutoML::V1beta1::ListColumnSpecsRequest} or an equivalent Hash.
|
1152
1153
|
#
|
1153
|
-
# @param request [Google::Cloud::AutoML::V1beta1::ListColumnSpecsRequest, Hash]
|
1154
|
+
# @param request [::Google::Cloud::AutoML::V1beta1::ListColumnSpecsRequest, ::Hash]
|
1154
1155
|
# A request object representing the call parameters. Required. To specify no
|
1155
1156
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1156
|
-
# @param options [Gapic::CallOptions, Hash]
|
1157
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1157
1158
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1158
1159
|
#
|
1159
1160
|
# @overload list_column_specs(parent: nil, field_mask: nil, filter: nil, page_size: nil, page_token: nil)
|
@@ -1161,42 +1162,42 @@ module Google
|
|
1161
1162
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1162
1163
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1163
1164
|
#
|
1164
|
-
# @param parent [String]
|
1165
|
+
# @param parent [::String]
|
1165
1166
|
# Required. The resource name of the table spec to list column specs from.
|
1166
|
-
# @param field_mask [Google::Protobuf::FieldMask, Hash]
|
1167
|
+
# @param field_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1167
1168
|
# Mask specifying which fields to read.
|
1168
|
-
# @param filter [String]
|
1169
|
+
# @param filter [::String]
|
1169
1170
|
# Filter expression, see go/filtering.
|
1170
|
-
# @param page_size [Integer]
|
1171
|
+
# @param page_size [::Integer]
|
1171
1172
|
# Requested page size. The server can return fewer results than requested.
|
1172
1173
|
# If unspecified, the server will pick a default size.
|
1173
|
-
# @param page_token [String]
|
1174
|
+
# @param page_token [::String]
|
1174
1175
|
# A token identifying a page of results for the server to return.
|
1175
1176
|
# Typically obtained from the
|
1176
|
-
# {Google::Cloud::AutoML::V1beta1::ListColumnSpecsResponse#next_page_token ListColumnSpecsResponse.next_page_token} field of the previous
|
1177
|
-
# {Google::Cloud::AutoML::V1beta1::AutoML::Client#list_column_specs AutoMl.ListColumnSpecs} call.
|
1177
|
+
# {::Google::Cloud::AutoML::V1beta1::ListColumnSpecsResponse#next_page_token ListColumnSpecsResponse.next_page_token} field of the previous
|
1178
|
+
# {::Google::Cloud::AutoML::V1beta1::AutoML::Client#list_column_specs AutoMl.ListColumnSpecs} call.
|
1178
1179
|
#
|
1179
1180
|
# @yield [response, operation] Access the result along with the RPC operation
|
1180
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
1181
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1181
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AutoML::V1beta1::ColumnSpec>]
|
1182
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1182
1183
|
#
|
1183
|
-
# @return [Gapic::PagedEnumerable
|
1184
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::AutoML::V1beta1::ColumnSpec>]
|
1184
1185
|
#
|
1185
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1186
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1186
1187
|
#
|
1187
1188
|
def list_column_specs request, options = nil
|
1188
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1189
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1189
1190
|
|
1190
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1beta1::ListColumnSpecsRequest
|
1191
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1beta1::ListColumnSpecsRequest
|
1191
1192
|
|
1192
1193
|
# Converts hash and nil to an options object
|
1193
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1194
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1194
1195
|
|
1195
1196
|
# Customize the options with defaults
|
1196
1197
|
metadata = @config.rpcs.list_column_specs.metadata.to_h
|
1197
1198
|
|
1198
1199
|
# Set x-goog-api-client and x-goog-user-project headers
|
1199
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1200
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1200
1201
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1201
1202
|
gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
|
1202
1203
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1214,12 +1215,12 @@ module Google
|
|
1214
1215
|
retry_policy: @config.retry_policy
|
1215
1216
|
|
1216
1217
|
@auto_ml_stub.call_rpc :list_column_specs, request, options: options do |response, operation|
|
1217
|
-
response = Gapic::PagedEnumerable.new @auto_ml_stub, :list_column_specs, request, response, operation, options
|
1218
|
+
response = ::Gapic::PagedEnumerable.new @auto_ml_stub, :list_column_specs, request, response, operation, options
|
1218
1219
|
yield response, operation if block_given?
|
1219
1220
|
return response
|
1220
1221
|
end
|
1221
|
-
rescue GRPC::BadStatus => e
|
1222
|
-
raise Google::Cloud::Error.from_error(e)
|
1222
|
+
rescue ::GRPC::BadStatus => e
|
1223
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1223
1224
|
end
|
1224
1225
|
|
1225
1226
|
##
|
@@ -1227,12 +1228,12 @@ module Google
|
|
1227
1228
|
#
|
1228
1229
|
# @overload update_column_spec(request, options = nil)
|
1229
1230
|
# Pass arguments to `update_column_spec` via a request object, either of type
|
1230
|
-
# {Google::Cloud::AutoML::V1beta1::UpdateColumnSpecRequest} or an equivalent Hash.
|
1231
|
+
# {::Google::Cloud::AutoML::V1beta1::UpdateColumnSpecRequest} or an equivalent Hash.
|
1231
1232
|
#
|
1232
|
-
# @param request [Google::Cloud::AutoML::V1beta1::UpdateColumnSpecRequest, Hash]
|
1233
|
+
# @param request [::Google::Cloud::AutoML::V1beta1::UpdateColumnSpecRequest, ::Hash]
|
1233
1234
|
# A request object representing the call parameters. Required. To specify no
|
1234
1235
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1235
|
-
# @param options [Gapic::CallOptions, Hash]
|
1236
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1236
1237
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1237
1238
|
#
|
1238
1239
|
# @overload update_column_spec(column_spec: nil, update_mask: nil)
|
@@ -1240,32 +1241,32 @@ module Google
|
|
1240
1241
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1241
1242
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1242
1243
|
#
|
1243
|
-
# @param column_spec [Google::Cloud::AutoML::V1beta1::ColumnSpec, Hash]
|
1244
|
+
# @param column_spec [::Google::Cloud::AutoML::V1beta1::ColumnSpec, ::Hash]
|
1244
1245
|
# Required. The column spec which replaces the resource on the server.
|
1245
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
1246
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1246
1247
|
# The update mask applies to the resource.
|
1247
1248
|
#
|
1248
1249
|
# @yield [response, operation] Access the result along with the RPC operation
|
1249
|
-
# @yieldparam response [Google::Cloud::AutoML::V1beta1::ColumnSpec]
|
1250
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1250
|
+
# @yieldparam response [::Google::Cloud::AutoML::V1beta1::ColumnSpec]
|
1251
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1251
1252
|
#
|
1252
|
-
# @return [Google::Cloud::AutoML::V1beta1::ColumnSpec]
|
1253
|
+
# @return [::Google::Cloud::AutoML::V1beta1::ColumnSpec]
|
1253
1254
|
#
|
1254
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1255
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1255
1256
|
#
|
1256
1257
|
def update_column_spec request, options = nil
|
1257
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1258
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1258
1259
|
|
1259
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1beta1::UpdateColumnSpecRequest
|
1260
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1beta1::UpdateColumnSpecRequest
|
1260
1261
|
|
1261
1262
|
# Converts hash and nil to an options object
|
1262
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1263
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1263
1264
|
|
1264
1265
|
# Customize the options with defaults
|
1265
1266
|
metadata = @config.rpcs.update_column_spec.metadata.to_h
|
1266
1267
|
|
1267
1268
|
# Set x-goog-api-client and x-goog-user-project headers
|
1268
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1269
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1269
1270
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1270
1271
|
gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
|
1271
1272
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1286,25 +1287,25 @@ module Google
|
|
1286
1287
|
yield response, operation if block_given?
|
1287
1288
|
return response
|
1288
1289
|
end
|
1289
|
-
rescue GRPC::BadStatus => e
|
1290
|
-
raise Google::Cloud::Error.from_error(e)
|
1290
|
+
rescue ::GRPC::BadStatus => e
|
1291
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1291
1292
|
end
|
1292
1293
|
|
1293
1294
|
##
|
1294
1295
|
# Creates a model.
|
1295
|
-
# Returns a Model in the {Google::Longrunning::Operation#response response}
|
1296
|
+
# Returns a Model in the {::Google::Longrunning::Operation#response response}
|
1296
1297
|
# field when it completes.
|
1297
1298
|
# When you create a model, several model evaluations are created for it:
|
1298
1299
|
# a global evaluation, and one evaluation for each annotation spec.
|
1299
1300
|
#
|
1300
1301
|
# @overload create_model(request, options = nil)
|
1301
1302
|
# Pass arguments to `create_model` via a request object, either of type
|
1302
|
-
# {Google::Cloud::AutoML::V1beta1::CreateModelRequest} or an equivalent Hash.
|
1303
|
+
# {::Google::Cloud::AutoML::V1beta1::CreateModelRequest} or an equivalent Hash.
|
1303
1304
|
#
|
1304
|
-
# @param request [Google::Cloud::AutoML::V1beta1::CreateModelRequest, Hash]
|
1305
|
+
# @param request [::Google::Cloud::AutoML::V1beta1::CreateModelRequest, ::Hash]
|
1305
1306
|
# A request object representing the call parameters. Required. To specify no
|
1306
1307
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1307
|
-
# @param options [Gapic::CallOptions, Hash]
|
1308
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1308
1309
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1309
1310
|
#
|
1310
1311
|
# @overload create_model(parent: nil, model: nil)
|
@@ -1312,32 +1313,32 @@ module Google
|
|
1312
1313
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1313
1314
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1314
1315
|
#
|
1315
|
-
# @param parent [String]
|
1316
|
+
# @param parent [::String]
|
1316
1317
|
# Required. Resource name of the parent project where the model is being created.
|
1317
|
-
# @param model [Google::Cloud::AutoML::V1beta1::Model, Hash]
|
1318
|
+
# @param model [::Google::Cloud::AutoML::V1beta1::Model, ::Hash]
|
1318
1319
|
# Required. The model to create.
|
1319
1320
|
#
|
1320
1321
|
# @yield [response, operation] Access the result along with the RPC operation
|
1321
|
-
# @yieldparam response [Gapic::Operation]
|
1322
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1322
|
+
# @yieldparam response [::Gapic::Operation]
|
1323
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1323
1324
|
#
|
1324
|
-
# @return [Gapic::Operation]
|
1325
|
+
# @return [::Gapic::Operation]
|
1325
1326
|
#
|
1326
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1327
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1327
1328
|
#
|
1328
1329
|
def create_model request, options = nil
|
1329
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1330
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1330
1331
|
|
1331
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1beta1::CreateModelRequest
|
1332
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1beta1::CreateModelRequest
|
1332
1333
|
|
1333
1334
|
# Converts hash and nil to an options object
|
1334
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1335
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1335
1336
|
|
1336
1337
|
# Customize the options with defaults
|
1337
1338
|
metadata = @config.rpcs.create_model.metadata.to_h
|
1338
1339
|
|
1339
1340
|
# Set x-goog-api-client and x-goog-user-project headers
|
1340
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1341
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1341
1342
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1342
1343
|
gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
|
1343
1344
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1355,12 +1356,12 @@ module Google
|
|
1355
1356
|
retry_policy: @config.retry_policy
|
1356
1357
|
|
1357
1358
|
@auto_ml_stub.call_rpc :create_model, request, options: options do |response, operation|
|
1358
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
1359
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1359
1360
|
yield response, operation if block_given?
|
1360
1361
|
return response
|
1361
1362
|
end
|
1362
|
-
rescue GRPC::BadStatus => e
|
1363
|
-
raise Google::Cloud::Error.from_error(e)
|
1363
|
+
rescue ::GRPC::BadStatus => e
|
1364
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1364
1365
|
end
|
1365
1366
|
|
1366
1367
|
##
|
@@ -1368,12 +1369,12 @@ module Google
|
|
1368
1369
|
#
|
1369
1370
|
# @overload get_model(request, options = nil)
|
1370
1371
|
# Pass arguments to `get_model` via a request object, either of type
|
1371
|
-
# {Google::Cloud::AutoML::V1beta1::GetModelRequest} or an equivalent Hash.
|
1372
|
+
# {::Google::Cloud::AutoML::V1beta1::GetModelRequest} or an equivalent Hash.
|
1372
1373
|
#
|
1373
|
-
# @param request [Google::Cloud::AutoML::V1beta1::GetModelRequest, Hash]
|
1374
|
+
# @param request [::Google::Cloud::AutoML::V1beta1::GetModelRequest, ::Hash]
|
1374
1375
|
# A request object representing the call parameters. Required. To specify no
|
1375
1376
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1376
|
-
# @param options [Gapic::CallOptions, Hash]
|
1377
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1377
1378
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1378
1379
|
#
|
1379
1380
|
# @overload get_model(name: nil)
|
@@ -1381,30 +1382,30 @@ module Google
|
|
1381
1382
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1382
1383
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1383
1384
|
#
|
1384
|
-
# @param name [String]
|
1385
|
+
# @param name [::String]
|
1385
1386
|
# Required. Resource name of the model.
|
1386
1387
|
#
|
1387
1388
|
# @yield [response, operation] Access the result along with the RPC operation
|
1388
|
-
# @yieldparam response [Google::Cloud::AutoML::V1beta1::Model]
|
1389
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1389
|
+
# @yieldparam response [::Google::Cloud::AutoML::V1beta1::Model]
|
1390
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1390
1391
|
#
|
1391
|
-
# @return [Google::Cloud::AutoML::V1beta1::Model]
|
1392
|
+
# @return [::Google::Cloud::AutoML::V1beta1::Model]
|
1392
1393
|
#
|
1393
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1394
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1394
1395
|
#
|
1395
1396
|
def get_model request, options = nil
|
1396
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1397
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1397
1398
|
|
1398
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1beta1::GetModelRequest
|
1399
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1beta1::GetModelRequest
|
1399
1400
|
|
1400
1401
|
# Converts hash and nil to an options object
|
1401
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1402
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1402
1403
|
|
1403
1404
|
# Customize the options with defaults
|
1404
1405
|
metadata = @config.rpcs.get_model.metadata.to_h
|
1405
1406
|
|
1406
1407
|
# Set x-goog-api-client and x-goog-user-project headers
|
1407
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1408
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1408
1409
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1409
1410
|
gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
|
1410
1411
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1425,8 +1426,8 @@ module Google
|
|
1425
1426
|
yield response, operation if block_given?
|
1426
1427
|
return response
|
1427
1428
|
end
|
1428
|
-
rescue GRPC::BadStatus => e
|
1429
|
-
raise Google::Cloud::Error.from_error(e)
|
1429
|
+
rescue ::GRPC::BadStatus => e
|
1430
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1430
1431
|
end
|
1431
1432
|
|
1432
1433
|
##
|
@@ -1434,12 +1435,12 @@ module Google
|
|
1434
1435
|
#
|
1435
1436
|
# @overload list_models(request, options = nil)
|
1436
1437
|
# Pass arguments to `list_models` via a request object, either of type
|
1437
|
-
# {Google::Cloud::AutoML::V1beta1::ListModelsRequest} or an equivalent Hash.
|
1438
|
+
# {::Google::Cloud::AutoML::V1beta1::ListModelsRequest} or an equivalent Hash.
|
1438
1439
|
#
|
1439
|
-
# @param request [Google::Cloud::AutoML::V1beta1::ListModelsRequest, Hash]
|
1440
|
+
# @param request [::Google::Cloud::AutoML::V1beta1::ListModelsRequest, ::Hash]
|
1440
1441
|
# A request object representing the call parameters. Required. To specify no
|
1441
1442
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1442
|
-
# @param options [Gapic::CallOptions, Hash]
|
1443
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1443
1444
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1444
1445
|
#
|
1445
1446
|
# @overload list_models(parent: nil, filter: nil, page_size: nil, page_token: nil)
|
@@ -1447,9 +1448,9 @@ module Google
|
|
1447
1448
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1448
1449
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1449
1450
|
#
|
1450
|
-
# @param parent [String]
|
1451
|
+
# @param parent [::String]
|
1451
1452
|
# Required. Resource name of the project, from which to list the models.
|
1452
|
-
# @param filter [String]
|
1453
|
+
# @param filter [::String]
|
1453
1454
|
# An expression for filtering the results of the request.
|
1454
1455
|
#
|
1455
1456
|
# * `model_metadata` - for existence of the case (e.g.
|
@@ -1459,35 +1460,35 @@ module Google
|
|
1459
1460
|
# * `image_classification_model_metadata:*` --> The model has
|
1460
1461
|
# image_classification_model_metadata.
|
1461
1462
|
# * `dataset_id=5` --> The model was created from a dataset with ID 5.
|
1462
|
-
# @param page_size [Integer]
|
1463
|
+
# @param page_size [::Integer]
|
1463
1464
|
# Requested page size.
|
1464
|
-
# @param page_token [String]
|
1465
|
+
# @param page_token [::String]
|
1465
1466
|
# A token identifying a page of results for the server to return
|
1466
1467
|
# Typically obtained via
|
1467
|
-
# {Google::Cloud::AutoML::V1beta1::ListModelsResponse#next_page_token ListModelsResponse.next_page_token} of the previous
|
1468
|
-
# {Google::Cloud::AutoML::V1beta1::AutoML::Client#list_models AutoMl.ListModels} call.
|
1468
|
+
# {::Google::Cloud::AutoML::V1beta1::ListModelsResponse#next_page_token ListModelsResponse.next_page_token} of the previous
|
1469
|
+
# {::Google::Cloud::AutoML::V1beta1::AutoML::Client#list_models AutoMl.ListModels} call.
|
1469
1470
|
#
|
1470
1471
|
# @yield [response, operation] Access the result along with the RPC operation
|
1471
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
1472
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1472
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AutoML::V1beta1::Model>]
|
1473
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1473
1474
|
#
|
1474
|
-
# @return [Gapic::PagedEnumerable
|
1475
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::AutoML::V1beta1::Model>]
|
1475
1476
|
#
|
1476
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1477
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1477
1478
|
#
|
1478
1479
|
def list_models request, options = nil
|
1479
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1480
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1480
1481
|
|
1481
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1beta1::ListModelsRequest
|
1482
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1beta1::ListModelsRequest
|
1482
1483
|
|
1483
1484
|
# Converts hash and nil to an options object
|
1484
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1485
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1485
1486
|
|
1486
1487
|
# Customize the options with defaults
|
1487
1488
|
metadata = @config.rpcs.list_models.metadata.to_h
|
1488
1489
|
|
1489
1490
|
# Set x-goog-api-client and x-goog-user-project headers
|
1490
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1491
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1491
1492
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1492
1493
|
gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
|
1493
1494
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1505,29 +1506,29 @@ module Google
|
|
1505
1506
|
retry_policy: @config.retry_policy
|
1506
1507
|
|
1507
1508
|
@auto_ml_stub.call_rpc :list_models, request, options: options do |response, operation|
|
1508
|
-
response = Gapic::PagedEnumerable.new @auto_ml_stub, :list_models, request, response, operation, options
|
1509
|
+
response = ::Gapic::PagedEnumerable.new @auto_ml_stub, :list_models, request, response, operation, options
|
1509
1510
|
yield response, operation if block_given?
|
1510
1511
|
return response
|
1511
1512
|
end
|
1512
|
-
rescue GRPC::BadStatus => e
|
1513
|
-
raise Google::Cloud::Error.from_error(e)
|
1513
|
+
rescue ::GRPC::BadStatus => e
|
1514
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1514
1515
|
end
|
1515
1516
|
|
1516
1517
|
##
|
1517
1518
|
# Deletes a model.
|
1518
1519
|
# Returns `google.protobuf.Empty` in the
|
1519
|
-
# {Google::Longrunning::Operation#response response} field when it completes,
|
1520
|
+
# {::Google::Longrunning::Operation#response response} field when it completes,
|
1520
1521
|
# and `delete_details` in the
|
1521
|
-
# {Google::Longrunning::Operation#metadata metadata} field.
|
1522
|
+
# {::Google::Longrunning::Operation#metadata metadata} field.
|
1522
1523
|
#
|
1523
1524
|
# @overload delete_model(request, options = nil)
|
1524
1525
|
# Pass arguments to `delete_model` via a request object, either of type
|
1525
|
-
# {Google::Cloud::AutoML::V1beta1::DeleteModelRequest} or an equivalent Hash.
|
1526
|
+
# {::Google::Cloud::AutoML::V1beta1::DeleteModelRequest} or an equivalent Hash.
|
1526
1527
|
#
|
1527
|
-
# @param request [Google::Cloud::AutoML::V1beta1::DeleteModelRequest, Hash]
|
1528
|
+
# @param request [::Google::Cloud::AutoML::V1beta1::DeleteModelRequest, ::Hash]
|
1528
1529
|
# A request object representing the call parameters. Required. To specify no
|
1529
1530
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1530
|
-
# @param options [Gapic::CallOptions, Hash]
|
1531
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1531
1532
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1532
1533
|
#
|
1533
1534
|
# @overload delete_model(name: nil)
|
@@ -1535,30 +1536,30 @@ module Google
|
|
1535
1536
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1536
1537
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1537
1538
|
#
|
1538
|
-
# @param name [String]
|
1539
|
+
# @param name [::String]
|
1539
1540
|
# Required. Resource name of the model being deleted.
|
1540
1541
|
#
|
1541
1542
|
# @yield [response, operation] Access the result along with the RPC operation
|
1542
|
-
# @yieldparam response [Gapic::Operation]
|
1543
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1543
|
+
# @yieldparam response [::Gapic::Operation]
|
1544
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1544
1545
|
#
|
1545
|
-
# @return [Gapic::Operation]
|
1546
|
+
# @return [::Gapic::Operation]
|
1546
1547
|
#
|
1547
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1548
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1548
1549
|
#
|
1549
1550
|
def delete_model request, options = nil
|
1550
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1551
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1551
1552
|
|
1552
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1beta1::DeleteModelRequest
|
1553
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1beta1::DeleteModelRequest
|
1553
1554
|
|
1554
1555
|
# Converts hash and nil to an options object
|
1555
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1556
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1556
1557
|
|
1557
1558
|
# Customize the options with defaults
|
1558
1559
|
metadata = @config.rpcs.delete_model.metadata.to_h
|
1559
1560
|
|
1560
1561
|
# Set x-goog-api-client and x-goog-user-project headers
|
1561
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1562
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1562
1563
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1563
1564
|
gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
|
1564
1565
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1576,12 +1577,12 @@ module Google
|
|
1576
1577
|
retry_policy: @config.retry_policy
|
1577
1578
|
|
1578
1579
|
@auto_ml_stub.call_rpc :delete_model, request, options: options do |response, operation|
|
1579
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
1580
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1580
1581
|
yield response, operation if block_given?
|
1581
1582
|
return response
|
1582
1583
|
end
|
1583
|
-
rescue GRPC::BadStatus => e
|
1584
|
-
raise Google::Cloud::Error.from_error(e)
|
1584
|
+
rescue ::GRPC::BadStatus => e
|
1585
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1585
1586
|
end
|
1586
1587
|
|
1587
1588
|
##
|
@@ -1596,16 +1597,16 @@ module Google
|
|
1596
1597
|
# deployment automatically.
|
1597
1598
|
#
|
1598
1599
|
# Returns an empty response in the
|
1599
|
-
# {Google::Longrunning::Operation#response response} field when it completes.
|
1600
|
+
# {::Google::Longrunning::Operation#response response} field when it completes.
|
1600
1601
|
#
|
1601
1602
|
# @overload deploy_model(request, options = nil)
|
1602
1603
|
# Pass arguments to `deploy_model` via a request object, either of type
|
1603
|
-
# {Google::Cloud::AutoML::V1beta1::DeployModelRequest} or an equivalent Hash.
|
1604
|
+
# {::Google::Cloud::AutoML::V1beta1::DeployModelRequest} or an equivalent Hash.
|
1604
1605
|
#
|
1605
|
-
# @param request [Google::Cloud::AutoML::V1beta1::DeployModelRequest, Hash]
|
1606
|
+
# @param request [::Google::Cloud::AutoML::V1beta1::DeployModelRequest, ::Hash]
|
1606
1607
|
# A request object representing the call parameters. Required. To specify no
|
1607
1608
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1608
|
-
# @param options [Gapic::CallOptions, Hash]
|
1609
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1609
1610
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1610
1611
|
#
|
1611
1612
|
# @overload deploy_model(image_object_detection_model_deployment_metadata: nil, image_classification_model_deployment_metadata: nil, name: nil)
|
@@ -1613,34 +1614,34 @@ module Google
|
|
1613
1614
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1614
1615
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1615
1616
|
#
|
1616
|
-
# @param image_object_detection_model_deployment_metadata [Google::Cloud::AutoML::V1beta1::ImageObjectDetectionModelDeploymentMetadata, Hash]
|
1617
|
+
# @param image_object_detection_model_deployment_metadata [::Google::Cloud::AutoML::V1beta1::ImageObjectDetectionModelDeploymentMetadata, ::Hash]
|
1617
1618
|
# Model deployment metadata specific to Image Object Detection.
|
1618
|
-
# @param image_classification_model_deployment_metadata [Google::Cloud::AutoML::V1beta1::ImageClassificationModelDeploymentMetadata, Hash]
|
1619
|
+
# @param image_classification_model_deployment_metadata [::Google::Cloud::AutoML::V1beta1::ImageClassificationModelDeploymentMetadata, ::Hash]
|
1619
1620
|
# Model deployment metadata specific to Image Classification.
|
1620
|
-
# @param name [String]
|
1621
|
+
# @param name [::String]
|
1621
1622
|
# Required. Resource name of the model to deploy.
|
1622
1623
|
#
|
1623
1624
|
# @yield [response, operation] Access the result along with the RPC operation
|
1624
|
-
# @yieldparam response [Gapic::Operation]
|
1625
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1625
|
+
# @yieldparam response [::Gapic::Operation]
|
1626
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1626
1627
|
#
|
1627
|
-
# @return [Gapic::Operation]
|
1628
|
+
# @return [::Gapic::Operation]
|
1628
1629
|
#
|
1629
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1630
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1630
1631
|
#
|
1631
1632
|
def deploy_model request, options = nil
|
1632
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1633
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1633
1634
|
|
1634
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1beta1::DeployModelRequest
|
1635
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1beta1::DeployModelRequest
|
1635
1636
|
|
1636
1637
|
# Converts hash and nil to an options object
|
1637
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1638
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1638
1639
|
|
1639
1640
|
# Customize the options with defaults
|
1640
1641
|
metadata = @config.rpcs.deploy_model.metadata.to_h
|
1641
1642
|
|
1642
1643
|
# Set x-goog-api-client and x-goog-user-project headers
|
1643
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1644
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1644
1645
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1645
1646
|
gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
|
1646
1647
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1658,12 +1659,12 @@ module Google
|
|
1658
1659
|
retry_policy: @config.retry_policy
|
1659
1660
|
|
1660
1661
|
@auto_ml_stub.call_rpc :deploy_model, request, options: options do |response, operation|
|
1661
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
1662
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1662
1663
|
yield response, operation if block_given?
|
1663
1664
|
return response
|
1664
1665
|
end
|
1665
|
-
rescue GRPC::BadStatus => e
|
1666
|
-
raise Google::Cloud::Error.from_error(e)
|
1666
|
+
rescue ::GRPC::BadStatus => e
|
1667
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1667
1668
|
end
|
1668
1669
|
|
1669
1670
|
##
|
@@ -1673,16 +1674,16 @@ module Google
|
|
1673
1674
|
# all other domains manage deployment automatically.
|
1674
1675
|
#
|
1675
1676
|
# Returns an empty response in the
|
1676
|
-
# {Google::Longrunning::Operation#response response} field when it completes.
|
1677
|
+
# {::Google::Longrunning::Operation#response response} field when it completes.
|
1677
1678
|
#
|
1678
1679
|
# @overload undeploy_model(request, options = nil)
|
1679
1680
|
# Pass arguments to `undeploy_model` via a request object, either of type
|
1680
|
-
# {Google::Cloud::AutoML::V1beta1::UndeployModelRequest} or an equivalent Hash.
|
1681
|
+
# {::Google::Cloud::AutoML::V1beta1::UndeployModelRequest} or an equivalent Hash.
|
1681
1682
|
#
|
1682
|
-
# @param request [Google::Cloud::AutoML::V1beta1::UndeployModelRequest, Hash]
|
1683
|
+
# @param request [::Google::Cloud::AutoML::V1beta1::UndeployModelRequest, ::Hash]
|
1683
1684
|
# A request object representing the call parameters. Required. To specify no
|
1684
1685
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1685
|
-
# @param options [Gapic::CallOptions, Hash]
|
1686
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1686
1687
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1687
1688
|
#
|
1688
1689
|
# @overload undeploy_model(name: nil)
|
@@ -1690,30 +1691,30 @@ module Google
|
|
1690
1691
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1691
1692
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1692
1693
|
#
|
1693
|
-
# @param name [String]
|
1694
|
+
# @param name [::String]
|
1694
1695
|
# Required. Resource name of the model to undeploy.
|
1695
1696
|
#
|
1696
1697
|
# @yield [response, operation] Access the result along with the RPC operation
|
1697
|
-
# @yieldparam response [Gapic::Operation]
|
1698
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1698
|
+
# @yieldparam response [::Gapic::Operation]
|
1699
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1699
1700
|
#
|
1700
|
-
# @return [Gapic::Operation]
|
1701
|
+
# @return [::Gapic::Operation]
|
1701
1702
|
#
|
1702
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1703
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1703
1704
|
#
|
1704
1705
|
def undeploy_model request, options = nil
|
1705
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1706
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1706
1707
|
|
1707
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1beta1::UndeployModelRequest
|
1708
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1beta1::UndeployModelRequest
|
1708
1709
|
|
1709
1710
|
# Converts hash and nil to an options object
|
1710
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1711
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1711
1712
|
|
1712
1713
|
# Customize the options with defaults
|
1713
1714
|
metadata = @config.rpcs.undeploy_model.metadata.to_h
|
1714
1715
|
|
1715
1716
|
# Set x-goog-api-client and x-goog-user-project headers
|
1716
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1717
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1717
1718
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1718
1719
|
gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
|
1719
1720
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1731,12 +1732,12 @@ module Google
|
|
1731
1732
|
retry_policy: @config.retry_policy
|
1732
1733
|
|
1733
1734
|
@auto_ml_stub.call_rpc :undeploy_model, request, options: options do |response, operation|
|
1734
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
1735
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1735
1736
|
yield response, operation if block_given?
|
1736
1737
|
return response
|
1737
1738
|
end
|
1738
|
-
rescue GRPC::BadStatus => e
|
1739
|
-
raise Google::Cloud::Error.from_error(e)
|
1739
|
+
rescue ::GRPC::BadStatus => e
|
1740
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1740
1741
|
end
|
1741
1742
|
|
1742
1743
|
##
|
@@ -1744,19 +1745,19 @@ module Google
|
|
1744
1745
|
# Storage location. A model is considered export-able if and only if it has
|
1745
1746
|
# an export format defined for it in
|
1746
1747
|
#
|
1747
|
-
# {Google::Cloud::AutoML::V1beta1::ModelExportOutputConfig ModelExportOutputConfig}.
|
1748
|
+
# {::Google::Cloud::AutoML::V1beta1::ModelExportOutputConfig ModelExportOutputConfig}.
|
1748
1749
|
#
|
1749
1750
|
# Returns an empty response in the
|
1750
|
-
# {Google::Longrunning::Operation#response response} field when it completes.
|
1751
|
+
# {::Google::Longrunning::Operation#response response} field when it completes.
|
1751
1752
|
#
|
1752
1753
|
# @overload export_model(request, options = nil)
|
1753
1754
|
# Pass arguments to `export_model` via a request object, either of type
|
1754
|
-
# {Google::Cloud::AutoML::V1beta1::ExportModelRequest} or an equivalent Hash.
|
1755
|
+
# {::Google::Cloud::AutoML::V1beta1::ExportModelRequest} or an equivalent Hash.
|
1755
1756
|
#
|
1756
|
-
# @param request [Google::Cloud::AutoML::V1beta1::ExportModelRequest, Hash]
|
1757
|
+
# @param request [::Google::Cloud::AutoML::V1beta1::ExportModelRequest, ::Hash]
|
1757
1758
|
# A request object representing the call parameters. Required. To specify no
|
1758
1759
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1759
|
-
# @param options [Gapic::CallOptions, Hash]
|
1760
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1760
1761
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1761
1762
|
#
|
1762
1763
|
# @overload export_model(name: nil, output_config: nil)
|
@@ -1764,32 +1765,32 @@ module Google
|
|
1764
1765
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1765
1766
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1766
1767
|
#
|
1767
|
-
# @param name [String]
|
1768
|
+
# @param name [::String]
|
1768
1769
|
# Required. The resource name of the model to export.
|
1769
|
-
# @param output_config [Google::Cloud::AutoML::V1beta1::ModelExportOutputConfig, Hash]
|
1770
|
+
# @param output_config [::Google::Cloud::AutoML::V1beta1::ModelExportOutputConfig, ::Hash]
|
1770
1771
|
# Required. The desired output location and configuration.
|
1771
1772
|
#
|
1772
1773
|
# @yield [response, operation] Access the result along with the RPC operation
|
1773
|
-
# @yieldparam response [Gapic::Operation]
|
1774
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1774
|
+
# @yieldparam response [::Gapic::Operation]
|
1775
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1775
1776
|
#
|
1776
|
-
# @return [Gapic::Operation]
|
1777
|
+
# @return [::Gapic::Operation]
|
1777
1778
|
#
|
1778
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1779
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1779
1780
|
#
|
1780
1781
|
def export_model request, options = nil
|
1781
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1782
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1782
1783
|
|
1783
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1beta1::ExportModelRequest
|
1784
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1beta1::ExportModelRequest
|
1784
1785
|
|
1785
1786
|
# Converts hash and nil to an options object
|
1786
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1787
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1787
1788
|
|
1788
1789
|
# Customize the options with defaults
|
1789
1790
|
metadata = @config.rpcs.export_model.metadata.to_h
|
1790
1791
|
|
1791
1792
|
# Set x-goog-api-client and x-goog-user-project headers
|
1792
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1793
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1793
1794
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1794
1795
|
gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
|
1795
1796
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1807,12 +1808,12 @@ module Google
|
|
1807
1808
|
retry_policy: @config.retry_policy
|
1808
1809
|
|
1809
1810
|
@auto_ml_stub.call_rpc :export_model, request, options: options do |response, operation|
|
1810
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
1811
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1811
1812
|
yield response, operation if block_given?
|
1812
1813
|
return response
|
1813
1814
|
end
|
1814
|
-
rescue GRPC::BadStatus => e
|
1815
|
-
raise Google::Cloud::Error.from_error(e)
|
1815
|
+
rescue ::GRPC::BadStatus => e
|
1816
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1816
1817
|
end
|
1817
1818
|
|
1818
1819
|
##
|
@@ -1829,16 +1830,16 @@ module Google
|
|
1829
1830
|
# Currently only available for Tables.
|
1830
1831
|
#
|
1831
1832
|
# Returns an empty response in the
|
1832
|
-
# {Google::Longrunning::Operation#response response} field when it completes.
|
1833
|
+
# {::Google::Longrunning::Operation#response response} field when it completes.
|
1833
1834
|
#
|
1834
1835
|
# @overload export_evaluated_examples(request, options = nil)
|
1835
1836
|
# Pass arguments to `export_evaluated_examples` via a request object, either of type
|
1836
|
-
# {Google::Cloud::AutoML::V1beta1::ExportEvaluatedExamplesRequest} or an equivalent Hash.
|
1837
|
+
# {::Google::Cloud::AutoML::V1beta1::ExportEvaluatedExamplesRequest} or an equivalent Hash.
|
1837
1838
|
#
|
1838
|
-
# @param request [Google::Cloud::AutoML::V1beta1::ExportEvaluatedExamplesRequest, Hash]
|
1839
|
+
# @param request [::Google::Cloud::AutoML::V1beta1::ExportEvaluatedExamplesRequest, ::Hash]
|
1839
1840
|
# A request object representing the call parameters. Required. To specify no
|
1840
1841
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1841
|
-
# @param options [Gapic::CallOptions, Hash]
|
1842
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1842
1843
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1843
1844
|
#
|
1844
1845
|
# @overload export_evaluated_examples(name: nil, output_config: nil)
|
@@ -1846,33 +1847,33 @@ module Google
|
|
1846
1847
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1847
1848
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1848
1849
|
#
|
1849
|
-
# @param name [String]
|
1850
|
+
# @param name [::String]
|
1850
1851
|
# Required. The resource name of the model whose evaluated examples are to
|
1851
1852
|
# be exported.
|
1852
|
-
# @param output_config [Google::Cloud::AutoML::V1beta1::ExportEvaluatedExamplesOutputConfig, Hash]
|
1853
|
+
# @param output_config [::Google::Cloud::AutoML::V1beta1::ExportEvaluatedExamplesOutputConfig, ::Hash]
|
1853
1854
|
# Required. The desired output location and configuration.
|
1854
1855
|
#
|
1855
1856
|
# @yield [response, operation] Access the result along with the RPC operation
|
1856
|
-
# @yieldparam response [Gapic::Operation]
|
1857
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1857
|
+
# @yieldparam response [::Gapic::Operation]
|
1858
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1858
1859
|
#
|
1859
|
-
# @return [Gapic::Operation]
|
1860
|
+
# @return [::Gapic::Operation]
|
1860
1861
|
#
|
1861
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1862
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1862
1863
|
#
|
1863
1864
|
def export_evaluated_examples request, options = nil
|
1864
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1865
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1865
1866
|
|
1866
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1beta1::ExportEvaluatedExamplesRequest
|
1867
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1beta1::ExportEvaluatedExamplesRequest
|
1867
1868
|
|
1868
1869
|
# Converts hash and nil to an options object
|
1869
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1870
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1870
1871
|
|
1871
1872
|
# Customize the options with defaults
|
1872
1873
|
metadata = @config.rpcs.export_evaluated_examples.metadata.to_h
|
1873
1874
|
|
1874
1875
|
# Set x-goog-api-client and x-goog-user-project headers
|
1875
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1876
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1876
1877
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1877
1878
|
gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
|
1878
1879
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1890,12 +1891,12 @@ module Google
|
|
1890
1891
|
retry_policy: @config.retry_policy
|
1891
1892
|
|
1892
1893
|
@auto_ml_stub.call_rpc :export_evaluated_examples, request, options: options do |response, operation|
|
1893
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
1894
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1894
1895
|
yield response, operation if block_given?
|
1895
1896
|
return response
|
1896
1897
|
end
|
1897
|
-
rescue GRPC::BadStatus => e
|
1898
|
-
raise Google::Cloud::Error.from_error(e)
|
1898
|
+
rescue ::GRPC::BadStatus => e
|
1899
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1899
1900
|
end
|
1900
1901
|
|
1901
1902
|
##
|
@@ -1903,12 +1904,12 @@ module Google
|
|
1903
1904
|
#
|
1904
1905
|
# @overload get_model_evaluation(request, options = nil)
|
1905
1906
|
# Pass arguments to `get_model_evaluation` via a request object, either of type
|
1906
|
-
# {Google::Cloud::AutoML::V1beta1::GetModelEvaluationRequest} or an equivalent Hash.
|
1907
|
+
# {::Google::Cloud::AutoML::V1beta1::GetModelEvaluationRequest} or an equivalent Hash.
|
1907
1908
|
#
|
1908
|
-
# @param request [Google::Cloud::AutoML::V1beta1::GetModelEvaluationRequest, Hash]
|
1909
|
+
# @param request [::Google::Cloud::AutoML::V1beta1::GetModelEvaluationRequest, ::Hash]
|
1909
1910
|
# A request object representing the call parameters. Required. To specify no
|
1910
1911
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1911
|
-
# @param options [Gapic::CallOptions, Hash]
|
1912
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1912
1913
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1913
1914
|
#
|
1914
1915
|
# @overload get_model_evaluation(name: nil)
|
@@ -1916,30 +1917,30 @@ module Google
|
|
1916
1917
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1917
1918
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1918
1919
|
#
|
1919
|
-
# @param name [String]
|
1920
|
+
# @param name [::String]
|
1920
1921
|
# Required. Resource name for the model evaluation.
|
1921
1922
|
#
|
1922
1923
|
# @yield [response, operation] Access the result along with the RPC operation
|
1923
|
-
# @yieldparam response [Google::Cloud::AutoML::V1beta1::ModelEvaluation]
|
1924
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1924
|
+
# @yieldparam response [::Google::Cloud::AutoML::V1beta1::ModelEvaluation]
|
1925
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1925
1926
|
#
|
1926
|
-
# @return [Google::Cloud::AutoML::V1beta1::ModelEvaluation]
|
1927
|
+
# @return [::Google::Cloud::AutoML::V1beta1::ModelEvaluation]
|
1927
1928
|
#
|
1928
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1929
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1929
1930
|
#
|
1930
1931
|
def get_model_evaluation request, options = nil
|
1931
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1932
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1932
1933
|
|
1933
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1beta1::GetModelEvaluationRequest
|
1934
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1beta1::GetModelEvaluationRequest
|
1934
1935
|
|
1935
1936
|
# Converts hash and nil to an options object
|
1936
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1937
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1937
1938
|
|
1938
1939
|
# Customize the options with defaults
|
1939
1940
|
metadata = @config.rpcs.get_model_evaluation.metadata.to_h
|
1940
1941
|
|
1941
1942
|
# Set x-goog-api-client and x-goog-user-project headers
|
1942
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1943
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1943
1944
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1944
1945
|
gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
|
1945
1946
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1960,8 +1961,8 @@ module Google
|
|
1960
1961
|
yield response, operation if block_given?
|
1961
1962
|
return response
|
1962
1963
|
end
|
1963
|
-
rescue GRPC::BadStatus => e
|
1964
|
-
raise Google::Cloud::Error.from_error(e)
|
1964
|
+
rescue ::GRPC::BadStatus => e
|
1965
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1965
1966
|
end
|
1966
1967
|
|
1967
1968
|
##
|
@@ -1969,12 +1970,12 @@ module Google
|
|
1969
1970
|
#
|
1970
1971
|
# @overload list_model_evaluations(request, options = nil)
|
1971
1972
|
# Pass arguments to `list_model_evaluations` via a request object, either of type
|
1972
|
-
# {Google::Cloud::AutoML::V1beta1::ListModelEvaluationsRequest} or an equivalent Hash.
|
1973
|
+
# {::Google::Cloud::AutoML::V1beta1::ListModelEvaluationsRequest} or an equivalent Hash.
|
1973
1974
|
#
|
1974
|
-
# @param request [Google::Cloud::AutoML::V1beta1::ListModelEvaluationsRequest, Hash]
|
1975
|
+
# @param request [::Google::Cloud::AutoML::V1beta1::ListModelEvaluationsRequest, ::Hash]
|
1975
1976
|
# A request object representing the call parameters. Required. To specify no
|
1976
1977
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1977
|
-
# @param options [Gapic::CallOptions, Hash]
|
1978
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1978
1979
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1979
1980
|
#
|
1980
1981
|
# @overload list_model_evaluations(parent: nil, filter: nil, page_size: nil, page_token: nil)
|
@@ -1982,11 +1983,11 @@ module Google
|
|
1982
1983
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1983
1984
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1984
1985
|
#
|
1985
|
-
# @param parent [String]
|
1986
|
+
# @param parent [::String]
|
1986
1987
|
# Required. Resource name of the model to list the model evaluations for.
|
1987
1988
|
# If modelId is set as "-", this will list model evaluations from across all
|
1988
1989
|
# models of the parent location.
|
1989
|
-
# @param filter [String]
|
1990
|
+
# @param filter [::String]
|
1990
1991
|
# An expression for filtering the results of the request.
|
1991
1992
|
#
|
1992
1993
|
# * `annotation_spec_id` - for =, != or existence. See example below for
|
@@ -1998,35 +1999,35 @@ module Google
|
|
1998
1999
|
# annotation spec with ID different than 4.
|
1999
2000
|
# * `NOT annotation_spec_id:*` --> The model evaluation was done for
|
2000
2001
|
# aggregate of all annotation specs.
|
2001
|
-
# @param page_size [Integer]
|
2002
|
+
# @param page_size [::Integer]
|
2002
2003
|
# Requested page size.
|
2003
|
-
# @param page_token [String]
|
2004
|
+
# @param page_token [::String]
|
2004
2005
|
# A token identifying a page of results for the server to return.
|
2005
2006
|
# Typically obtained via
|
2006
|
-
# {Google::Cloud::AutoML::V1beta1::ListModelEvaluationsResponse#next_page_token ListModelEvaluationsResponse.next_page_token} of the previous
|
2007
|
-
# {Google::Cloud::AutoML::V1beta1::AutoML::Client#list_model_evaluations AutoMl.ListModelEvaluations} call.
|
2007
|
+
# {::Google::Cloud::AutoML::V1beta1::ListModelEvaluationsResponse#next_page_token ListModelEvaluationsResponse.next_page_token} of the previous
|
2008
|
+
# {::Google::Cloud::AutoML::V1beta1::AutoML::Client#list_model_evaluations AutoMl.ListModelEvaluations} call.
|
2008
2009
|
#
|
2009
2010
|
# @yield [response, operation] Access the result along with the RPC operation
|
2010
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
2011
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
2011
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AutoML::V1beta1::ModelEvaluation>]
|
2012
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2012
2013
|
#
|
2013
|
-
# @return [Gapic::PagedEnumerable
|
2014
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::AutoML::V1beta1::ModelEvaluation>]
|
2014
2015
|
#
|
2015
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
2016
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2016
2017
|
#
|
2017
2018
|
def list_model_evaluations request, options = nil
|
2018
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
2019
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2019
2020
|
|
2020
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1beta1::ListModelEvaluationsRequest
|
2021
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1beta1::ListModelEvaluationsRequest
|
2021
2022
|
|
2022
2023
|
# Converts hash and nil to an options object
|
2023
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2024
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2024
2025
|
|
2025
2026
|
# Customize the options with defaults
|
2026
2027
|
metadata = @config.rpcs.list_model_evaluations.metadata.to_h
|
2027
2028
|
|
2028
2029
|
# Set x-goog-api-client and x-goog-user-project headers
|
2029
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
2030
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2030
2031
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2031
2032
|
gapic_version: ::Google::Cloud::Automl::V1beta1::VERSION
|
2032
2033
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -2044,12 +2045,12 @@ module Google
|
|
2044
2045
|
retry_policy: @config.retry_policy
|
2045
2046
|
|
2046
2047
|
@auto_ml_stub.call_rpc :list_model_evaluations, request, options: options do |response, operation|
|
2047
|
-
response = Gapic::PagedEnumerable.new @auto_ml_stub, :list_model_evaluations, request, response, operation, options
|
2048
|
+
response = ::Gapic::PagedEnumerable.new @auto_ml_stub, :list_model_evaluations, request, response, operation, options
|
2048
2049
|
yield response, operation if block_given?
|
2049
2050
|
return response
|
2050
2051
|
end
|
2051
|
-
rescue GRPC::BadStatus => e
|
2052
|
-
raise Google::Cloud::Error.from_error(e)
|
2052
|
+
rescue ::GRPC::BadStatus => e
|
2053
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2053
2054
|
end
|
2054
2055
|
|
2055
2056
|
##
|
@@ -2059,7 +2060,7 @@ module Google
|
|
2059
2060
|
# providing control over timeouts, retry behavior, logging, transport
|
2060
2061
|
# parameters, and other low-level controls. Certain parameters can also be
|
2061
2062
|
# applied individually to specific RPCs. See
|
2062
|
-
# {Google::Cloud::AutoML::V1beta1::AutoML::Client::Configuration::Rpcs}
|
2063
|
+
# {::Google::Cloud::AutoML::V1beta1::AutoML::Client::Configuration::Rpcs}
|
2063
2064
|
# for a list of RPCs that can be configured independently.
|
2064
2065
|
#
|
2065
2066
|
# Configuration can be applied globally to all clients, or to a single client
|
@@ -2070,22 +2071,22 @@ module Google
|
|
2070
2071
|
# To modify the global config, setting the timeout for create_dataset
|
2071
2072
|
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
2072
2073
|
#
|
2073
|
-
# Google::Cloud::AutoML::V1beta1::AutoML::Client.configure do |config|
|
2074
|
-
# config.timeout =
|
2075
|
-
# config.rpcs.create_dataset.timeout =
|
2074
|
+
# ::Google::Cloud::AutoML::V1beta1::AutoML::Client.configure do |config|
|
2075
|
+
# config.timeout = 10.0
|
2076
|
+
# config.rpcs.create_dataset.timeout = 20.0
|
2076
2077
|
# end
|
2077
2078
|
#
|
2078
2079
|
# To apply the above configuration only to a new client:
|
2079
2080
|
#
|
2080
|
-
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new do |config|
|
2081
|
-
# config.timeout =
|
2082
|
-
# config.rpcs.create_dataset.timeout =
|
2081
|
+
# client = ::Google::Cloud::AutoML::V1beta1::AutoML::Client.new do |config|
|
2082
|
+
# config.timeout = 10.0
|
2083
|
+
# config.rpcs.create_dataset.timeout = 20.0
|
2083
2084
|
# end
|
2084
2085
|
#
|
2085
2086
|
# @!attribute [rw] endpoint
|
2086
2087
|
# The hostname or hostname:port of the service endpoint.
|
2087
2088
|
# Defaults to `"automl.googleapis.com"`.
|
2088
|
-
# @return [String]
|
2089
|
+
# @return [::String]
|
2089
2090
|
# @!attribute [rw] credentials
|
2090
2091
|
# Credentials to send with calls. You may provide any of the following types:
|
2091
2092
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -2097,29 +2098,29 @@ module Google
|
|
2097
2098
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
2098
2099
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
2099
2100
|
# * (`nil`) indicating no credentials
|
2100
|
-
# @return [Object]
|
2101
|
+
# @return [::Object]
|
2101
2102
|
# @!attribute [rw] scope
|
2102
2103
|
# The OAuth scopes
|
2103
|
-
# @return [Array
|
2104
|
+
# @return [::Array<::String>]
|
2104
2105
|
# @!attribute [rw] lib_name
|
2105
2106
|
# The library name as recorded in instrumentation and logging
|
2106
|
-
# @return [String]
|
2107
|
+
# @return [::String]
|
2107
2108
|
# @!attribute [rw] lib_version
|
2108
2109
|
# The library version as recorded in instrumentation and logging
|
2109
|
-
# @return [String]
|
2110
|
+
# @return [::String]
|
2110
2111
|
# @!attribute [rw] channel_args
|
2111
2112
|
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
2112
2113
|
# `GRPC::Core::Channel` object is provided as the credential.
|
2113
|
-
# @return [Hash]
|
2114
|
+
# @return [::Hash]
|
2114
2115
|
# @!attribute [rw] interceptors
|
2115
2116
|
# An array of interceptors that are run before calls are executed.
|
2116
|
-
# @return [Array
|
2117
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
2117
2118
|
# @!attribute [rw] timeout
|
2118
|
-
# The call timeout in
|
2119
|
-
# @return [Numeric]
|
2119
|
+
# The call timeout in seconds.
|
2120
|
+
# @return [::Numeric]
|
2120
2121
|
# @!attribute [rw] metadata
|
2121
2122
|
# Additional gRPC headers to be sent with the call.
|
2122
|
-
# @return [Hash{Symbol
|
2123
|
+
# @return [::Hash{::Symbol=>::String}]
|
2123
2124
|
# @!attribute [rw] retry_policy
|
2124
2125
|
# The retry policy. The value is a hash with the following keys:
|
2125
2126
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
@@ -2127,25 +2128,29 @@ module Google
|
|
2127
2128
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
2128
2129
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
2129
2130
|
# trigger a retry.
|
2130
|
-
# @return [Hash]
|
2131
|
+
# @return [::Hash]
|
2132
|
+
# @!attribute [rw] quota_project
|
2133
|
+
# A separate project against which to charge quota.
|
2134
|
+
# @return [::String]
|
2131
2135
|
#
|
2132
2136
|
class Configuration
|
2133
|
-
extend Gapic::Config
|
2137
|
+
extend ::Gapic::Config
|
2134
2138
|
|
2135
|
-
config_attr :endpoint,
|
2136
|
-
config_attr :credentials,
|
2139
|
+
config_attr :endpoint, "automl.googleapis.com", ::String
|
2140
|
+
config_attr :credentials, nil do |value|
|
2137
2141
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2138
2142
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
2139
2143
|
allowed.any? { |klass| klass === value }
|
2140
2144
|
end
|
2141
|
-
config_attr :scope,
|
2142
|
-
config_attr :lib_name,
|
2143
|
-
config_attr :lib_version,
|
2144
|
-
config_attr(:channel_args,
|
2145
|
-
config_attr :interceptors,
|
2146
|
-
config_attr :timeout,
|
2147
|
-
config_attr :metadata,
|
2148
|
-
config_attr :retry_policy,
|
2145
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
2146
|
+
config_attr :lib_name, nil, ::String, nil
|
2147
|
+
config_attr :lib_version, nil, ::String, nil
|
2148
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
2149
|
+
config_attr :interceptors, nil, ::Array, nil
|
2150
|
+
config_attr :timeout, nil, ::Numeric, nil
|
2151
|
+
config_attr :metadata, nil, ::Hash, nil
|
2152
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
2153
|
+
config_attr :quota_project, nil, ::String, nil
|
2149
2154
|
|
2150
2155
|
# @private
|
2151
2156
|
def initialize parent_config = nil
|
@@ -2161,7 +2166,7 @@ module Google
|
|
2161
2166
|
def rpcs
|
2162
2167
|
@rpcs ||= begin
|
2163
2168
|
parent_rpcs = nil
|
2164
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
2169
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
2165
2170
|
Rpcs.new parent_rpcs
|
2166
2171
|
end
|
2167
2172
|
end
|
@@ -2186,175 +2191,175 @@ module Google
|
|
2186
2191
|
class Rpcs
|
2187
2192
|
##
|
2188
2193
|
# RPC-specific configuration for `create_dataset`
|
2189
|
-
# @return [Gapic::Config::Method]
|
2194
|
+
# @return [::Gapic::Config::Method]
|
2190
2195
|
#
|
2191
2196
|
attr_reader :create_dataset
|
2192
2197
|
##
|
2193
2198
|
# RPC-specific configuration for `get_dataset`
|
2194
|
-
# @return [Gapic::Config::Method]
|
2199
|
+
# @return [::Gapic::Config::Method]
|
2195
2200
|
#
|
2196
2201
|
attr_reader :get_dataset
|
2197
2202
|
##
|
2198
2203
|
# RPC-specific configuration for `list_datasets`
|
2199
|
-
# @return [Gapic::Config::Method]
|
2204
|
+
# @return [::Gapic::Config::Method]
|
2200
2205
|
#
|
2201
2206
|
attr_reader :list_datasets
|
2202
2207
|
##
|
2203
2208
|
# RPC-specific configuration for `update_dataset`
|
2204
|
-
# @return [Gapic::Config::Method]
|
2209
|
+
# @return [::Gapic::Config::Method]
|
2205
2210
|
#
|
2206
2211
|
attr_reader :update_dataset
|
2207
2212
|
##
|
2208
2213
|
# RPC-specific configuration for `delete_dataset`
|
2209
|
-
# @return [Gapic::Config::Method]
|
2214
|
+
# @return [::Gapic::Config::Method]
|
2210
2215
|
#
|
2211
2216
|
attr_reader :delete_dataset
|
2212
2217
|
##
|
2213
2218
|
# RPC-specific configuration for `import_data`
|
2214
|
-
# @return [Gapic::Config::Method]
|
2219
|
+
# @return [::Gapic::Config::Method]
|
2215
2220
|
#
|
2216
2221
|
attr_reader :import_data
|
2217
2222
|
##
|
2218
2223
|
# RPC-specific configuration for `export_data`
|
2219
|
-
# @return [Gapic::Config::Method]
|
2224
|
+
# @return [::Gapic::Config::Method]
|
2220
2225
|
#
|
2221
2226
|
attr_reader :export_data
|
2222
2227
|
##
|
2223
2228
|
# RPC-specific configuration for `get_annotation_spec`
|
2224
|
-
# @return [Gapic::Config::Method]
|
2229
|
+
# @return [::Gapic::Config::Method]
|
2225
2230
|
#
|
2226
2231
|
attr_reader :get_annotation_spec
|
2227
2232
|
##
|
2228
2233
|
# RPC-specific configuration for `get_table_spec`
|
2229
|
-
# @return [Gapic::Config::Method]
|
2234
|
+
# @return [::Gapic::Config::Method]
|
2230
2235
|
#
|
2231
2236
|
attr_reader :get_table_spec
|
2232
2237
|
##
|
2233
2238
|
# RPC-specific configuration for `list_table_specs`
|
2234
|
-
# @return [Gapic::Config::Method]
|
2239
|
+
# @return [::Gapic::Config::Method]
|
2235
2240
|
#
|
2236
2241
|
attr_reader :list_table_specs
|
2237
2242
|
##
|
2238
2243
|
# RPC-specific configuration for `update_table_spec`
|
2239
|
-
# @return [Gapic::Config::Method]
|
2244
|
+
# @return [::Gapic::Config::Method]
|
2240
2245
|
#
|
2241
2246
|
attr_reader :update_table_spec
|
2242
2247
|
##
|
2243
2248
|
# RPC-specific configuration for `get_column_spec`
|
2244
|
-
# @return [Gapic::Config::Method]
|
2249
|
+
# @return [::Gapic::Config::Method]
|
2245
2250
|
#
|
2246
2251
|
attr_reader :get_column_spec
|
2247
2252
|
##
|
2248
2253
|
# RPC-specific configuration for `list_column_specs`
|
2249
|
-
# @return [Gapic::Config::Method]
|
2254
|
+
# @return [::Gapic::Config::Method]
|
2250
2255
|
#
|
2251
2256
|
attr_reader :list_column_specs
|
2252
2257
|
##
|
2253
2258
|
# RPC-specific configuration for `update_column_spec`
|
2254
|
-
# @return [Gapic::Config::Method]
|
2259
|
+
# @return [::Gapic::Config::Method]
|
2255
2260
|
#
|
2256
2261
|
attr_reader :update_column_spec
|
2257
2262
|
##
|
2258
2263
|
# RPC-specific configuration for `create_model`
|
2259
|
-
# @return [Gapic::Config::Method]
|
2264
|
+
# @return [::Gapic::Config::Method]
|
2260
2265
|
#
|
2261
2266
|
attr_reader :create_model
|
2262
2267
|
##
|
2263
2268
|
# RPC-specific configuration for `get_model`
|
2264
|
-
# @return [Gapic::Config::Method]
|
2269
|
+
# @return [::Gapic::Config::Method]
|
2265
2270
|
#
|
2266
2271
|
attr_reader :get_model
|
2267
2272
|
##
|
2268
2273
|
# RPC-specific configuration for `list_models`
|
2269
|
-
# @return [Gapic::Config::Method]
|
2274
|
+
# @return [::Gapic::Config::Method]
|
2270
2275
|
#
|
2271
2276
|
attr_reader :list_models
|
2272
2277
|
##
|
2273
2278
|
# RPC-specific configuration for `delete_model`
|
2274
|
-
# @return [Gapic::Config::Method]
|
2279
|
+
# @return [::Gapic::Config::Method]
|
2275
2280
|
#
|
2276
2281
|
attr_reader :delete_model
|
2277
2282
|
##
|
2278
2283
|
# RPC-specific configuration for `deploy_model`
|
2279
|
-
# @return [Gapic::Config::Method]
|
2284
|
+
# @return [::Gapic::Config::Method]
|
2280
2285
|
#
|
2281
2286
|
attr_reader :deploy_model
|
2282
2287
|
##
|
2283
2288
|
# RPC-specific configuration for `undeploy_model`
|
2284
|
-
# @return [Gapic::Config::Method]
|
2289
|
+
# @return [::Gapic::Config::Method]
|
2285
2290
|
#
|
2286
2291
|
attr_reader :undeploy_model
|
2287
2292
|
##
|
2288
2293
|
# RPC-specific configuration for `export_model`
|
2289
|
-
# @return [Gapic::Config::Method]
|
2294
|
+
# @return [::Gapic::Config::Method]
|
2290
2295
|
#
|
2291
2296
|
attr_reader :export_model
|
2292
2297
|
##
|
2293
2298
|
# RPC-specific configuration for `export_evaluated_examples`
|
2294
|
-
# @return [Gapic::Config::Method]
|
2299
|
+
# @return [::Gapic::Config::Method]
|
2295
2300
|
#
|
2296
2301
|
attr_reader :export_evaluated_examples
|
2297
2302
|
##
|
2298
2303
|
# RPC-specific configuration for `get_model_evaluation`
|
2299
|
-
# @return [Gapic::Config::Method]
|
2304
|
+
# @return [::Gapic::Config::Method]
|
2300
2305
|
#
|
2301
2306
|
attr_reader :get_model_evaluation
|
2302
2307
|
##
|
2303
2308
|
# RPC-specific configuration for `list_model_evaluations`
|
2304
|
-
# @return [Gapic::Config::Method]
|
2309
|
+
# @return [::Gapic::Config::Method]
|
2305
2310
|
#
|
2306
2311
|
attr_reader :list_model_evaluations
|
2307
2312
|
|
2308
2313
|
# @private
|
2309
2314
|
def initialize parent_rpcs = nil
|
2310
2315
|
create_dataset_config = parent_rpcs&.create_dataset if parent_rpcs&.respond_to? :create_dataset
|
2311
|
-
@create_dataset = Gapic::Config::Method.new create_dataset_config
|
2316
|
+
@create_dataset = ::Gapic::Config::Method.new create_dataset_config
|
2312
2317
|
get_dataset_config = parent_rpcs&.get_dataset if parent_rpcs&.respond_to? :get_dataset
|
2313
|
-
@get_dataset = Gapic::Config::Method.new get_dataset_config
|
2318
|
+
@get_dataset = ::Gapic::Config::Method.new get_dataset_config
|
2314
2319
|
list_datasets_config = parent_rpcs&.list_datasets if parent_rpcs&.respond_to? :list_datasets
|
2315
|
-
@list_datasets = Gapic::Config::Method.new list_datasets_config
|
2320
|
+
@list_datasets = ::Gapic::Config::Method.new list_datasets_config
|
2316
2321
|
update_dataset_config = parent_rpcs&.update_dataset if parent_rpcs&.respond_to? :update_dataset
|
2317
|
-
@update_dataset = Gapic::Config::Method.new update_dataset_config
|
2322
|
+
@update_dataset = ::Gapic::Config::Method.new update_dataset_config
|
2318
2323
|
delete_dataset_config = parent_rpcs&.delete_dataset if parent_rpcs&.respond_to? :delete_dataset
|
2319
|
-
@delete_dataset = Gapic::Config::Method.new delete_dataset_config
|
2324
|
+
@delete_dataset = ::Gapic::Config::Method.new delete_dataset_config
|
2320
2325
|
import_data_config = parent_rpcs&.import_data if parent_rpcs&.respond_to? :import_data
|
2321
|
-
@import_data = Gapic::Config::Method.new import_data_config
|
2326
|
+
@import_data = ::Gapic::Config::Method.new import_data_config
|
2322
2327
|
export_data_config = parent_rpcs&.export_data if parent_rpcs&.respond_to? :export_data
|
2323
|
-
@export_data = Gapic::Config::Method.new export_data_config
|
2328
|
+
@export_data = ::Gapic::Config::Method.new export_data_config
|
2324
2329
|
get_annotation_spec_config = parent_rpcs&.get_annotation_spec if parent_rpcs&.respond_to? :get_annotation_spec
|
2325
|
-
@get_annotation_spec = Gapic::Config::Method.new get_annotation_spec_config
|
2330
|
+
@get_annotation_spec = ::Gapic::Config::Method.new get_annotation_spec_config
|
2326
2331
|
get_table_spec_config = parent_rpcs&.get_table_spec if parent_rpcs&.respond_to? :get_table_spec
|
2327
|
-
@get_table_spec = Gapic::Config::Method.new get_table_spec_config
|
2332
|
+
@get_table_spec = ::Gapic::Config::Method.new get_table_spec_config
|
2328
2333
|
list_table_specs_config = parent_rpcs&.list_table_specs if parent_rpcs&.respond_to? :list_table_specs
|
2329
|
-
@list_table_specs = Gapic::Config::Method.new list_table_specs_config
|
2334
|
+
@list_table_specs = ::Gapic::Config::Method.new list_table_specs_config
|
2330
2335
|
update_table_spec_config = parent_rpcs&.update_table_spec if parent_rpcs&.respond_to? :update_table_spec
|
2331
|
-
@update_table_spec = Gapic::Config::Method.new update_table_spec_config
|
2336
|
+
@update_table_spec = ::Gapic::Config::Method.new update_table_spec_config
|
2332
2337
|
get_column_spec_config = parent_rpcs&.get_column_spec if parent_rpcs&.respond_to? :get_column_spec
|
2333
|
-
@get_column_spec = Gapic::Config::Method.new get_column_spec_config
|
2338
|
+
@get_column_spec = ::Gapic::Config::Method.new get_column_spec_config
|
2334
2339
|
list_column_specs_config = parent_rpcs&.list_column_specs if parent_rpcs&.respond_to? :list_column_specs
|
2335
|
-
@list_column_specs = Gapic::Config::Method.new list_column_specs_config
|
2340
|
+
@list_column_specs = ::Gapic::Config::Method.new list_column_specs_config
|
2336
2341
|
update_column_spec_config = parent_rpcs&.update_column_spec if parent_rpcs&.respond_to? :update_column_spec
|
2337
|
-
@update_column_spec = Gapic::Config::Method.new update_column_spec_config
|
2342
|
+
@update_column_spec = ::Gapic::Config::Method.new update_column_spec_config
|
2338
2343
|
create_model_config = parent_rpcs&.create_model if parent_rpcs&.respond_to? :create_model
|
2339
|
-
@create_model = Gapic::Config::Method.new create_model_config
|
2344
|
+
@create_model = ::Gapic::Config::Method.new create_model_config
|
2340
2345
|
get_model_config = parent_rpcs&.get_model if parent_rpcs&.respond_to? :get_model
|
2341
|
-
@get_model = Gapic::Config::Method.new get_model_config
|
2346
|
+
@get_model = ::Gapic::Config::Method.new get_model_config
|
2342
2347
|
list_models_config = parent_rpcs&.list_models if parent_rpcs&.respond_to? :list_models
|
2343
|
-
@list_models = Gapic::Config::Method.new list_models_config
|
2348
|
+
@list_models = ::Gapic::Config::Method.new list_models_config
|
2344
2349
|
delete_model_config = parent_rpcs&.delete_model if parent_rpcs&.respond_to? :delete_model
|
2345
|
-
@delete_model = Gapic::Config::Method.new delete_model_config
|
2350
|
+
@delete_model = ::Gapic::Config::Method.new delete_model_config
|
2346
2351
|
deploy_model_config = parent_rpcs&.deploy_model if parent_rpcs&.respond_to? :deploy_model
|
2347
|
-
@deploy_model = Gapic::Config::Method.new deploy_model_config
|
2352
|
+
@deploy_model = ::Gapic::Config::Method.new deploy_model_config
|
2348
2353
|
undeploy_model_config = parent_rpcs&.undeploy_model if parent_rpcs&.respond_to? :undeploy_model
|
2349
|
-
@undeploy_model = Gapic::Config::Method.new undeploy_model_config
|
2354
|
+
@undeploy_model = ::Gapic::Config::Method.new undeploy_model_config
|
2350
2355
|
export_model_config = parent_rpcs&.export_model if parent_rpcs&.respond_to? :export_model
|
2351
|
-
@export_model = Gapic::Config::Method.new export_model_config
|
2356
|
+
@export_model = ::Gapic::Config::Method.new export_model_config
|
2352
2357
|
export_evaluated_examples_config = parent_rpcs&.export_evaluated_examples if parent_rpcs&.respond_to? :export_evaluated_examples
|
2353
|
-
@export_evaluated_examples = Gapic::Config::Method.new export_evaluated_examples_config
|
2358
|
+
@export_evaluated_examples = ::Gapic::Config::Method.new export_evaluated_examples_config
|
2354
2359
|
get_model_evaluation_config = parent_rpcs&.get_model_evaluation if parent_rpcs&.respond_to? :get_model_evaluation
|
2355
|
-
@get_model_evaluation = Gapic::Config::Method.new get_model_evaluation_config
|
2360
|
+
@get_model_evaluation = ::Gapic::Config::Method.new get_model_evaluation_config
|
2356
2361
|
list_model_evaluations_config = parent_rpcs&.list_model_evaluations if parent_rpcs&.respond_to? :list_model_evaluations
|
2357
|
-
@list_model_evaluations = Gapic::Config::Method.new list_model_evaluations_config
|
2362
|
+
@list_model_evaluations = ::Gapic::Config::Method.new list_model_evaluations_config
|
2358
2363
|
|
2359
2364
|
yield self if block_given?
|
2360
2365
|
end
|