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