google-cloud-automl-v1 0.1.0 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +1 -1
- data/lib/google/cloud/automl/v1.rb +1 -1
- data/lib/google/cloud/automl/v1/automl.rb +1 -1
- data/lib/google/cloud/automl/v1/automl/client.rb +382 -377
- data/lib/google/cloud/automl/v1/automl/credentials.rb +1 -1
- data/lib/google/cloud/automl/v1/automl/operations.rb +109 -103
- data/lib/google/cloud/automl/v1/automl/paths.rb +16 -16
- data/lib/google/cloud/automl/v1/prediction_service.rb +1 -1
- data/lib/google/cloud/automl/v1/prediction_service/client.rb +125 -124
- data/lib/google/cloud/automl/v1/prediction_service/credentials.rb +1 -1
- data/lib/google/cloud/automl/v1/prediction_service/operations.rb +109 -103
- data/lib/google/cloud/automl/v1/prediction_service/paths.rb +3 -3
- data/lib/google/cloud/automl/v1/prediction_service_services_pb.rb +30 -34
- data/lib/google/cloud/automl/v1/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/cloud/automl/v1/annotation_payload.rb +10 -10
- data/proto_docs/google/cloud/automl/v1/annotation_spec.rb +5 -5
- data/proto_docs/google/cloud/automl/v1/classification.rb +37 -37
- data/proto_docs/google/cloud/automl/v1/data_items.rb +38 -38
- data/proto_docs/google/cloud/automl/v1/dataset.rb +19 -19
- data/proto_docs/google/cloud/automl/v1/detection.rb +20 -20
- data/proto_docs/google/cloud/automl/v1/geometry.rb +7 -7
- data/proto_docs/google/cloud/automl/v1/image.rb +38 -38
- data/proto_docs/google/cloud/automl/v1/io.rb +55 -62
- data/proto_docs/google/cloud/automl/v1/model.rb +20 -20
- data/proto_docs/google/cloud/automl/v1/model_evaluation.rb +15 -15
- data/proto_docs/google/cloud/automl/v1/operations.rb +49 -49
- data/proto_docs/google/cloud/automl/v1/prediction_service.rb +53 -53
- data/proto_docs/google/cloud/automl/v1/service.rb +115 -115
- data/proto_docs/google/cloud/automl/v1/text.rb +15 -15
- data/proto_docs/google/cloud/automl/v1/text_extraction.rb +14 -14
- data/proto_docs/google/cloud/automl/v1/text_segment.rb +5 -5
- data/proto_docs/google/cloud/automl/v1/text_sentiment.rb +14 -14
- data/proto_docs/google/cloud/automl/v1/translation.rb +16 -16
- data/proto_docs/google/longrunning/operations.rb +30 -30
- data/proto_docs/google/protobuf/any.rb +4 -4
- data/proto_docs/google/protobuf/duration.rb +4 -4
- data/proto_docs/google/protobuf/empty.rb +2 -2
- data/proto_docs/google/protobuf/field_mask.rb +3 -3
- data/proto_docs/google/protobuf/struct.rb +18 -18
- data/proto_docs/google/protobuf/timestamp.rb +4 -4
- data/proto_docs/google/rpc/status.rb +6 -6
- metadata +33 -6
- data/lib/google/cloud/common_resources_pb.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5ec1c1084808944b73df13dcf98e3c6849a5a91b970518a5d1d790d96bfe21b
|
4
|
+
data.tar.gz: 839d8df977c05eb1deb95204ce17c7a1040c4dcb7c38474178cdcab9223ba405
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7709efe34e0b4d58149d0b9d0bd3092dd830ec717ce51d6f742212511b21e75c1fea27ec578fcc4ac62472b066f97e4db00cb619f049b3eb803eda68a070e745
|
7
|
+
data.tar.gz: 05c9e1d661ac5c2e286effc42821cdbeab75a9706d3538b5a27f3ba888968c05625f4be74853a234601ba0fb9a208eace3c6d2fa93f2e37b54ec8505397822dc
|
data/AUTHENTICATION.md
CHANGED
@@ -27,7 +27,7 @@ export AUTOML_CREDENTIALS=path/to/keyfile.json
|
|
27
27
|
```ruby
|
28
28
|
require "google/cloud/automl/v1"
|
29
29
|
|
30
|
-
client = Google::Cloud::AutoML::V1::PredictionService::Client.new
|
30
|
+
client = ::Google::Cloud::AutoML::V1::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-v1
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
|
-
{Google::Cloud::AutoML::V1::PredictionService::Credentials}):
|
67
|
+
{::Google::Cloud::AutoML::V1::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/v1"
|
|
77
77
|
|
78
78
|
ENV["AUTOML_CREDENTIALS"] = "path/to/keyfile.json"
|
79
79
|
|
80
|
-
client = Google::Cloud::AutoML::V1::PredictionService::Client.new
|
80
|
+
client = ::Google::Cloud::AutoML::V1::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/v1"
|
90
90
|
|
91
|
-
client = Google::Cloud::AutoML::V1::PredictionService::Client.new do |config|
|
91
|
+
client = ::Google::Cloud::AutoML::V1::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/v1"
|
100
100
|
|
101
|
-
Google::Cloud::AutoML::V1::PredictionService::Client.configure do |config|
|
101
|
+
::Google::Cloud::AutoML::V1::PredictionService::Client.configure do |config|
|
102
102
|
config.credentials = "path/to/keyfile.json"
|
103
103
|
end
|
104
104
|
|
105
|
-
client = Google::Cloud::AutoML::V1::PredictionService::Client.new
|
105
|
+
client = ::Google::Cloud::AutoML::V1::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/v1"
|
27
27
|
|
28
|
-
client = Google::Cloud::AutoML::V1::PredictionService::Client.new
|
28
|
+
client = ::Google::Cloud::AutoML::V1::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/v1"
|
30
|
-
# client = Google::Cloud::AutoML::V1::PredictionService::Client.new
|
30
|
+
# client = ::Google::Cloud::AutoML::V1::PredictionService::Client.new
|
31
31
|
#
|
32
32
|
module V1
|
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/v1/automl"
|
53
|
-
# client = Google::Cloud::AutoML::V1::AutoML::Client.new
|
53
|
+
# client = ::Google::Cloud::AutoML::V1::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::V1::AutoML::Client::Configuration}
|
54
|
+
# See {::Google::Cloud::AutoML::V1::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::V1::AutoML::Client.configure do |config|
|
62
|
-
# config.timeout =
|
61
|
+
# ::Google::Cloud::AutoML::V1::AutoML::Client.configure do |config|
|
62
|
+
# config.timeout = 10.0
|
63
63
|
# end
|
64
64
|
#
|
65
65
|
# @yield [config] Configure the Client client.
|
@@ -181,7 +181,7 @@ module Google
|
|
181
181
|
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
182
182
|
# should be made on {Client.configure}.
|
183
183
|
#
|
184
|
-
# See {Google::Cloud::AutoML::V1::AutoML::Client::Configuration}
|
184
|
+
# See {::Google::Cloud::AutoML::V1::AutoML::Client::Configuration}
|
185
185
|
# for a description of the configuration fields.
|
186
186
|
#
|
187
187
|
# @yield [config] Configure the Client client.
|
@@ -202,13 +202,13 @@ module Google
|
|
202
202
|
# To create a new AutoMl client with the default
|
203
203
|
# configuration:
|
204
204
|
#
|
205
|
-
# client = Google::Cloud::AutoML::V1::AutoML::Client.new
|
205
|
+
# client = ::Google::Cloud::AutoML::V1::AutoML::Client.new
|
206
206
|
#
|
207
207
|
# To create a new AutoMl client with a custom
|
208
208
|
# configuration:
|
209
209
|
#
|
210
|
-
# client = Google::Cloud::AutoML::V1::AutoML::Client.new do |config|
|
211
|
-
# config.timeout =
|
210
|
+
# client = ::Google::Cloud::AutoML::V1::AutoML::Client.new do |config|
|
211
|
+
# config.timeout = 10.0
|
212
212
|
# end
|
213
213
|
#
|
214
214
|
# @yield [config] Configure the AutoMl client.
|
@@ -233,15 +233,16 @@ module Google
|
|
233
233
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
234
234
|
credentials = Credentials.new credentials, scope: @config.scope
|
235
235
|
end
|
236
|
-
@quota_project_id =
|
236
|
+
@quota_project_id = @config.quota_project
|
237
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
237
238
|
|
238
239
|
@operations_client = Operations.new do |config|
|
239
240
|
config.credentials = credentials
|
240
241
|
config.endpoint = @config.endpoint
|
241
242
|
end
|
242
243
|
|
243
|
-
@auto_ml_stub = Gapic::ServiceStub.new(
|
244
|
-
Google::Cloud::AutoML::V1::AutoMl::Stub,
|
244
|
+
@auto_ml_stub = ::Gapic::ServiceStub.new(
|
245
|
+
::Google::Cloud::AutoML::V1::AutoMl::Stub,
|
245
246
|
credentials: credentials,
|
246
247
|
endpoint: @config.endpoint,
|
247
248
|
channel_args: @config.channel_args,
|
@@ -252,7 +253,7 @@ module Google
|
|
252
253
|
##
|
253
254
|
# Get the associated client for long-running operations.
|
254
255
|
#
|
255
|
-
# @return [Google::Cloud::AutoML::V1::AutoML::Operations]
|
256
|
+
# @return [::Google::Cloud::AutoML::V1::AutoML::Operations]
|
256
257
|
#
|
257
258
|
attr_reader :operations_client
|
258
259
|
|
@@ -263,12 +264,12 @@ module Google
|
|
263
264
|
#
|
264
265
|
# @overload create_dataset(request, options = nil)
|
265
266
|
# Pass arguments to `create_dataset` via a request object, either of type
|
266
|
-
# {Google::Cloud::AutoML::V1::CreateDatasetRequest} or an equivalent Hash.
|
267
|
+
# {::Google::Cloud::AutoML::V1::CreateDatasetRequest} or an equivalent Hash.
|
267
268
|
#
|
268
|
-
# @param request [Google::Cloud::AutoML::V1::CreateDatasetRequest, Hash]
|
269
|
+
# @param request [::Google::Cloud::AutoML::V1::CreateDatasetRequest, ::Hash]
|
269
270
|
# A request object representing the call parameters. Required. To specify no
|
270
271
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
271
|
-
# @param options [Gapic::CallOptions, Hash]
|
272
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
272
273
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
273
274
|
#
|
274
275
|
# @overload create_dataset(parent: nil, dataset: nil)
|
@@ -276,32 +277,32 @@ module Google
|
|
276
277
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
277
278
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
278
279
|
#
|
279
|
-
# @param parent [String]
|
280
|
+
# @param parent [::String]
|
280
281
|
# Required. The resource name of the project to create the dataset for.
|
281
|
-
# @param dataset [Google::Cloud::AutoML::V1::Dataset, Hash]
|
282
|
+
# @param dataset [::Google::Cloud::AutoML::V1::Dataset, ::Hash]
|
282
283
|
# Required. The dataset to create.
|
283
284
|
#
|
284
285
|
# @yield [response, operation] Access the result along with the RPC operation
|
285
|
-
# @yieldparam response [Gapic::Operation]
|
286
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
286
|
+
# @yieldparam response [::Gapic::Operation]
|
287
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
287
288
|
#
|
288
|
-
# @return [Gapic::Operation]
|
289
|
+
# @return [::Gapic::Operation]
|
289
290
|
#
|
290
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
291
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
291
292
|
#
|
292
293
|
def create_dataset request, options = nil
|
293
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
294
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
294
295
|
|
295
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::CreateDatasetRequest
|
296
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::CreateDatasetRequest
|
296
297
|
|
297
298
|
# Converts hash and nil to an options object
|
298
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
299
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
299
300
|
|
300
301
|
# Customize the options with defaults
|
301
302
|
metadata = @config.rpcs.create_dataset.metadata.to_h
|
302
303
|
|
303
304
|
# Set x-goog-api-client and x-goog-user-project headers
|
304
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
305
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
305
306
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
306
307
|
gapic_version: ::Google::Cloud::Automl::V1::VERSION
|
307
308
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -319,12 +320,12 @@ module Google
|
|
319
320
|
retry_policy: @config.retry_policy
|
320
321
|
|
321
322
|
@auto_ml_stub.call_rpc :create_dataset, request, options: options do |response, operation|
|
322
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
323
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
323
324
|
yield response, operation if block_given?
|
324
325
|
return response
|
325
326
|
end
|
326
|
-
rescue GRPC::BadStatus => e
|
327
|
-
raise Google::Cloud::Error.from_error(e)
|
327
|
+
rescue ::GRPC::BadStatus => e
|
328
|
+
raise ::Google::Cloud::Error.from_error(e)
|
328
329
|
end
|
329
330
|
|
330
331
|
##
|
@@ -332,12 +333,12 @@ module Google
|
|
332
333
|
#
|
333
334
|
# @overload get_dataset(request, options = nil)
|
334
335
|
# Pass arguments to `get_dataset` via a request object, either of type
|
335
|
-
# {Google::Cloud::AutoML::V1::GetDatasetRequest} or an equivalent Hash.
|
336
|
+
# {::Google::Cloud::AutoML::V1::GetDatasetRequest} or an equivalent Hash.
|
336
337
|
#
|
337
|
-
# @param request [Google::Cloud::AutoML::V1::GetDatasetRequest, Hash]
|
338
|
+
# @param request [::Google::Cloud::AutoML::V1::GetDatasetRequest, ::Hash]
|
338
339
|
# A request object representing the call parameters. Required. To specify no
|
339
340
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
340
|
-
# @param options [Gapic::CallOptions, Hash]
|
341
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
341
342
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
342
343
|
#
|
343
344
|
# @overload get_dataset(name: nil)
|
@@ -345,30 +346,30 @@ module Google
|
|
345
346
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
346
347
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
347
348
|
#
|
348
|
-
# @param name [String]
|
349
|
+
# @param name [::String]
|
349
350
|
# Required. The resource name of the dataset to retrieve.
|
350
351
|
#
|
351
352
|
# @yield [response, operation] Access the result along with the RPC operation
|
352
|
-
# @yieldparam response [Google::Cloud::AutoML::V1::Dataset]
|
353
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
353
|
+
# @yieldparam response [::Google::Cloud::AutoML::V1::Dataset]
|
354
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
354
355
|
#
|
355
|
-
# @return [Google::Cloud::AutoML::V1::Dataset]
|
356
|
+
# @return [::Google::Cloud::AutoML::V1::Dataset]
|
356
357
|
#
|
357
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
358
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
358
359
|
#
|
359
360
|
def get_dataset request, options = nil
|
360
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
361
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
361
362
|
|
362
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::GetDatasetRequest
|
363
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::GetDatasetRequest
|
363
364
|
|
364
365
|
# Converts hash and nil to an options object
|
365
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
366
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
366
367
|
|
367
368
|
# Customize the options with defaults
|
368
369
|
metadata = @config.rpcs.get_dataset.metadata.to_h
|
369
370
|
|
370
371
|
# Set x-goog-api-client and x-goog-user-project headers
|
371
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
372
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
372
373
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
373
374
|
gapic_version: ::Google::Cloud::Automl::V1::VERSION
|
374
375
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -389,8 +390,8 @@ module Google
|
|
389
390
|
yield response, operation if block_given?
|
390
391
|
return response
|
391
392
|
end
|
392
|
-
rescue GRPC::BadStatus => e
|
393
|
-
raise Google::Cloud::Error.from_error(e)
|
393
|
+
rescue ::GRPC::BadStatus => e
|
394
|
+
raise ::Google::Cloud::Error.from_error(e)
|
394
395
|
end
|
395
396
|
|
396
397
|
##
|
@@ -398,12 +399,12 @@ module Google
|
|
398
399
|
#
|
399
400
|
# @overload list_datasets(request, options = nil)
|
400
401
|
# Pass arguments to `list_datasets` via a request object, either of type
|
401
|
-
# {Google::Cloud::AutoML::V1::ListDatasetsRequest} or an equivalent Hash.
|
402
|
+
# {::Google::Cloud::AutoML::V1::ListDatasetsRequest} or an equivalent Hash.
|
402
403
|
#
|
403
|
-
# @param request [Google::Cloud::AutoML::V1::ListDatasetsRequest, Hash]
|
404
|
+
# @param request [::Google::Cloud::AutoML::V1::ListDatasetsRequest, ::Hash]
|
404
405
|
# A request object representing the call parameters. Required. To specify no
|
405
406
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
406
|
-
# @param options [Gapic::CallOptions, Hash]
|
407
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
407
408
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
408
409
|
#
|
409
410
|
# @overload list_datasets(parent: nil, filter: nil, page_size: nil, page_token: nil)
|
@@ -411,9 +412,9 @@ module Google
|
|
411
412
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
412
413
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
413
414
|
#
|
414
|
-
# @param parent [String]
|
415
|
+
# @param parent [::String]
|
415
416
|
# Required. The resource name of the project from which to list datasets.
|
416
|
-
# @param filter [String]
|
417
|
+
# @param filter [::String]
|
417
418
|
# An expression for filtering the results of the request.
|
418
419
|
#
|
419
420
|
# * `dataset_metadata` - for existence of the case (e.g.
|
@@ -421,36 +422,36 @@ module Google
|
|
421
422
|
#
|
422
423
|
# * `translation_dataset_metadata:*` --> The dataset has
|
423
424
|
# translation_dataset_metadata.
|
424
|
-
# @param page_size [Integer]
|
425
|
+
# @param page_size [::Integer]
|
425
426
|
# Requested page size. Server may return fewer results than requested.
|
426
427
|
# If unspecified, server will pick a default size.
|
427
|
-
# @param page_token [String]
|
428
|
+
# @param page_token [::String]
|
428
429
|
# A token identifying a page of results for the server to return
|
429
430
|
# Typically obtained via
|
430
|
-
# {Google::Cloud::AutoML::V1::ListDatasetsResponse#next_page_token ListDatasetsResponse.next_page_token} of the previous
|
431
|
-
# {Google::Cloud::AutoML::V1::AutoML::Client#list_datasets AutoMl.ListDatasets} call.
|
431
|
+
# {::Google::Cloud::AutoML::V1::ListDatasetsResponse#next_page_token ListDatasetsResponse.next_page_token} of the previous
|
432
|
+
# {::Google::Cloud::AutoML::V1::AutoML::Client#list_datasets AutoMl.ListDatasets} call.
|
432
433
|
#
|
433
434
|
# @yield [response, operation] Access the result along with the RPC operation
|
434
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
435
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
435
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AutoML::V1::Dataset>]
|
436
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
436
437
|
#
|
437
|
-
# @return [Gapic::PagedEnumerable
|
438
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::AutoML::V1::Dataset>]
|
438
439
|
#
|
439
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
440
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
440
441
|
#
|
441
442
|
def list_datasets request, options = nil
|
442
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
443
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
443
444
|
|
444
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::ListDatasetsRequest
|
445
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::ListDatasetsRequest
|
445
446
|
|
446
447
|
# Converts hash and nil to an options object
|
447
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
448
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
448
449
|
|
449
450
|
# Customize the options with defaults
|
450
451
|
metadata = @config.rpcs.list_datasets.metadata.to_h
|
451
452
|
|
452
453
|
# Set x-goog-api-client and x-goog-user-project headers
|
453
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
454
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
454
455
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
455
456
|
gapic_version: ::Google::Cloud::Automl::V1::VERSION
|
456
457
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -468,12 +469,12 @@ module Google
|
|
468
469
|
retry_policy: @config.retry_policy
|
469
470
|
|
470
471
|
@auto_ml_stub.call_rpc :list_datasets, request, options: options do |response, operation|
|
471
|
-
response = Gapic::PagedEnumerable.new @auto_ml_stub, :list_datasets, request, response, operation, options
|
472
|
+
response = ::Gapic::PagedEnumerable.new @auto_ml_stub, :list_datasets, request, response, operation, options
|
472
473
|
yield response, operation if block_given?
|
473
474
|
return response
|
474
475
|
end
|
475
|
-
rescue GRPC::BadStatus => e
|
476
|
-
raise Google::Cloud::Error.from_error(e)
|
476
|
+
rescue ::GRPC::BadStatus => e
|
477
|
+
raise ::Google::Cloud::Error.from_error(e)
|
477
478
|
end
|
478
479
|
|
479
480
|
##
|
@@ -481,12 +482,12 @@ module Google
|
|
481
482
|
#
|
482
483
|
# @overload update_dataset(request, options = nil)
|
483
484
|
# Pass arguments to `update_dataset` via a request object, either of type
|
484
|
-
# {Google::Cloud::AutoML::V1::UpdateDatasetRequest} or an equivalent Hash.
|
485
|
+
# {::Google::Cloud::AutoML::V1::UpdateDatasetRequest} or an equivalent Hash.
|
485
486
|
#
|
486
|
-
# @param request [Google::Cloud::AutoML::V1::UpdateDatasetRequest, Hash]
|
487
|
+
# @param request [::Google::Cloud::AutoML::V1::UpdateDatasetRequest, ::Hash]
|
487
488
|
# A request object representing the call parameters. Required. To specify no
|
488
489
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
489
|
-
# @param options [Gapic::CallOptions, Hash]
|
490
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
490
491
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
491
492
|
#
|
492
493
|
# @overload update_dataset(dataset: nil, update_mask: nil)
|
@@ -494,32 +495,32 @@ module Google
|
|
494
495
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
495
496
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
496
497
|
#
|
497
|
-
# @param dataset [Google::Cloud::AutoML::V1::Dataset, Hash]
|
498
|
+
# @param dataset [::Google::Cloud::AutoML::V1::Dataset, ::Hash]
|
498
499
|
# Required. The dataset which replaces the resource on the server.
|
499
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
500
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
500
501
|
# Required. The update mask applies to the resource.
|
501
502
|
#
|
502
503
|
# @yield [response, operation] Access the result along with the RPC operation
|
503
|
-
# @yieldparam response [Google::Cloud::AutoML::V1::Dataset]
|
504
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
504
|
+
# @yieldparam response [::Google::Cloud::AutoML::V1::Dataset]
|
505
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
505
506
|
#
|
506
|
-
# @return [Google::Cloud::AutoML::V1::Dataset]
|
507
|
+
# @return [::Google::Cloud::AutoML::V1::Dataset]
|
507
508
|
#
|
508
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
509
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
509
510
|
#
|
510
511
|
def update_dataset request, options = nil
|
511
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
512
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
512
513
|
|
513
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::UpdateDatasetRequest
|
514
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::UpdateDatasetRequest
|
514
515
|
|
515
516
|
# Converts hash and nil to an options object
|
516
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
517
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
517
518
|
|
518
519
|
# Customize the options with defaults
|
519
520
|
metadata = @config.rpcs.update_dataset.metadata.to_h
|
520
521
|
|
521
522
|
# Set x-goog-api-client and x-goog-user-project headers
|
522
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
523
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
523
524
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
524
525
|
gapic_version: ::Google::Cloud::Automl::V1::VERSION
|
525
526
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -540,25 +541,25 @@ module Google
|
|
540
541
|
yield response, operation if block_given?
|
541
542
|
return response
|
542
543
|
end
|
543
|
-
rescue GRPC::BadStatus => e
|
544
|
-
raise Google::Cloud::Error.from_error(e)
|
544
|
+
rescue ::GRPC::BadStatus => e
|
545
|
+
raise ::Google::Cloud::Error.from_error(e)
|
545
546
|
end
|
546
547
|
|
547
548
|
##
|
548
549
|
# Deletes a dataset and all of its contents.
|
549
550
|
# Returns empty response in the
|
550
|
-
# {Google::Longrunning::Operation#response response} field when it completes,
|
551
|
+
# {::Google::Longrunning::Operation#response response} field when it completes,
|
551
552
|
# and `delete_details` in the
|
552
|
-
# {Google::Longrunning::Operation#metadata metadata} field.
|
553
|
+
# {::Google::Longrunning::Operation#metadata metadata} field.
|
553
554
|
#
|
554
555
|
# @overload delete_dataset(request, options = nil)
|
555
556
|
# Pass arguments to `delete_dataset` via a request object, either of type
|
556
|
-
# {Google::Cloud::AutoML::V1::DeleteDatasetRequest} or an equivalent Hash.
|
557
|
+
# {::Google::Cloud::AutoML::V1::DeleteDatasetRequest} or an equivalent Hash.
|
557
558
|
#
|
558
|
-
# @param request [Google::Cloud::AutoML::V1::DeleteDatasetRequest, Hash]
|
559
|
+
# @param request [::Google::Cloud::AutoML::V1::DeleteDatasetRequest, ::Hash]
|
559
560
|
# A request object representing the call parameters. Required. To specify no
|
560
561
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
561
|
-
# @param options [Gapic::CallOptions, Hash]
|
562
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
562
563
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
563
564
|
#
|
564
565
|
# @overload delete_dataset(name: nil)
|
@@ -566,30 +567,30 @@ module Google
|
|
566
567
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
567
568
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
568
569
|
#
|
569
|
-
# @param name [String]
|
570
|
+
# @param name [::String]
|
570
571
|
# Required. The resource name of the dataset to delete.
|
571
572
|
#
|
572
573
|
# @yield [response, operation] Access the result along with the RPC operation
|
573
|
-
# @yieldparam response [Gapic::Operation]
|
574
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
574
|
+
# @yieldparam response [::Gapic::Operation]
|
575
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
575
576
|
#
|
576
|
-
# @return [Gapic::Operation]
|
577
|
+
# @return [::Gapic::Operation]
|
577
578
|
#
|
578
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
579
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
579
580
|
#
|
580
581
|
def delete_dataset request, options = nil
|
581
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
582
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
582
583
|
|
583
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::DeleteDatasetRequest
|
584
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::DeleteDatasetRequest
|
584
585
|
|
585
586
|
# Converts hash and nil to an options object
|
586
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
587
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
587
588
|
|
588
589
|
# Customize the options with defaults
|
589
590
|
metadata = @config.rpcs.delete_dataset.metadata.to_h
|
590
591
|
|
591
592
|
# Set x-goog-api-client and x-goog-user-project headers
|
592
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
593
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
593
594
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
594
595
|
gapic_version: ::Google::Cloud::Automl::V1::VERSION
|
595
596
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -607,12 +608,12 @@ module Google
|
|
607
608
|
retry_policy: @config.retry_policy
|
608
609
|
|
609
610
|
@auto_ml_stub.call_rpc :delete_dataset, request, options: options do |response, operation|
|
610
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
611
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
611
612
|
yield response, operation if block_given?
|
612
613
|
return response
|
613
614
|
end
|
614
|
-
rescue GRPC::BadStatus => e
|
615
|
-
raise Google::Cloud::Error.from_error(e)
|
615
|
+
rescue ::GRPC::BadStatus => e
|
616
|
+
raise ::Google::Cloud::Error.from_error(e)
|
616
617
|
end
|
617
618
|
|
618
619
|
##
|
@@ -621,19 +622,19 @@ module Google
|
|
621
622
|
#
|
622
623
|
# For Tables:
|
623
624
|
# * A
|
624
|
-
# {Google::Cloud::AutoML::V1::InputConfig#params schema_inference_version}
|
625
|
+
# {::Google::Cloud::AutoML::V1::InputConfig#params schema_inference_version}
|
625
626
|
# parameter must be explicitly set.
|
626
627
|
# Returns an empty response in the
|
627
|
-
# {Google::Longrunning::Operation#response response} field when it completes.
|
628
|
+
# {::Google::Longrunning::Operation#response response} field when it completes.
|
628
629
|
#
|
629
630
|
# @overload import_data(request, options = nil)
|
630
631
|
# Pass arguments to `import_data` via a request object, either of type
|
631
|
-
# {Google::Cloud::AutoML::V1::ImportDataRequest} or an equivalent Hash.
|
632
|
+
# {::Google::Cloud::AutoML::V1::ImportDataRequest} or an equivalent Hash.
|
632
633
|
#
|
633
|
-
# @param request [Google::Cloud::AutoML::V1::ImportDataRequest, Hash]
|
634
|
+
# @param request [::Google::Cloud::AutoML::V1::ImportDataRequest, ::Hash]
|
634
635
|
# A request object representing the call parameters. Required. To specify no
|
635
636
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
636
|
-
# @param options [Gapic::CallOptions, Hash]
|
637
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
637
638
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
638
639
|
#
|
639
640
|
# @overload import_data(name: nil, input_config: nil)
|
@@ -641,34 +642,34 @@ module Google
|
|
641
642
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
642
643
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
643
644
|
#
|
644
|
-
# @param name [String]
|
645
|
+
# @param name [::String]
|
645
646
|
# Required. Dataset name. Dataset must already exist. All imported
|
646
647
|
# annotations and examples will be added.
|
647
|
-
# @param input_config [Google::Cloud::AutoML::V1::InputConfig, Hash]
|
648
|
+
# @param input_config [::Google::Cloud::AutoML::V1::InputConfig, ::Hash]
|
648
649
|
# Required. The desired input location and its domain specific semantics,
|
649
650
|
# if any.
|
650
651
|
#
|
651
652
|
# @yield [response, operation] Access the result along with the RPC operation
|
652
|
-
# @yieldparam response [Gapic::Operation]
|
653
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
653
|
+
# @yieldparam response [::Gapic::Operation]
|
654
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
654
655
|
#
|
655
|
-
# @return [Gapic::Operation]
|
656
|
+
# @return [::Gapic::Operation]
|
656
657
|
#
|
657
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
658
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
658
659
|
#
|
659
660
|
def import_data request, options = nil
|
660
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
661
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
661
662
|
|
662
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::ImportDataRequest
|
663
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::ImportDataRequest
|
663
664
|
|
664
665
|
# Converts hash and nil to an options object
|
665
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
666
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
666
667
|
|
667
668
|
# Customize the options with defaults
|
668
669
|
metadata = @config.rpcs.import_data.metadata.to_h
|
669
670
|
|
670
671
|
# Set x-goog-api-client and x-goog-user-project headers
|
671
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
672
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
672
673
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
673
674
|
gapic_version: ::Google::Cloud::Automl::V1::VERSION
|
674
675
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -686,27 +687,27 @@ module Google
|
|
686
687
|
retry_policy: @config.retry_policy
|
687
688
|
|
688
689
|
@auto_ml_stub.call_rpc :import_data, request, options: options do |response, operation|
|
689
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
690
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
690
691
|
yield response, operation if block_given?
|
691
692
|
return response
|
692
693
|
end
|
693
|
-
rescue GRPC::BadStatus => e
|
694
|
-
raise Google::Cloud::Error.from_error(e)
|
694
|
+
rescue ::GRPC::BadStatus => e
|
695
|
+
raise ::Google::Cloud::Error.from_error(e)
|
695
696
|
end
|
696
697
|
|
697
698
|
##
|
698
699
|
# Exports dataset's data to the provided output location.
|
699
700
|
# Returns an empty response in the
|
700
|
-
# {Google::Longrunning::Operation#response response} field when it completes.
|
701
|
+
# {::Google::Longrunning::Operation#response response} field when it completes.
|
701
702
|
#
|
702
703
|
# @overload export_data(request, options = nil)
|
703
704
|
# Pass arguments to `export_data` via a request object, either of type
|
704
|
-
# {Google::Cloud::AutoML::V1::ExportDataRequest} or an equivalent Hash.
|
705
|
+
# {::Google::Cloud::AutoML::V1::ExportDataRequest} or an equivalent Hash.
|
705
706
|
#
|
706
|
-
# @param request [Google::Cloud::AutoML::V1::ExportDataRequest, Hash]
|
707
|
+
# @param request [::Google::Cloud::AutoML::V1::ExportDataRequest, ::Hash]
|
707
708
|
# A request object representing the call parameters. Required. To specify no
|
708
709
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
709
|
-
# @param options [Gapic::CallOptions, Hash]
|
710
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
710
711
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
711
712
|
#
|
712
713
|
# @overload export_data(name: nil, output_config: nil)
|
@@ -714,32 +715,32 @@ module Google
|
|
714
715
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
715
716
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
716
717
|
#
|
717
|
-
# @param name [String]
|
718
|
+
# @param name [::String]
|
718
719
|
# Required. The resource name of the dataset.
|
719
|
-
# @param output_config [Google::Cloud::AutoML::V1::OutputConfig, Hash]
|
720
|
+
# @param output_config [::Google::Cloud::AutoML::V1::OutputConfig, ::Hash]
|
720
721
|
# Required. The desired output location.
|
721
722
|
#
|
722
723
|
# @yield [response, operation] Access the result along with the RPC operation
|
723
|
-
# @yieldparam response [Gapic::Operation]
|
724
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
724
|
+
# @yieldparam response [::Gapic::Operation]
|
725
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
725
726
|
#
|
726
|
-
# @return [Gapic::Operation]
|
727
|
+
# @return [::Gapic::Operation]
|
727
728
|
#
|
728
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
729
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
729
730
|
#
|
730
731
|
def export_data request, options = nil
|
731
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
732
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
732
733
|
|
733
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::ExportDataRequest
|
734
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::ExportDataRequest
|
734
735
|
|
735
736
|
# Converts hash and nil to an options object
|
736
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
737
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
737
738
|
|
738
739
|
# Customize the options with defaults
|
739
740
|
metadata = @config.rpcs.export_data.metadata.to_h
|
740
741
|
|
741
742
|
# Set x-goog-api-client and x-goog-user-project headers
|
742
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
743
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
743
744
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
744
745
|
gapic_version: ::Google::Cloud::Automl::V1::VERSION
|
745
746
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -757,12 +758,12 @@ module Google
|
|
757
758
|
retry_policy: @config.retry_policy
|
758
759
|
|
759
760
|
@auto_ml_stub.call_rpc :export_data, request, options: options do |response, operation|
|
760
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
761
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
761
762
|
yield response, operation if block_given?
|
762
763
|
return response
|
763
764
|
end
|
764
|
-
rescue GRPC::BadStatus => e
|
765
|
-
raise Google::Cloud::Error.from_error(e)
|
765
|
+
rescue ::GRPC::BadStatus => e
|
766
|
+
raise ::Google::Cloud::Error.from_error(e)
|
766
767
|
end
|
767
768
|
|
768
769
|
##
|
@@ -770,12 +771,12 @@ module Google
|
|
770
771
|
#
|
771
772
|
# @overload get_annotation_spec(request, options = nil)
|
772
773
|
# Pass arguments to `get_annotation_spec` via a request object, either of type
|
773
|
-
# {Google::Cloud::AutoML::V1::GetAnnotationSpecRequest} or an equivalent Hash.
|
774
|
+
# {::Google::Cloud::AutoML::V1::GetAnnotationSpecRequest} or an equivalent Hash.
|
774
775
|
#
|
775
|
-
# @param request [Google::Cloud::AutoML::V1::GetAnnotationSpecRequest, Hash]
|
776
|
+
# @param request [::Google::Cloud::AutoML::V1::GetAnnotationSpecRequest, ::Hash]
|
776
777
|
# A request object representing the call parameters. Required. To specify no
|
777
778
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
778
|
-
# @param options [Gapic::CallOptions, Hash]
|
779
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
779
780
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
780
781
|
#
|
781
782
|
# @overload get_annotation_spec(name: nil)
|
@@ -783,30 +784,30 @@ module Google
|
|
783
784
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
784
785
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
785
786
|
#
|
786
|
-
# @param name [String]
|
787
|
+
# @param name [::String]
|
787
788
|
# Required. The resource name of the annotation spec to retrieve.
|
788
789
|
#
|
789
790
|
# @yield [response, operation] Access the result along with the RPC operation
|
790
|
-
# @yieldparam response [Google::Cloud::AutoML::V1::AnnotationSpec]
|
791
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
791
|
+
# @yieldparam response [::Google::Cloud::AutoML::V1::AnnotationSpec]
|
792
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
792
793
|
#
|
793
|
-
# @return [Google::Cloud::AutoML::V1::AnnotationSpec]
|
794
|
+
# @return [::Google::Cloud::AutoML::V1::AnnotationSpec]
|
794
795
|
#
|
795
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
796
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
796
797
|
#
|
797
798
|
def get_annotation_spec request, options = nil
|
798
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
799
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
799
800
|
|
800
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::GetAnnotationSpecRequest
|
801
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::GetAnnotationSpecRequest
|
801
802
|
|
802
803
|
# Converts hash and nil to an options object
|
803
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
804
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
804
805
|
|
805
806
|
# Customize the options with defaults
|
806
807
|
metadata = @config.rpcs.get_annotation_spec.metadata.to_h
|
807
808
|
|
808
809
|
# Set x-goog-api-client and x-goog-user-project headers
|
809
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
810
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
810
811
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
811
812
|
gapic_version: ::Google::Cloud::Automl::V1::VERSION
|
812
813
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -827,25 +828,25 @@ module Google
|
|
827
828
|
yield response, operation if block_given?
|
828
829
|
return response
|
829
830
|
end
|
830
|
-
rescue GRPC::BadStatus => e
|
831
|
-
raise Google::Cloud::Error.from_error(e)
|
831
|
+
rescue ::GRPC::BadStatus => e
|
832
|
+
raise ::Google::Cloud::Error.from_error(e)
|
832
833
|
end
|
833
834
|
|
834
835
|
##
|
835
836
|
# Creates a model.
|
836
|
-
# Returns a Model in the {Google::Longrunning::Operation#response response}
|
837
|
+
# Returns a Model in the {::Google::Longrunning::Operation#response response}
|
837
838
|
# field when it completes.
|
838
839
|
# When you create a model, several model evaluations are created for it:
|
839
840
|
# a global evaluation, and one evaluation for each annotation spec.
|
840
841
|
#
|
841
842
|
# @overload create_model(request, options = nil)
|
842
843
|
# Pass arguments to `create_model` via a request object, either of type
|
843
|
-
# {Google::Cloud::AutoML::V1::CreateModelRequest} or an equivalent Hash.
|
844
|
+
# {::Google::Cloud::AutoML::V1::CreateModelRequest} or an equivalent Hash.
|
844
845
|
#
|
845
|
-
# @param request [Google::Cloud::AutoML::V1::CreateModelRequest, Hash]
|
846
|
+
# @param request [::Google::Cloud::AutoML::V1::CreateModelRequest, ::Hash]
|
846
847
|
# A request object representing the call parameters. Required. To specify no
|
847
848
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
848
|
-
# @param options [Gapic::CallOptions, Hash]
|
849
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
849
850
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
850
851
|
#
|
851
852
|
# @overload create_model(parent: nil, model: nil)
|
@@ -853,32 +854,32 @@ module Google
|
|
853
854
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
854
855
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
855
856
|
#
|
856
|
-
# @param parent [String]
|
857
|
+
# @param parent [::String]
|
857
858
|
# Required. Resource name of the parent project where the model is being created.
|
858
|
-
# @param model [Google::Cloud::AutoML::V1::Model, Hash]
|
859
|
+
# @param model [::Google::Cloud::AutoML::V1::Model, ::Hash]
|
859
860
|
# Required. The model to create.
|
860
861
|
#
|
861
862
|
# @yield [response, operation] Access the result along with the RPC operation
|
862
|
-
# @yieldparam response [Gapic::Operation]
|
863
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
863
|
+
# @yieldparam response [::Gapic::Operation]
|
864
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
864
865
|
#
|
865
|
-
# @return [Gapic::Operation]
|
866
|
+
# @return [::Gapic::Operation]
|
866
867
|
#
|
867
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
868
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
868
869
|
#
|
869
870
|
def create_model request, options = nil
|
870
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
871
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
871
872
|
|
872
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::CreateModelRequest
|
873
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::CreateModelRequest
|
873
874
|
|
874
875
|
# Converts hash and nil to an options object
|
875
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
876
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
876
877
|
|
877
878
|
# Customize the options with defaults
|
878
879
|
metadata = @config.rpcs.create_model.metadata.to_h
|
879
880
|
|
880
881
|
# Set x-goog-api-client and x-goog-user-project headers
|
881
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
882
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
882
883
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
883
884
|
gapic_version: ::Google::Cloud::Automl::V1::VERSION
|
884
885
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -896,12 +897,12 @@ module Google
|
|
896
897
|
retry_policy: @config.retry_policy
|
897
898
|
|
898
899
|
@auto_ml_stub.call_rpc :create_model, request, options: options do |response, operation|
|
899
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
900
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
900
901
|
yield response, operation if block_given?
|
901
902
|
return response
|
902
903
|
end
|
903
|
-
rescue GRPC::BadStatus => e
|
904
|
-
raise Google::Cloud::Error.from_error(e)
|
904
|
+
rescue ::GRPC::BadStatus => e
|
905
|
+
raise ::Google::Cloud::Error.from_error(e)
|
905
906
|
end
|
906
907
|
|
907
908
|
##
|
@@ -909,12 +910,12 @@ module Google
|
|
909
910
|
#
|
910
911
|
# @overload get_model(request, options = nil)
|
911
912
|
# Pass arguments to `get_model` via a request object, either of type
|
912
|
-
# {Google::Cloud::AutoML::V1::GetModelRequest} or an equivalent Hash.
|
913
|
+
# {::Google::Cloud::AutoML::V1::GetModelRequest} or an equivalent Hash.
|
913
914
|
#
|
914
|
-
# @param request [Google::Cloud::AutoML::V1::GetModelRequest, Hash]
|
915
|
+
# @param request [::Google::Cloud::AutoML::V1::GetModelRequest, ::Hash]
|
915
916
|
# A request object representing the call parameters. Required. To specify no
|
916
917
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
917
|
-
# @param options [Gapic::CallOptions, Hash]
|
918
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
918
919
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
919
920
|
#
|
920
921
|
# @overload get_model(name: nil)
|
@@ -922,30 +923,30 @@ module Google
|
|
922
923
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
923
924
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
924
925
|
#
|
925
|
-
# @param name [String]
|
926
|
+
# @param name [::String]
|
926
927
|
# Required. Resource name of the model.
|
927
928
|
#
|
928
929
|
# @yield [response, operation] Access the result along with the RPC operation
|
929
|
-
# @yieldparam response [Google::Cloud::AutoML::V1::Model]
|
930
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
930
|
+
# @yieldparam response [::Google::Cloud::AutoML::V1::Model]
|
931
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
931
932
|
#
|
932
|
-
# @return [Google::Cloud::AutoML::V1::Model]
|
933
|
+
# @return [::Google::Cloud::AutoML::V1::Model]
|
933
934
|
#
|
934
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
935
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
935
936
|
#
|
936
937
|
def get_model request, options = nil
|
937
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
938
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
938
939
|
|
939
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::GetModelRequest
|
940
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::GetModelRequest
|
940
941
|
|
941
942
|
# Converts hash and nil to an options object
|
942
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
943
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
943
944
|
|
944
945
|
# Customize the options with defaults
|
945
946
|
metadata = @config.rpcs.get_model.metadata.to_h
|
946
947
|
|
947
948
|
# Set x-goog-api-client and x-goog-user-project headers
|
948
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
949
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
949
950
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
950
951
|
gapic_version: ::Google::Cloud::Automl::V1::VERSION
|
951
952
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -966,8 +967,8 @@ module Google
|
|
966
967
|
yield response, operation if block_given?
|
967
968
|
return response
|
968
969
|
end
|
969
|
-
rescue GRPC::BadStatus => e
|
970
|
-
raise Google::Cloud::Error.from_error(e)
|
970
|
+
rescue ::GRPC::BadStatus => e
|
971
|
+
raise ::Google::Cloud::Error.from_error(e)
|
971
972
|
end
|
972
973
|
|
973
974
|
##
|
@@ -975,12 +976,12 @@ module Google
|
|
975
976
|
#
|
976
977
|
# @overload list_models(request, options = nil)
|
977
978
|
# Pass arguments to `list_models` via a request object, either of type
|
978
|
-
# {Google::Cloud::AutoML::V1::ListModelsRequest} or an equivalent Hash.
|
979
|
+
# {::Google::Cloud::AutoML::V1::ListModelsRequest} or an equivalent Hash.
|
979
980
|
#
|
980
|
-
# @param request [Google::Cloud::AutoML::V1::ListModelsRequest, Hash]
|
981
|
+
# @param request [::Google::Cloud::AutoML::V1::ListModelsRequest, ::Hash]
|
981
982
|
# A request object representing the call parameters. Required. To specify no
|
982
983
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
983
|
-
# @param options [Gapic::CallOptions, Hash]
|
984
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
984
985
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
985
986
|
#
|
986
987
|
# @overload list_models(parent: nil, filter: nil, page_size: nil, page_token: nil)
|
@@ -988,9 +989,9 @@ module Google
|
|
988
989
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
989
990
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
990
991
|
#
|
991
|
-
# @param parent [String]
|
992
|
+
# @param parent [::String]
|
992
993
|
# Required. Resource name of the project, from which to list the models.
|
993
|
-
# @param filter [String]
|
994
|
+
# @param filter [::String]
|
994
995
|
# An expression for filtering the results of the request.
|
995
996
|
#
|
996
997
|
# * `model_metadata` - for existence of the case (e.g.
|
@@ -1000,35 +1001,35 @@ module Google
|
|
1000
1001
|
# * `image_classification_model_metadata:*` --> The model has
|
1001
1002
|
# image_classification_model_metadata.
|
1002
1003
|
# * `dataset_id=5` --> The model was created from a dataset with ID 5.
|
1003
|
-
# @param page_size [Integer]
|
1004
|
+
# @param page_size [::Integer]
|
1004
1005
|
# Requested page size.
|
1005
|
-
# @param page_token [String]
|
1006
|
+
# @param page_token [::String]
|
1006
1007
|
# A token identifying a page of results for the server to return
|
1007
1008
|
# Typically obtained via
|
1008
|
-
# {Google::Cloud::AutoML::V1::ListModelsResponse#next_page_token ListModelsResponse.next_page_token} of the previous
|
1009
|
-
# {Google::Cloud::AutoML::V1::AutoML::Client#list_models AutoMl.ListModels} call.
|
1009
|
+
# {::Google::Cloud::AutoML::V1::ListModelsResponse#next_page_token ListModelsResponse.next_page_token} of the previous
|
1010
|
+
# {::Google::Cloud::AutoML::V1::AutoML::Client#list_models AutoMl.ListModels} call.
|
1010
1011
|
#
|
1011
1012
|
# @yield [response, operation] Access the result along with the RPC operation
|
1012
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
1013
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1013
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AutoML::V1::Model>]
|
1014
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1014
1015
|
#
|
1015
|
-
# @return [Gapic::PagedEnumerable
|
1016
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::AutoML::V1::Model>]
|
1016
1017
|
#
|
1017
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1018
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1018
1019
|
#
|
1019
1020
|
def list_models request, options = nil
|
1020
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1021
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1021
1022
|
|
1022
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::ListModelsRequest
|
1023
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::ListModelsRequest
|
1023
1024
|
|
1024
1025
|
# Converts hash and nil to an options object
|
1025
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1026
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1026
1027
|
|
1027
1028
|
# Customize the options with defaults
|
1028
1029
|
metadata = @config.rpcs.list_models.metadata.to_h
|
1029
1030
|
|
1030
1031
|
# Set x-goog-api-client and x-goog-user-project headers
|
1031
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1032
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1032
1033
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1033
1034
|
gapic_version: ::Google::Cloud::Automl::V1::VERSION
|
1034
1035
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1046,29 +1047,29 @@ module Google
|
|
1046
1047
|
retry_policy: @config.retry_policy
|
1047
1048
|
|
1048
1049
|
@auto_ml_stub.call_rpc :list_models, request, options: options do |response, operation|
|
1049
|
-
response = Gapic::PagedEnumerable.new @auto_ml_stub, :list_models, request, response, operation, options
|
1050
|
+
response = ::Gapic::PagedEnumerable.new @auto_ml_stub, :list_models, request, response, operation, options
|
1050
1051
|
yield response, operation if block_given?
|
1051
1052
|
return response
|
1052
1053
|
end
|
1053
|
-
rescue GRPC::BadStatus => e
|
1054
|
-
raise Google::Cloud::Error.from_error(e)
|
1054
|
+
rescue ::GRPC::BadStatus => e
|
1055
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1055
1056
|
end
|
1056
1057
|
|
1057
1058
|
##
|
1058
1059
|
# Deletes a model.
|
1059
1060
|
# Returns `google.protobuf.Empty` in the
|
1060
|
-
# {Google::Longrunning::Operation#response response} field when it completes,
|
1061
|
+
# {::Google::Longrunning::Operation#response response} field when it completes,
|
1061
1062
|
# and `delete_details` in the
|
1062
|
-
# {Google::Longrunning::Operation#metadata metadata} field.
|
1063
|
+
# {::Google::Longrunning::Operation#metadata metadata} field.
|
1063
1064
|
#
|
1064
1065
|
# @overload delete_model(request, options = nil)
|
1065
1066
|
# Pass arguments to `delete_model` via a request object, either of type
|
1066
|
-
# {Google::Cloud::AutoML::V1::DeleteModelRequest} or an equivalent Hash.
|
1067
|
+
# {::Google::Cloud::AutoML::V1::DeleteModelRequest} or an equivalent Hash.
|
1067
1068
|
#
|
1068
|
-
# @param request [Google::Cloud::AutoML::V1::DeleteModelRequest, Hash]
|
1069
|
+
# @param request [::Google::Cloud::AutoML::V1::DeleteModelRequest, ::Hash]
|
1069
1070
|
# A request object representing the call parameters. Required. To specify no
|
1070
1071
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1071
|
-
# @param options [Gapic::CallOptions, Hash]
|
1072
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1072
1073
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1073
1074
|
#
|
1074
1075
|
# @overload delete_model(name: nil)
|
@@ -1076,30 +1077,30 @@ module Google
|
|
1076
1077
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1077
1078
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1078
1079
|
#
|
1079
|
-
# @param name [String]
|
1080
|
+
# @param name [::String]
|
1080
1081
|
# Required. Resource name of the model being deleted.
|
1081
1082
|
#
|
1082
1083
|
# @yield [response, operation] Access the result along with the RPC operation
|
1083
|
-
# @yieldparam response [Gapic::Operation]
|
1084
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1084
|
+
# @yieldparam response [::Gapic::Operation]
|
1085
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1085
1086
|
#
|
1086
|
-
# @return [Gapic::Operation]
|
1087
|
+
# @return [::Gapic::Operation]
|
1087
1088
|
#
|
1088
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1089
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1089
1090
|
#
|
1090
1091
|
def delete_model request, options = nil
|
1091
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1092
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1092
1093
|
|
1093
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::DeleteModelRequest
|
1094
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::DeleteModelRequest
|
1094
1095
|
|
1095
1096
|
# Converts hash and nil to an options object
|
1096
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1097
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1097
1098
|
|
1098
1099
|
# Customize the options with defaults
|
1099
1100
|
metadata = @config.rpcs.delete_model.metadata.to_h
|
1100
1101
|
|
1101
1102
|
# Set x-goog-api-client and x-goog-user-project headers
|
1102
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1103
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1103
1104
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1104
1105
|
gapic_version: ::Google::Cloud::Automl::V1::VERSION
|
1105
1106
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1117,12 +1118,12 @@ module Google
|
|
1117
1118
|
retry_policy: @config.retry_policy
|
1118
1119
|
|
1119
1120
|
@auto_ml_stub.call_rpc :delete_model, request, options: options do |response, operation|
|
1120
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
1121
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1121
1122
|
yield response, operation if block_given?
|
1122
1123
|
return response
|
1123
1124
|
end
|
1124
|
-
rescue GRPC::BadStatus => e
|
1125
|
-
raise Google::Cloud::Error.from_error(e)
|
1125
|
+
rescue ::GRPC::BadStatus => e
|
1126
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1126
1127
|
end
|
1127
1128
|
|
1128
1129
|
##
|
@@ -1130,12 +1131,12 @@ module Google
|
|
1130
1131
|
#
|
1131
1132
|
# @overload update_model(request, options = nil)
|
1132
1133
|
# Pass arguments to `update_model` via a request object, either of type
|
1133
|
-
# {Google::Cloud::AutoML::V1::UpdateModelRequest} or an equivalent Hash.
|
1134
|
+
# {::Google::Cloud::AutoML::V1::UpdateModelRequest} or an equivalent Hash.
|
1134
1135
|
#
|
1135
|
-
# @param request [Google::Cloud::AutoML::V1::UpdateModelRequest, Hash]
|
1136
|
+
# @param request [::Google::Cloud::AutoML::V1::UpdateModelRequest, ::Hash]
|
1136
1137
|
# A request object representing the call parameters. Required. To specify no
|
1137
1138
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1138
|
-
# @param options [Gapic::CallOptions, Hash]
|
1139
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1139
1140
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1140
1141
|
#
|
1141
1142
|
# @overload update_model(model: nil, update_mask: nil)
|
@@ -1143,32 +1144,32 @@ module Google
|
|
1143
1144
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1144
1145
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1145
1146
|
#
|
1146
|
-
# @param model [Google::Cloud::AutoML::V1::Model, Hash]
|
1147
|
+
# @param model [::Google::Cloud::AutoML::V1::Model, ::Hash]
|
1147
1148
|
# Required. The model which replaces the resource on the server.
|
1148
|
-
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
1149
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1149
1150
|
# Required. The update mask applies to the resource.
|
1150
1151
|
#
|
1151
1152
|
# @yield [response, operation] Access the result along with the RPC operation
|
1152
|
-
# @yieldparam response [Google::Cloud::AutoML::V1::Model]
|
1153
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1153
|
+
# @yieldparam response [::Google::Cloud::AutoML::V1::Model]
|
1154
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1154
1155
|
#
|
1155
|
-
# @return [Google::Cloud::AutoML::V1::Model]
|
1156
|
+
# @return [::Google::Cloud::AutoML::V1::Model]
|
1156
1157
|
#
|
1157
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1158
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1158
1159
|
#
|
1159
1160
|
def update_model request, options = nil
|
1160
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1161
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1161
1162
|
|
1162
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::UpdateModelRequest
|
1163
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::UpdateModelRequest
|
1163
1164
|
|
1164
1165
|
# Converts hash and nil to an options object
|
1165
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1166
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1166
1167
|
|
1167
1168
|
# Customize the options with defaults
|
1168
1169
|
metadata = @config.rpcs.update_model.metadata.to_h
|
1169
1170
|
|
1170
1171
|
# Set x-goog-api-client and x-goog-user-project headers
|
1171
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1172
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1172
1173
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1173
1174
|
gapic_version: ::Google::Cloud::Automl::V1::VERSION
|
1174
1175
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1189,8 +1190,8 @@ module Google
|
|
1189
1190
|
yield response, operation if block_given?
|
1190
1191
|
return response
|
1191
1192
|
end
|
1192
|
-
rescue GRPC::BadStatus => e
|
1193
|
-
raise Google::Cloud::Error.from_error(e)
|
1193
|
+
rescue ::GRPC::BadStatus => e
|
1194
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1194
1195
|
end
|
1195
1196
|
|
1196
1197
|
##
|
@@ -1205,16 +1206,16 @@ module Google
|
|
1205
1206
|
# deployment automatically.
|
1206
1207
|
#
|
1207
1208
|
# Returns an empty response in the
|
1208
|
-
# {Google::Longrunning::Operation#response response} field when it completes.
|
1209
|
+
# {::Google::Longrunning::Operation#response response} field when it completes.
|
1209
1210
|
#
|
1210
1211
|
# @overload deploy_model(request, options = nil)
|
1211
1212
|
# Pass arguments to `deploy_model` via a request object, either of type
|
1212
|
-
# {Google::Cloud::AutoML::V1::DeployModelRequest} or an equivalent Hash.
|
1213
|
+
# {::Google::Cloud::AutoML::V1::DeployModelRequest} or an equivalent Hash.
|
1213
1214
|
#
|
1214
|
-
# @param request [Google::Cloud::AutoML::V1::DeployModelRequest, Hash]
|
1215
|
+
# @param request [::Google::Cloud::AutoML::V1::DeployModelRequest, ::Hash]
|
1215
1216
|
# A request object representing the call parameters. Required. To specify no
|
1216
1217
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1217
|
-
# @param options [Gapic::CallOptions, Hash]
|
1218
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1218
1219
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1219
1220
|
#
|
1220
1221
|
# @overload deploy_model(image_object_detection_model_deployment_metadata: nil, image_classification_model_deployment_metadata: nil, name: nil)
|
@@ -1222,34 +1223,34 @@ module Google
|
|
1222
1223
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1223
1224
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1224
1225
|
#
|
1225
|
-
# @param image_object_detection_model_deployment_metadata [Google::Cloud::AutoML::V1::ImageObjectDetectionModelDeploymentMetadata, Hash]
|
1226
|
+
# @param image_object_detection_model_deployment_metadata [::Google::Cloud::AutoML::V1::ImageObjectDetectionModelDeploymentMetadata, ::Hash]
|
1226
1227
|
# Model deployment metadata specific to Image Object Detection.
|
1227
|
-
# @param image_classification_model_deployment_metadata [Google::Cloud::AutoML::V1::ImageClassificationModelDeploymentMetadata, Hash]
|
1228
|
+
# @param image_classification_model_deployment_metadata [::Google::Cloud::AutoML::V1::ImageClassificationModelDeploymentMetadata, ::Hash]
|
1228
1229
|
# Model deployment metadata specific to Image Classification.
|
1229
|
-
# @param name [String]
|
1230
|
+
# @param name [::String]
|
1230
1231
|
# Required. Resource name of the model to deploy.
|
1231
1232
|
#
|
1232
1233
|
# @yield [response, operation] Access the result along with the RPC operation
|
1233
|
-
# @yieldparam response [Gapic::Operation]
|
1234
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1234
|
+
# @yieldparam response [::Gapic::Operation]
|
1235
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1235
1236
|
#
|
1236
|
-
# @return [Gapic::Operation]
|
1237
|
+
# @return [::Gapic::Operation]
|
1237
1238
|
#
|
1238
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1239
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1239
1240
|
#
|
1240
1241
|
def deploy_model request, options = nil
|
1241
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1242
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1242
1243
|
|
1243
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::DeployModelRequest
|
1244
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::DeployModelRequest
|
1244
1245
|
|
1245
1246
|
# Converts hash and nil to an options object
|
1246
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1247
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1247
1248
|
|
1248
1249
|
# Customize the options with defaults
|
1249
1250
|
metadata = @config.rpcs.deploy_model.metadata.to_h
|
1250
1251
|
|
1251
1252
|
# Set x-goog-api-client and x-goog-user-project headers
|
1252
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1253
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1253
1254
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1254
1255
|
gapic_version: ::Google::Cloud::Automl::V1::VERSION
|
1255
1256
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1267,12 +1268,12 @@ module Google
|
|
1267
1268
|
retry_policy: @config.retry_policy
|
1268
1269
|
|
1269
1270
|
@auto_ml_stub.call_rpc :deploy_model, request, options: options do |response, operation|
|
1270
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
1271
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1271
1272
|
yield response, operation if block_given?
|
1272
1273
|
return response
|
1273
1274
|
end
|
1274
|
-
rescue GRPC::BadStatus => e
|
1275
|
-
raise Google::Cloud::Error.from_error(e)
|
1275
|
+
rescue ::GRPC::BadStatus => e
|
1276
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1276
1277
|
end
|
1277
1278
|
|
1278
1279
|
##
|
@@ -1282,16 +1283,16 @@ module Google
|
|
1282
1283
|
# all other domains manage deployment automatically.
|
1283
1284
|
#
|
1284
1285
|
# Returns an empty response in the
|
1285
|
-
# {Google::Longrunning::Operation#response response} field when it completes.
|
1286
|
+
# {::Google::Longrunning::Operation#response response} field when it completes.
|
1286
1287
|
#
|
1287
1288
|
# @overload undeploy_model(request, options = nil)
|
1288
1289
|
# Pass arguments to `undeploy_model` via a request object, either of type
|
1289
|
-
# {Google::Cloud::AutoML::V1::UndeployModelRequest} or an equivalent Hash.
|
1290
|
+
# {::Google::Cloud::AutoML::V1::UndeployModelRequest} or an equivalent Hash.
|
1290
1291
|
#
|
1291
|
-
# @param request [Google::Cloud::AutoML::V1::UndeployModelRequest, Hash]
|
1292
|
+
# @param request [::Google::Cloud::AutoML::V1::UndeployModelRequest, ::Hash]
|
1292
1293
|
# A request object representing the call parameters. Required. To specify no
|
1293
1294
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1294
|
-
# @param options [Gapic::CallOptions, Hash]
|
1295
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1295
1296
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1296
1297
|
#
|
1297
1298
|
# @overload undeploy_model(name: nil)
|
@@ -1299,30 +1300,30 @@ module Google
|
|
1299
1300
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1300
1301
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1301
1302
|
#
|
1302
|
-
# @param name [String]
|
1303
|
+
# @param name [::String]
|
1303
1304
|
# Required. Resource name of the model to undeploy.
|
1304
1305
|
#
|
1305
1306
|
# @yield [response, operation] Access the result along with the RPC operation
|
1306
|
-
# @yieldparam response [Gapic::Operation]
|
1307
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1307
|
+
# @yieldparam response [::Gapic::Operation]
|
1308
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1308
1309
|
#
|
1309
|
-
# @return [Gapic::Operation]
|
1310
|
+
# @return [::Gapic::Operation]
|
1310
1311
|
#
|
1311
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1312
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1312
1313
|
#
|
1313
1314
|
def undeploy_model request, options = nil
|
1314
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1315
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1315
1316
|
|
1316
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::UndeployModelRequest
|
1317
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::UndeployModelRequest
|
1317
1318
|
|
1318
1319
|
# Converts hash and nil to an options object
|
1319
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1320
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1320
1321
|
|
1321
1322
|
# Customize the options with defaults
|
1322
1323
|
metadata = @config.rpcs.undeploy_model.metadata.to_h
|
1323
1324
|
|
1324
1325
|
# Set x-goog-api-client and x-goog-user-project headers
|
1325
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1326
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1326
1327
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1327
1328
|
gapic_version: ::Google::Cloud::Automl::V1::VERSION
|
1328
1329
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1340,31 +1341,31 @@ module Google
|
|
1340
1341
|
retry_policy: @config.retry_policy
|
1341
1342
|
|
1342
1343
|
@auto_ml_stub.call_rpc :undeploy_model, request, options: options do |response, operation|
|
1343
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
1344
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1344
1345
|
yield response, operation if block_given?
|
1345
1346
|
return response
|
1346
1347
|
end
|
1347
|
-
rescue GRPC::BadStatus => e
|
1348
|
-
raise Google::Cloud::Error.from_error(e)
|
1348
|
+
rescue ::GRPC::BadStatus => e
|
1349
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1349
1350
|
end
|
1350
1351
|
|
1351
1352
|
##
|
1352
1353
|
# Exports a trained, "export-able", model to a user specified Google Cloud
|
1353
1354
|
# Storage location. A model is considered export-able if and only if it has
|
1354
1355
|
# an export format defined for it in
|
1355
|
-
# {Google::Cloud::AutoML::V1::ModelExportOutputConfig ModelExportOutputConfig}.
|
1356
|
+
# {::Google::Cloud::AutoML::V1::ModelExportOutputConfig ModelExportOutputConfig}.
|
1356
1357
|
#
|
1357
1358
|
# Returns an empty response in the
|
1358
|
-
# {Google::Longrunning::Operation#response response} field when it completes.
|
1359
|
+
# {::Google::Longrunning::Operation#response response} field when it completes.
|
1359
1360
|
#
|
1360
1361
|
# @overload export_model(request, options = nil)
|
1361
1362
|
# Pass arguments to `export_model` via a request object, either of type
|
1362
|
-
# {Google::Cloud::AutoML::V1::ExportModelRequest} or an equivalent Hash.
|
1363
|
+
# {::Google::Cloud::AutoML::V1::ExportModelRequest} or an equivalent Hash.
|
1363
1364
|
#
|
1364
|
-
# @param request [Google::Cloud::AutoML::V1::ExportModelRequest, Hash]
|
1365
|
+
# @param request [::Google::Cloud::AutoML::V1::ExportModelRequest, ::Hash]
|
1365
1366
|
# A request object representing the call parameters. Required. To specify no
|
1366
1367
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1367
|
-
# @param options [Gapic::CallOptions, Hash]
|
1368
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1368
1369
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1369
1370
|
#
|
1370
1371
|
# @overload export_model(name: nil, output_config: nil)
|
@@ -1372,32 +1373,32 @@ module Google
|
|
1372
1373
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1373
1374
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1374
1375
|
#
|
1375
|
-
# @param name [String]
|
1376
|
+
# @param name [::String]
|
1376
1377
|
# Required. The resource name of the model to export.
|
1377
|
-
# @param output_config [Google::Cloud::AutoML::V1::ModelExportOutputConfig, Hash]
|
1378
|
+
# @param output_config [::Google::Cloud::AutoML::V1::ModelExportOutputConfig, ::Hash]
|
1378
1379
|
# Required. The desired output location and configuration.
|
1379
1380
|
#
|
1380
1381
|
# @yield [response, operation] Access the result along with the RPC operation
|
1381
|
-
# @yieldparam response [Gapic::Operation]
|
1382
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1382
|
+
# @yieldparam response [::Gapic::Operation]
|
1383
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1383
1384
|
#
|
1384
|
-
# @return [Gapic::Operation]
|
1385
|
+
# @return [::Gapic::Operation]
|
1385
1386
|
#
|
1386
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1387
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1387
1388
|
#
|
1388
1389
|
def export_model request, options = nil
|
1389
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1390
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1390
1391
|
|
1391
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::ExportModelRequest
|
1392
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::ExportModelRequest
|
1392
1393
|
|
1393
1394
|
# Converts hash and nil to an options object
|
1394
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1395
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1395
1396
|
|
1396
1397
|
# Customize the options with defaults
|
1397
1398
|
metadata = @config.rpcs.export_model.metadata.to_h
|
1398
1399
|
|
1399
1400
|
# Set x-goog-api-client and x-goog-user-project headers
|
1400
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1401
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1401
1402
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1402
1403
|
gapic_version: ::Google::Cloud::Automl::V1::VERSION
|
1403
1404
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1415,12 +1416,12 @@ module Google
|
|
1415
1416
|
retry_policy: @config.retry_policy
|
1416
1417
|
|
1417
1418
|
@auto_ml_stub.call_rpc :export_model, request, options: options do |response, operation|
|
1418
|
-
response = Gapic::Operation.new response, @operations_client, options: options
|
1419
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1419
1420
|
yield response, operation if block_given?
|
1420
1421
|
return response
|
1421
1422
|
end
|
1422
|
-
rescue GRPC::BadStatus => e
|
1423
|
-
raise Google::Cloud::Error.from_error(e)
|
1423
|
+
rescue ::GRPC::BadStatus => e
|
1424
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1424
1425
|
end
|
1425
1426
|
|
1426
1427
|
##
|
@@ -1428,12 +1429,12 @@ module Google
|
|
1428
1429
|
#
|
1429
1430
|
# @overload get_model_evaluation(request, options = nil)
|
1430
1431
|
# Pass arguments to `get_model_evaluation` via a request object, either of type
|
1431
|
-
# {Google::Cloud::AutoML::V1::GetModelEvaluationRequest} or an equivalent Hash.
|
1432
|
+
# {::Google::Cloud::AutoML::V1::GetModelEvaluationRequest} or an equivalent Hash.
|
1432
1433
|
#
|
1433
|
-
# @param request [Google::Cloud::AutoML::V1::GetModelEvaluationRequest, Hash]
|
1434
|
+
# @param request [::Google::Cloud::AutoML::V1::GetModelEvaluationRequest, ::Hash]
|
1434
1435
|
# A request object representing the call parameters. Required. To specify no
|
1435
1436
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1436
|
-
# @param options [Gapic::CallOptions, Hash]
|
1437
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1437
1438
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1438
1439
|
#
|
1439
1440
|
# @overload get_model_evaluation(name: nil)
|
@@ -1441,30 +1442,30 @@ module Google
|
|
1441
1442
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1442
1443
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1443
1444
|
#
|
1444
|
-
# @param name [String]
|
1445
|
+
# @param name [::String]
|
1445
1446
|
# Required. Resource name for the model evaluation.
|
1446
1447
|
#
|
1447
1448
|
# @yield [response, operation] Access the result along with the RPC operation
|
1448
|
-
# @yieldparam response [Google::Cloud::AutoML::V1::ModelEvaluation]
|
1449
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1449
|
+
# @yieldparam response [::Google::Cloud::AutoML::V1::ModelEvaluation]
|
1450
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1450
1451
|
#
|
1451
|
-
# @return [Google::Cloud::AutoML::V1::ModelEvaluation]
|
1452
|
+
# @return [::Google::Cloud::AutoML::V1::ModelEvaluation]
|
1452
1453
|
#
|
1453
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1454
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1454
1455
|
#
|
1455
1456
|
def get_model_evaluation request, options = nil
|
1456
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1457
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1457
1458
|
|
1458
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::GetModelEvaluationRequest
|
1459
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::GetModelEvaluationRequest
|
1459
1460
|
|
1460
1461
|
# Converts hash and nil to an options object
|
1461
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1462
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1462
1463
|
|
1463
1464
|
# Customize the options with defaults
|
1464
1465
|
metadata = @config.rpcs.get_model_evaluation.metadata.to_h
|
1465
1466
|
|
1466
1467
|
# Set x-goog-api-client and x-goog-user-project headers
|
1467
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1468
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1468
1469
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1469
1470
|
gapic_version: ::Google::Cloud::Automl::V1::VERSION
|
1470
1471
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1485,8 +1486,8 @@ module Google
|
|
1485
1486
|
yield response, operation if block_given?
|
1486
1487
|
return response
|
1487
1488
|
end
|
1488
|
-
rescue GRPC::BadStatus => e
|
1489
|
-
raise Google::Cloud::Error.from_error(e)
|
1489
|
+
rescue ::GRPC::BadStatus => e
|
1490
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1490
1491
|
end
|
1491
1492
|
|
1492
1493
|
##
|
@@ -1494,12 +1495,12 @@ module Google
|
|
1494
1495
|
#
|
1495
1496
|
# @overload list_model_evaluations(request, options = nil)
|
1496
1497
|
# Pass arguments to `list_model_evaluations` via a request object, either of type
|
1497
|
-
# {Google::Cloud::AutoML::V1::ListModelEvaluationsRequest} or an equivalent Hash.
|
1498
|
+
# {::Google::Cloud::AutoML::V1::ListModelEvaluationsRequest} or an equivalent Hash.
|
1498
1499
|
#
|
1499
|
-
# @param request [Google::Cloud::AutoML::V1::ListModelEvaluationsRequest, Hash]
|
1500
|
+
# @param request [::Google::Cloud::AutoML::V1::ListModelEvaluationsRequest, ::Hash]
|
1500
1501
|
# A request object representing the call parameters. Required. To specify no
|
1501
1502
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1502
|
-
# @param options [Gapic::CallOptions, Hash]
|
1503
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1503
1504
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1504
1505
|
#
|
1505
1506
|
# @overload list_model_evaluations(parent: nil, filter: nil, page_size: nil, page_token: nil)
|
@@ -1507,11 +1508,11 @@ module Google
|
|
1507
1508
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1508
1509
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1509
1510
|
#
|
1510
|
-
# @param parent [String]
|
1511
|
+
# @param parent [::String]
|
1511
1512
|
# Required. Resource name of the model to list the model evaluations for.
|
1512
1513
|
# If modelId is set as "-", this will list model evaluations from across all
|
1513
1514
|
# models of the parent location.
|
1514
|
-
# @param filter [String]
|
1515
|
+
# @param filter [::String]
|
1515
1516
|
# Required. An expression for filtering the results of the request.
|
1516
1517
|
#
|
1517
1518
|
# * `annotation_spec_id` - for =, != or existence. See example below for
|
@@ -1523,35 +1524,35 @@ module Google
|
|
1523
1524
|
# annotation spec with ID different than 4.
|
1524
1525
|
# * `NOT annotation_spec_id:*` --> The model evaluation was done for
|
1525
1526
|
# aggregate of all annotation specs.
|
1526
|
-
# @param page_size [Integer]
|
1527
|
+
# @param page_size [::Integer]
|
1527
1528
|
# Requested page size.
|
1528
|
-
# @param page_token [String]
|
1529
|
+
# @param page_token [::String]
|
1529
1530
|
# A token identifying a page of results for the server to return.
|
1530
1531
|
# Typically obtained via
|
1531
|
-
# {Google::Cloud::AutoML::V1::ListModelEvaluationsResponse#next_page_token ListModelEvaluationsResponse.next_page_token} of the previous
|
1532
|
-
# {Google::Cloud::AutoML::V1::AutoML::Client#list_model_evaluations AutoMl.ListModelEvaluations} call.
|
1532
|
+
# {::Google::Cloud::AutoML::V1::ListModelEvaluationsResponse#next_page_token ListModelEvaluationsResponse.next_page_token} of the previous
|
1533
|
+
# {::Google::Cloud::AutoML::V1::AutoML::Client#list_model_evaluations AutoMl.ListModelEvaluations} call.
|
1533
1534
|
#
|
1534
1535
|
# @yield [response, operation] Access the result along with the RPC operation
|
1535
|
-
# @yieldparam response [Gapic::PagedEnumerable
|
1536
|
-
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
1536
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AutoML::V1::ModelEvaluation>]
|
1537
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1537
1538
|
#
|
1538
|
-
# @return [Gapic::PagedEnumerable
|
1539
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::AutoML::V1::ModelEvaluation>]
|
1539
1540
|
#
|
1540
|
-
# @raise [Google::Cloud::Error] if the RPC is aborted.
|
1541
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1541
1542
|
#
|
1542
1543
|
def list_model_evaluations request, options = nil
|
1543
|
-
raise ArgumentError, "request must be provided" if request.nil?
|
1544
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1544
1545
|
|
1545
|
-
request = Gapic::Protobuf.coerce request, to: Google::Cloud::AutoML::V1::ListModelEvaluationsRequest
|
1546
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AutoML::V1::ListModelEvaluationsRequest
|
1546
1547
|
|
1547
1548
|
# Converts hash and nil to an options object
|
1548
|
-
options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1549
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1549
1550
|
|
1550
1551
|
# Customize the options with defaults
|
1551
1552
|
metadata = @config.rpcs.list_model_evaluations.metadata.to_h
|
1552
1553
|
|
1553
1554
|
# Set x-goog-api-client and x-goog-user-project headers
|
1554
|
-
metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
|
1555
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1555
1556
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1556
1557
|
gapic_version: ::Google::Cloud::Automl::V1::VERSION
|
1557
1558
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
@@ -1569,12 +1570,12 @@ module Google
|
|
1569
1570
|
retry_policy: @config.retry_policy
|
1570
1571
|
|
1571
1572
|
@auto_ml_stub.call_rpc :list_model_evaluations, request, options: options do |response, operation|
|
1572
|
-
response = Gapic::PagedEnumerable.new @auto_ml_stub, :list_model_evaluations, request, response, operation, options
|
1573
|
+
response = ::Gapic::PagedEnumerable.new @auto_ml_stub, :list_model_evaluations, request, response, operation, options
|
1573
1574
|
yield response, operation if block_given?
|
1574
1575
|
return response
|
1575
1576
|
end
|
1576
|
-
rescue GRPC::BadStatus => e
|
1577
|
-
raise Google::Cloud::Error.from_error(e)
|
1577
|
+
rescue ::GRPC::BadStatus => e
|
1578
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1578
1579
|
end
|
1579
1580
|
|
1580
1581
|
##
|
@@ -1584,7 +1585,7 @@ module Google
|
|
1584
1585
|
# providing control over timeouts, retry behavior, logging, transport
|
1585
1586
|
# parameters, and other low-level controls. Certain parameters can also be
|
1586
1587
|
# applied individually to specific RPCs. See
|
1587
|
-
# {Google::Cloud::AutoML::V1::AutoML::Client::Configuration::Rpcs}
|
1588
|
+
# {::Google::Cloud::AutoML::V1::AutoML::Client::Configuration::Rpcs}
|
1588
1589
|
# for a list of RPCs that can be configured independently.
|
1589
1590
|
#
|
1590
1591
|
# Configuration can be applied globally to all clients, or to a single client
|
@@ -1595,22 +1596,22 @@ module Google
|
|
1595
1596
|
# To modify the global config, setting the timeout for create_dataset
|
1596
1597
|
# to 20 seconds, and all remaining timeouts to 10 seconds:
|
1597
1598
|
#
|
1598
|
-
# Google::Cloud::AutoML::V1::AutoML::Client.configure do |config|
|
1599
|
-
# config.timeout =
|
1600
|
-
# config.rpcs.create_dataset.timeout =
|
1599
|
+
# ::Google::Cloud::AutoML::V1::AutoML::Client.configure do |config|
|
1600
|
+
# config.timeout = 10.0
|
1601
|
+
# config.rpcs.create_dataset.timeout = 20.0
|
1601
1602
|
# end
|
1602
1603
|
#
|
1603
1604
|
# To apply the above configuration only to a new client:
|
1604
1605
|
#
|
1605
|
-
# client = Google::Cloud::AutoML::V1::AutoML::Client.new do |config|
|
1606
|
-
# config.timeout =
|
1607
|
-
# config.rpcs.create_dataset.timeout =
|
1606
|
+
# client = ::Google::Cloud::AutoML::V1::AutoML::Client.new do |config|
|
1607
|
+
# config.timeout = 10.0
|
1608
|
+
# config.rpcs.create_dataset.timeout = 20.0
|
1608
1609
|
# end
|
1609
1610
|
#
|
1610
1611
|
# @!attribute [rw] endpoint
|
1611
1612
|
# The hostname or hostname:port of the service endpoint.
|
1612
1613
|
# Defaults to `"automl.googleapis.com"`.
|
1613
|
-
# @return [String]
|
1614
|
+
# @return [::String]
|
1614
1615
|
# @!attribute [rw] credentials
|
1615
1616
|
# Credentials to send with calls. You may provide any of the following types:
|
1616
1617
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -1622,29 +1623,29 @@ module Google
|
|
1622
1623
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1623
1624
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1624
1625
|
# * (`nil`) indicating no credentials
|
1625
|
-
# @return [Object]
|
1626
|
+
# @return [::Object]
|
1626
1627
|
# @!attribute [rw] scope
|
1627
1628
|
# The OAuth scopes
|
1628
|
-
# @return [Array
|
1629
|
+
# @return [::Array<::String>]
|
1629
1630
|
# @!attribute [rw] lib_name
|
1630
1631
|
# The library name as recorded in instrumentation and logging
|
1631
|
-
# @return [String]
|
1632
|
+
# @return [::String]
|
1632
1633
|
# @!attribute [rw] lib_version
|
1633
1634
|
# The library version as recorded in instrumentation and logging
|
1634
|
-
# @return [String]
|
1635
|
+
# @return [::String]
|
1635
1636
|
# @!attribute [rw] channel_args
|
1636
1637
|
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
1637
1638
|
# `GRPC::Core::Channel` object is provided as the credential.
|
1638
|
-
# @return [Hash]
|
1639
|
+
# @return [::Hash]
|
1639
1640
|
# @!attribute [rw] interceptors
|
1640
1641
|
# An array of interceptors that are run before calls are executed.
|
1641
|
-
# @return [Array
|
1642
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
1642
1643
|
# @!attribute [rw] timeout
|
1643
|
-
# The call timeout in
|
1644
|
-
# @return [Numeric]
|
1644
|
+
# The call timeout in seconds.
|
1645
|
+
# @return [::Numeric]
|
1645
1646
|
# @!attribute [rw] metadata
|
1646
1647
|
# Additional gRPC headers to be sent with the call.
|
1647
|
-
# @return [Hash{Symbol
|
1648
|
+
# @return [::Hash{::Symbol=>::String}]
|
1648
1649
|
# @!attribute [rw] retry_policy
|
1649
1650
|
# The retry policy. The value is a hash with the following keys:
|
1650
1651
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
@@ -1652,25 +1653,29 @@ module Google
|
|
1652
1653
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
1653
1654
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1654
1655
|
# trigger a retry.
|
1655
|
-
# @return [Hash]
|
1656
|
+
# @return [::Hash]
|
1657
|
+
# @!attribute [rw] quota_project
|
1658
|
+
# A separate project against which to charge quota.
|
1659
|
+
# @return [::String]
|
1656
1660
|
#
|
1657
1661
|
class Configuration
|
1658
|
-
extend Gapic::Config
|
1662
|
+
extend ::Gapic::Config
|
1659
1663
|
|
1660
|
-
config_attr :endpoint,
|
1661
|
-
config_attr :credentials,
|
1664
|
+
config_attr :endpoint, "automl.googleapis.com", ::String
|
1665
|
+
config_attr :credentials, nil do |value|
|
1662
1666
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1663
1667
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
1664
1668
|
allowed.any? { |klass| klass === value }
|
1665
1669
|
end
|
1666
|
-
config_attr :scope,
|
1667
|
-
config_attr :lib_name,
|
1668
|
-
config_attr :lib_version,
|
1669
|
-
config_attr(:channel_args,
|
1670
|
-
config_attr :interceptors,
|
1671
|
-
config_attr :timeout,
|
1672
|
-
config_attr :metadata,
|
1673
|
-
config_attr :retry_policy,
|
1670
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
1671
|
+
config_attr :lib_name, nil, ::String, nil
|
1672
|
+
config_attr :lib_version, nil, ::String, nil
|
1673
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
1674
|
+
config_attr :interceptors, nil, ::Array, nil
|
1675
|
+
config_attr :timeout, nil, ::Numeric, nil
|
1676
|
+
config_attr :metadata, nil, ::Hash, nil
|
1677
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1678
|
+
config_attr :quota_project, nil, ::String, nil
|
1674
1679
|
|
1675
1680
|
# @private
|
1676
1681
|
def initialize parent_config = nil
|
@@ -1686,7 +1691,7 @@ module Google
|
|
1686
1691
|
def rpcs
|
1687
1692
|
@rpcs ||= begin
|
1688
1693
|
parent_rpcs = nil
|
1689
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
1694
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
1690
1695
|
Rpcs.new parent_rpcs
|
1691
1696
|
end
|
1692
1697
|
end
|
@@ -1711,133 +1716,133 @@ module Google
|
|
1711
1716
|
class Rpcs
|
1712
1717
|
##
|
1713
1718
|
# RPC-specific configuration for `create_dataset`
|
1714
|
-
# @return [Gapic::Config::Method]
|
1719
|
+
# @return [::Gapic::Config::Method]
|
1715
1720
|
#
|
1716
1721
|
attr_reader :create_dataset
|
1717
1722
|
##
|
1718
1723
|
# RPC-specific configuration for `get_dataset`
|
1719
|
-
# @return [Gapic::Config::Method]
|
1724
|
+
# @return [::Gapic::Config::Method]
|
1720
1725
|
#
|
1721
1726
|
attr_reader :get_dataset
|
1722
1727
|
##
|
1723
1728
|
# RPC-specific configuration for `list_datasets`
|
1724
|
-
# @return [Gapic::Config::Method]
|
1729
|
+
# @return [::Gapic::Config::Method]
|
1725
1730
|
#
|
1726
1731
|
attr_reader :list_datasets
|
1727
1732
|
##
|
1728
1733
|
# RPC-specific configuration for `update_dataset`
|
1729
|
-
# @return [Gapic::Config::Method]
|
1734
|
+
# @return [::Gapic::Config::Method]
|
1730
1735
|
#
|
1731
1736
|
attr_reader :update_dataset
|
1732
1737
|
##
|
1733
1738
|
# RPC-specific configuration for `delete_dataset`
|
1734
|
-
# @return [Gapic::Config::Method]
|
1739
|
+
# @return [::Gapic::Config::Method]
|
1735
1740
|
#
|
1736
1741
|
attr_reader :delete_dataset
|
1737
1742
|
##
|
1738
1743
|
# RPC-specific configuration for `import_data`
|
1739
|
-
# @return [Gapic::Config::Method]
|
1744
|
+
# @return [::Gapic::Config::Method]
|
1740
1745
|
#
|
1741
1746
|
attr_reader :import_data
|
1742
1747
|
##
|
1743
1748
|
# RPC-specific configuration for `export_data`
|
1744
|
-
# @return [Gapic::Config::Method]
|
1749
|
+
# @return [::Gapic::Config::Method]
|
1745
1750
|
#
|
1746
1751
|
attr_reader :export_data
|
1747
1752
|
##
|
1748
1753
|
# RPC-specific configuration for `get_annotation_spec`
|
1749
|
-
# @return [Gapic::Config::Method]
|
1754
|
+
# @return [::Gapic::Config::Method]
|
1750
1755
|
#
|
1751
1756
|
attr_reader :get_annotation_spec
|
1752
1757
|
##
|
1753
1758
|
# RPC-specific configuration for `create_model`
|
1754
|
-
# @return [Gapic::Config::Method]
|
1759
|
+
# @return [::Gapic::Config::Method]
|
1755
1760
|
#
|
1756
1761
|
attr_reader :create_model
|
1757
1762
|
##
|
1758
1763
|
# RPC-specific configuration for `get_model`
|
1759
|
-
# @return [Gapic::Config::Method]
|
1764
|
+
# @return [::Gapic::Config::Method]
|
1760
1765
|
#
|
1761
1766
|
attr_reader :get_model
|
1762
1767
|
##
|
1763
1768
|
# RPC-specific configuration for `list_models`
|
1764
|
-
# @return [Gapic::Config::Method]
|
1769
|
+
# @return [::Gapic::Config::Method]
|
1765
1770
|
#
|
1766
1771
|
attr_reader :list_models
|
1767
1772
|
##
|
1768
1773
|
# RPC-specific configuration for `delete_model`
|
1769
|
-
# @return [Gapic::Config::Method]
|
1774
|
+
# @return [::Gapic::Config::Method]
|
1770
1775
|
#
|
1771
1776
|
attr_reader :delete_model
|
1772
1777
|
##
|
1773
1778
|
# RPC-specific configuration for `update_model`
|
1774
|
-
# @return [Gapic::Config::Method]
|
1779
|
+
# @return [::Gapic::Config::Method]
|
1775
1780
|
#
|
1776
1781
|
attr_reader :update_model
|
1777
1782
|
##
|
1778
1783
|
# RPC-specific configuration for `deploy_model`
|
1779
|
-
# @return [Gapic::Config::Method]
|
1784
|
+
# @return [::Gapic::Config::Method]
|
1780
1785
|
#
|
1781
1786
|
attr_reader :deploy_model
|
1782
1787
|
##
|
1783
1788
|
# RPC-specific configuration for `undeploy_model`
|
1784
|
-
# @return [Gapic::Config::Method]
|
1789
|
+
# @return [::Gapic::Config::Method]
|
1785
1790
|
#
|
1786
1791
|
attr_reader :undeploy_model
|
1787
1792
|
##
|
1788
1793
|
# RPC-specific configuration for `export_model`
|
1789
|
-
# @return [Gapic::Config::Method]
|
1794
|
+
# @return [::Gapic::Config::Method]
|
1790
1795
|
#
|
1791
1796
|
attr_reader :export_model
|
1792
1797
|
##
|
1793
1798
|
# RPC-specific configuration for `get_model_evaluation`
|
1794
|
-
# @return [Gapic::Config::Method]
|
1799
|
+
# @return [::Gapic::Config::Method]
|
1795
1800
|
#
|
1796
1801
|
attr_reader :get_model_evaluation
|
1797
1802
|
##
|
1798
1803
|
# RPC-specific configuration for `list_model_evaluations`
|
1799
|
-
# @return [Gapic::Config::Method]
|
1804
|
+
# @return [::Gapic::Config::Method]
|
1800
1805
|
#
|
1801
1806
|
attr_reader :list_model_evaluations
|
1802
1807
|
|
1803
1808
|
# @private
|
1804
1809
|
def initialize parent_rpcs = nil
|
1805
1810
|
create_dataset_config = parent_rpcs&.create_dataset if parent_rpcs&.respond_to? :create_dataset
|
1806
|
-
@create_dataset = Gapic::Config::Method.new create_dataset_config
|
1811
|
+
@create_dataset = ::Gapic::Config::Method.new create_dataset_config
|
1807
1812
|
get_dataset_config = parent_rpcs&.get_dataset if parent_rpcs&.respond_to? :get_dataset
|
1808
|
-
@get_dataset = Gapic::Config::Method.new get_dataset_config
|
1813
|
+
@get_dataset = ::Gapic::Config::Method.new get_dataset_config
|
1809
1814
|
list_datasets_config = parent_rpcs&.list_datasets if parent_rpcs&.respond_to? :list_datasets
|
1810
|
-
@list_datasets = Gapic::Config::Method.new list_datasets_config
|
1815
|
+
@list_datasets = ::Gapic::Config::Method.new list_datasets_config
|
1811
1816
|
update_dataset_config = parent_rpcs&.update_dataset if parent_rpcs&.respond_to? :update_dataset
|
1812
|
-
@update_dataset = Gapic::Config::Method.new update_dataset_config
|
1817
|
+
@update_dataset = ::Gapic::Config::Method.new update_dataset_config
|
1813
1818
|
delete_dataset_config = parent_rpcs&.delete_dataset if parent_rpcs&.respond_to? :delete_dataset
|
1814
|
-
@delete_dataset = Gapic::Config::Method.new delete_dataset_config
|
1819
|
+
@delete_dataset = ::Gapic::Config::Method.new delete_dataset_config
|
1815
1820
|
import_data_config = parent_rpcs&.import_data if parent_rpcs&.respond_to? :import_data
|
1816
|
-
@import_data = Gapic::Config::Method.new import_data_config
|
1821
|
+
@import_data = ::Gapic::Config::Method.new import_data_config
|
1817
1822
|
export_data_config = parent_rpcs&.export_data if parent_rpcs&.respond_to? :export_data
|
1818
|
-
@export_data = Gapic::Config::Method.new export_data_config
|
1823
|
+
@export_data = ::Gapic::Config::Method.new export_data_config
|
1819
1824
|
get_annotation_spec_config = parent_rpcs&.get_annotation_spec if parent_rpcs&.respond_to? :get_annotation_spec
|
1820
|
-
@get_annotation_spec = Gapic::Config::Method.new get_annotation_spec_config
|
1825
|
+
@get_annotation_spec = ::Gapic::Config::Method.new get_annotation_spec_config
|
1821
1826
|
create_model_config = parent_rpcs&.create_model if parent_rpcs&.respond_to? :create_model
|
1822
|
-
@create_model = Gapic::Config::Method.new create_model_config
|
1827
|
+
@create_model = ::Gapic::Config::Method.new create_model_config
|
1823
1828
|
get_model_config = parent_rpcs&.get_model if parent_rpcs&.respond_to? :get_model
|
1824
|
-
@get_model = Gapic::Config::Method.new get_model_config
|
1829
|
+
@get_model = ::Gapic::Config::Method.new get_model_config
|
1825
1830
|
list_models_config = parent_rpcs&.list_models if parent_rpcs&.respond_to? :list_models
|
1826
|
-
@list_models = Gapic::Config::Method.new list_models_config
|
1831
|
+
@list_models = ::Gapic::Config::Method.new list_models_config
|
1827
1832
|
delete_model_config = parent_rpcs&.delete_model if parent_rpcs&.respond_to? :delete_model
|
1828
|
-
@delete_model = Gapic::Config::Method.new delete_model_config
|
1833
|
+
@delete_model = ::Gapic::Config::Method.new delete_model_config
|
1829
1834
|
update_model_config = parent_rpcs&.update_model if parent_rpcs&.respond_to? :update_model
|
1830
|
-
@update_model = Gapic::Config::Method.new update_model_config
|
1835
|
+
@update_model = ::Gapic::Config::Method.new update_model_config
|
1831
1836
|
deploy_model_config = parent_rpcs&.deploy_model if parent_rpcs&.respond_to? :deploy_model
|
1832
|
-
@deploy_model = Gapic::Config::Method.new deploy_model_config
|
1837
|
+
@deploy_model = ::Gapic::Config::Method.new deploy_model_config
|
1833
1838
|
undeploy_model_config = parent_rpcs&.undeploy_model if parent_rpcs&.respond_to? :undeploy_model
|
1834
|
-
@undeploy_model = Gapic::Config::Method.new undeploy_model_config
|
1839
|
+
@undeploy_model = ::Gapic::Config::Method.new undeploy_model_config
|
1835
1840
|
export_model_config = parent_rpcs&.export_model if parent_rpcs&.respond_to? :export_model
|
1836
|
-
@export_model = Gapic::Config::Method.new export_model_config
|
1841
|
+
@export_model = ::Gapic::Config::Method.new export_model_config
|
1837
1842
|
get_model_evaluation_config = parent_rpcs&.get_model_evaluation if parent_rpcs&.respond_to? :get_model_evaluation
|
1838
|
-
@get_model_evaluation = Gapic::Config::Method.new get_model_evaluation_config
|
1843
|
+
@get_model_evaluation = ::Gapic::Config::Method.new get_model_evaluation_config
|
1839
1844
|
list_model_evaluations_config = parent_rpcs&.list_model_evaluations if parent_rpcs&.respond_to? :list_model_evaluations
|
1840
|
-
@list_model_evaluations = Gapic::Config::Method.new list_model_evaluations_config
|
1845
|
+
@list_model_evaluations = ::Gapic::Config::Method.new list_model_evaluations_config
|
1841
1846
|
|
1842
1847
|
yield self if block_given?
|
1843
1848
|
end
|