google-apis-baremetalsolution_v2 0.5.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/baremetalsolution_v2/classes.rb +789 -51
- data/lib/google/apis/baremetalsolution_v2/gem_version.rb +3 -3
- data/lib/google/apis/baremetalsolution_v2/representations.rb +307 -16
- data/lib/google/apis/baremetalsolution_v2/service.rb +243 -66
- metadata +4 -4
@@ -156,6 +156,8 @@ module Google
|
|
156
156
|
# List servers in a given project and location.
|
157
157
|
# @param [String] parent
|
158
158
|
# Required. Parent value for ListInstancesRequest.
|
159
|
+
# @param [String] filter
|
160
|
+
# List filter.
|
159
161
|
# @param [Fixnum] page_size
|
160
162
|
# Requested page size. Server may return fewer items than requested. If
|
161
163
|
# unspecified, the server will pick an appropriate default.
|
@@ -178,11 +180,12 @@ module Google
|
|
178
180
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
179
181
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
180
182
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
181
|
-
def list_project_location_instances(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
183
|
+
def list_project_location_instances(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
182
184
|
command = make_simple_command(:get, 'v2/{+parent}/instances', options)
|
183
185
|
command.response_representation = Google::Apis::BaremetalsolutionV2::ListInstancesResponse::Representation
|
184
186
|
command.response_class = Google::Apis::BaremetalsolutionV2::ListInstancesResponse
|
185
187
|
command.params['parent'] = parent unless parent.nil?
|
188
|
+
command.query['filter'] = filter unless filter.nil?
|
186
189
|
command.query['pageSize'] = page_size unless page_size.nil?
|
187
190
|
command.query['pageToken'] = page_token unless page_token.nil?
|
188
191
|
command.query['fields'] = fields unless fields.nil?
|
@@ -190,6 +193,45 @@ module Google
|
|
190
193
|
execute_or_queue_command(command, &block)
|
191
194
|
end
|
192
195
|
|
196
|
+
# Update details of a single server.
|
197
|
+
# @param [String] name
|
198
|
+
# Output only. The resource name of this `Instance`. Resource names are
|
199
|
+
# schemeless URIs that follow the conventions in https://cloud.google.com/apis/
|
200
|
+
# design/resource_names. Format: `projects/`project`/locations/`location`/
|
201
|
+
# instances/`instance``
|
202
|
+
# @param [Google::Apis::BaremetalsolutionV2::Instance] instance_object
|
203
|
+
# @param [String] update_mask
|
204
|
+
# The list of fields to update. The only currently supported fields are: `labels`
|
205
|
+
# @param [String] fields
|
206
|
+
# Selector specifying which fields to include in a partial response.
|
207
|
+
# @param [String] quota_user
|
208
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
209
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
210
|
+
# @param [Google::Apis::RequestOptions] options
|
211
|
+
# Request-specific options
|
212
|
+
#
|
213
|
+
# @yield [result, err] Result & error if block supplied
|
214
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
|
215
|
+
# @yieldparam err [StandardError] error object if request failed
|
216
|
+
#
|
217
|
+
# @return [Google::Apis::BaremetalsolutionV2::Operation]
|
218
|
+
#
|
219
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
220
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
221
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
222
|
+
def patch_project_location_instance(name, instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
223
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
224
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::Instance::Representation
|
225
|
+
command.request_object = instance_object
|
226
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
|
227
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::Operation
|
228
|
+
command.params['name'] = name unless name.nil?
|
229
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
230
|
+
command.query['fields'] = fields unless fields.nil?
|
231
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
232
|
+
execute_or_queue_command(command, &block)
|
233
|
+
end
|
234
|
+
|
193
235
|
# Perform an ungraceful, hard reset on a server. Equivalent to shutting the
|
194
236
|
# power off and then turning it back on.
|
195
237
|
# @param [String] name
|
@@ -224,6 +266,39 @@ module Google
|
|
224
266
|
execute_or_queue_command(command, &block)
|
225
267
|
end
|
226
268
|
|
269
|
+
# Starts a server that was shutdown.
|
270
|
+
# @param [String] name
|
271
|
+
# Required. Name of the resource.
|
272
|
+
# @param [Google::Apis::BaremetalsolutionV2::StartInstanceRequest] start_instance_request_object
|
273
|
+
# @param [String] fields
|
274
|
+
# Selector specifying which fields to include in a partial response.
|
275
|
+
# @param [String] quota_user
|
276
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
277
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
278
|
+
# @param [Google::Apis::RequestOptions] options
|
279
|
+
# Request-specific options
|
280
|
+
#
|
281
|
+
# @yield [result, err] Result & error if block supplied
|
282
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
|
283
|
+
# @yieldparam err [StandardError] error object if request failed
|
284
|
+
#
|
285
|
+
# @return [Google::Apis::BaremetalsolutionV2::Operation]
|
286
|
+
#
|
287
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
288
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
289
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
290
|
+
def start_instance(name, start_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
291
|
+
command = make_simple_command(:post, 'v2/{+name}:start', options)
|
292
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::StartInstanceRequest::Representation
|
293
|
+
command.request_object = start_instance_request_object
|
294
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
|
295
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::Operation
|
296
|
+
command.params['name'] = name unless name.nil?
|
297
|
+
command.query['fields'] = fields unless fields.nil?
|
298
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
299
|
+
execute_or_queue_command(command, &block)
|
300
|
+
end
|
301
|
+
|
227
302
|
# Get details of a single network.
|
228
303
|
# @param [String] name
|
229
304
|
# Required. Name of the resource.
|
@@ -257,6 +332,8 @@ module Google
|
|
257
332
|
# List network in a given project and location.
|
258
333
|
# @param [String] parent
|
259
334
|
# Required. Parent value for ListNetworksRequest.
|
335
|
+
# @param [String] filter
|
336
|
+
# List filter.
|
260
337
|
# @param [Fixnum] page_size
|
261
338
|
# Requested page size. The server might return fewer items than requested. If
|
262
339
|
# unspecified, server will pick an appropriate default.
|
@@ -279,11 +356,12 @@ module Google
|
|
279
356
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
280
357
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
281
358
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
282
|
-
def list_project_location_networks(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
359
|
+
def list_project_location_networks(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
283
360
|
command = make_simple_command(:get, 'v2/{+parent}/networks', options)
|
284
361
|
command.response_representation = Google::Apis::BaremetalsolutionV2::ListNetworksResponse::Representation
|
285
362
|
command.response_class = Google::Apis::BaremetalsolutionV2::ListNetworksResponse
|
286
363
|
command.params['parent'] = parent unless parent.nil?
|
364
|
+
command.query['filter'] = filter unless filter.nil?
|
287
365
|
command.query['pageSize'] = page_size unless page_size.nil?
|
288
366
|
command.query['pageToken'] = page_token unless page_token.nil?
|
289
367
|
command.query['fields'] = fields unless fields.nil?
|
@@ -291,17 +369,10 @@ module Google
|
|
291
369
|
execute_or_queue_command(command, &block)
|
292
370
|
end
|
293
371
|
|
294
|
-
#
|
295
|
-
#
|
296
|
-
#
|
297
|
-
#
|
298
|
-
# cancellation succeeded or whether the operation completed despite cancellation.
|
299
|
-
# On successful cancellation, the operation is not deleted; instead, it becomes
|
300
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
301
|
-
# corresponding to `Code.CANCELLED`.
|
302
|
-
# @param [String] name
|
303
|
-
# The name of the operation resource to be cancelled.
|
304
|
-
# @param [Google::Apis::BaremetalsolutionV2::CancelOperationRequest] cancel_operation_request_object
|
372
|
+
# List all Networks (and used IPs for each Network) in the vendor account
|
373
|
+
# associated with the specified project.
|
374
|
+
# @param [String] location
|
375
|
+
# Required. Parent value (project and location).
|
305
376
|
# @param [String] fields
|
306
377
|
# Selector specifying which fields to include in a partial response.
|
307
378
|
# @param [String] quota_user
|
@@ -311,32 +382,33 @@ module Google
|
|
311
382
|
# Request-specific options
|
312
383
|
#
|
313
384
|
# @yield [result, err] Result & error if block supplied
|
314
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::
|
385
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::ListNetworkUsageResponse] parsed result object
|
315
386
|
# @yieldparam err [StandardError] error object if request failed
|
316
387
|
#
|
317
|
-
# @return [Google::Apis::BaremetalsolutionV2::
|
388
|
+
# @return [Google::Apis::BaremetalsolutionV2::ListNetworkUsageResponse]
|
318
389
|
#
|
319
390
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
320
391
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
321
392
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
322
|
-
def
|
323
|
-
command = make_simple_command(:
|
324
|
-
command.
|
325
|
-
command.
|
326
|
-
command.
|
327
|
-
command.response_class = Google::Apis::BaremetalsolutionV2::Empty
|
328
|
-
command.params['name'] = name unless name.nil?
|
393
|
+
def list_project_location_network_network_usage(location, fields: nil, quota_user: nil, options: nil, &block)
|
394
|
+
command = make_simple_command(:get, 'v2/{+location}/networks:listNetworkUsage', options)
|
395
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::ListNetworkUsageResponse::Representation
|
396
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::ListNetworkUsageResponse
|
397
|
+
command.params['location'] = location unless location.nil?
|
329
398
|
command.query['fields'] = fields unless fields.nil?
|
330
399
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
331
400
|
execute_or_queue_command(command, &block)
|
332
401
|
end
|
333
402
|
|
334
|
-
#
|
335
|
-
# longer interested in the operation result. It does not cancel the operation.
|
336
|
-
# If the server doesn't support this method, it returns `google.rpc.Code.
|
337
|
-
# UNIMPLEMENTED`.
|
403
|
+
# Update details of a single network.
|
338
404
|
# @param [String] name
|
339
|
-
# The name of
|
405
|
+
# Output only. The resource name of this `Network`. Resource names are
|
406
|
+
# schemeless URIs that follow the conventions in https://cloud.google.com/apis/
|
407
|
+
# design/resource_names. Format: `projects/`project`/locations/`location`/
|
408
|
+
# networks/`network``
|
409
|
+
# @param [Google::Apis::BaremetalsolutionV2::Network] network_object
|
410
|
+
# @param [String] update_mask
|
411
|
+
# The list of fields to update. The only currently supported fields are: `labels`
|
340
412
|
# @param [String] fields
|
341
413
|
# Selector specifying which fields to include in a partial response.
|
342
414
|
# @param [String] quota_user
|
@@ -346,28 +418,63 @@ module Google
|
|
346
418
|
# Request-specific options
|
347
419
|
#
|
348
420
|
# @yield [result, err] Result & error if block supplied
|
349
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::
|
421
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
|
350
422
|
# @yieldparam err [StandardError] error object if request failed
|
351
423
|
#
|
352
|
-
# @return [Google::Apis::BaremetalsolutionV2::
|
424
|
+
# @return [Google::Apis::BaremetalsolutionV2::Operation]
|
353
425
|
#
|
354
426
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
355
427
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
356
428
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
357
|
-
def
|
358
|
-
command = make_simple_command(:
|
359
|
-
command.
|
360
|
-
command.
|
429
|
+
def patch_project_location_network(name, network_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
430
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
431
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::Network::Representation
|
432
|
+
command.request_object = network_object
|
433
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
|
434
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::Operation
|
361
435
|
command.params['name'] = name unless name.nil?
|
436
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
437
|
+
command.query['fields'] = fields unless fields.nil?
|
438
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
439
|
+
execute_or_queue_command(command, &block)
|
440
|
+
end
|
441
|
+
|
442
|
+
# Create new ProvisioningConfig.
|
443
|
+
# @param [String] parent
|
444
|
+
# Required. The parent project and location containing the ProvisioningConfig.
|
445
|
+
# @param [Google::Apis::BaremetalsolutionV2::ProvisioningConfig] provisioning_config_object
|
446
|
+
# @param [String] fields
|
447
|
+
# Selector specifying which fields to include in a partial response.
|
448
|
+
# @param [String] quota_user
|
449
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
450
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
451
|
+
# @param [Google::Apis::RequestOptions] options
|
452
|
+
# Request-specific options
|
453
|
+
#
|
454
|
+
# @yield [result, err] Result & error if block supplied
|
455
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::ProvisioningConfig] parsed result object
|
456
|
+
# @yieldparam err [StandardError] error object if request failed
|
457
|
+
#
|
458
|
+
# @return [Google::Apis::BaremetalsolutionV2::ProvisioningConfig]
|
459
|
+
#
|
460
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
461
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
462
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
463
|
+
def create_project_location_provisioning_config(parent, provisioning_config_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
464
|
+
command = make_simple_command(:post, 'v2/{+parent}/provisioningConfigs', options)
|
465
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::ProvisioningConfig::Representation
|
466
|
+
command.request_object = provisioning_config_object
|
467
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::ProvisioningConfig::Representation
|
468
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::ProvisioningConfig
|
469
|
+
command.params['parent'] = parent unless parent.nil?
|
362
470
|
command.query['fields'] = fields unless fields.nil?
|
363
471
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
364
472
|
execute_or_queue_command(command, &block)
|
365
473
|
end
|
366
474
|
|
367
|
-
#
|
368
|
-
# to poll the operation result at intervals as recommended by the API service.
|
475
|
+
# Get ProvisioningConfig by name.
|
369
476
|
# @param [String] name
|
370
|
-
#
|
477
|
+
# Required. Name of the ProvisioningConfig.
|
371
478
|
# @param [String] fields
|
372
479
|
# Selector specifying which fields to include in a partial response.
|
373
480
|
# @param [String] quota_user
|
@@ -377,40 +484,103 @@ module Google
|
|
377
484
|
# Request-specific options
|
378
485
|
#
|
379
486
|
# @yield [result, err] Result & error if block supplied
|
380
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::
|
487
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::ProvisioningConfig] parsed result object
|
381
488
|
# @yieldparam err [StandardError] error object if request failed
|
382
489
|
#
|
383
|
-
# @return [Google::Apis::BaremetalsolutionV2::
|
490
|
+
# @return [Google::Apis::BaremetalsolutionV2::ProvisioningConfig]
|
384
491
|
#
|
385
492
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
386
493
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
387
494
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
388
|
-
def
|
495
|
+
def get_project_location_provisioning_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
389
496
|
command = make_simple_command(:get, 'v2/{+name}', options)
|
390
|
-
command.response_representation = Google::Apis::BaremetalsolutionV2::
|
391
|
-
command.response_class = Google::Apis::BaremetalsolutionV2::
|
497
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::ProvisioningConfig::Representation
|
498
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::ProvisioningConfig
|
392
499
|
command.params['name'] = name unless name.nil?
|
393
500
|
command.query['fields'] = fields unless fields.nil?
|
394
501
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
395
502
|
execute_or_queue_command(command, &block)
|
396
503
|
end
|
397
504
|
|
398
|
-
#
|
399
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
400
|
-
# binding allows API services to override the binding to use different resource
|
401
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
402
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
403
|
-
# service configuration. For backwards compatibility, the default name includes
|
404
|
-
# the operations collection id, however overriding users must ensure the name
|
405
|
-
# binding is the parent resource, without the operations collection id.
|
505
|
+
# Update existing ProvisioningConfig.
|
406
506
|
# @param [String] name
|
407
|
-
# The name of the
|
408
|
-
# @param [
|
409
|
-
#
|
507
|
+
# Output only. The name of the provisioning config.
|
508
|
+
# @param [Google::Apis::BaremetalsolutionV2::ProvisioningConfig] provisioning_config_object
|
509
|
+
# @param [String] update_mask
|
510
|
+
# Required. The list of fields to update.
|
511
|
+
# @param [String] fields
|
512
|
+
# Selector specifying which fields to include in a partial response.
|
513
|
+
# @param [String] quota_user
|
514
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
515
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
516
|
+
# @param [Google::Apis::RequestOptions] options
|
517
|
+
# Request-specific options
|
518
|
+
#
|
519
|
+
# @yield [result, err] Result & error if block supplied
|
520
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::ProvisioningConfig] parsed result object
|
521
|
+
# @yieldparam err [StandardError] error object if request failed
|
522
|
+
#
|
523
|
+
# @return [Google::Apis::BaremetalsolutionV2::ProvisioningConfig]
|
524
|
+
#
|
525
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
526
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
527
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
528
|
+
def patch_project_location_provisioning_config(name, provisioning_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
529
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
530
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::ProvisioningConfig::Representation
|
531
|
+
command.request_object = provisioning_config_object
|
532
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::ProvisioningConfig::Representation
|
533
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::ProvisioningConfig
|
534
|
+
command.params['name'] = name unless name.nil?
|
535
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
536
|
+
command.query['fields'] = fields unless fields.nil?
|
537
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
538
|
+
execute_or_queue_command(command, &block)
|
539
|
+
end
|
540
|
+
|
541
|
+
# Submit a provisiong configuration for a given project.
|
542
|
+
# @param [String] parent
|
543
|
+
# Required. The parent project and location containing the ProvisioningConfig.
|
544
|
+
# @param [Google::Apis::BaremetalsolutionV2::SubmitProvisioningConfigRequest] submit_provisioning_config_request_object
|
545
|
+
# @param [String] fields
|
546
|
+
# Selector specifying which fields to include in a partial response.
|
547
|
+
# @param [String] quota_user
|
548
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
549
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
550
|
+
# @param [Google::Apis::RequestOptions] options
|
551
|
+
# Request-specific options
|
552
|
+
#
|
553
|
+
# @yield [result, err] Result & error if block supplied
|
554
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::SubmitProvisioningConfigResponse] parsed result object
|
555
|
+
# @yieldparam err [StandardError] error object if request failed
|
556
|
+
#
|
557
|
+
# @return [Google::Apis::BaremetalsolutionV2::SubmitProvisioningConfigResponse]
|
558
|
+
#
|
559
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
560
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
561
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
562
|
+
def submit_provisioning_config(parent, submit_provisioning_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
563
|
+
command = make_simple_command(:post, 'v2/{+parent}/provisioningConfigs:submit', options)
|
564
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::SubmitProvisioningConfigRequest::Representation
|
565
|
+
command.request_object = submit_provisioning_config_request_object
|
566
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::SubmitProvisioningConfigResponse::Representation
|
567
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::SubmitProvisioningConfigResponse
|
568
|
+
command.params['parent'] = parent unless parent.nil?
|
569
|
+
command.query['fields'] = fields unless fields.nil?
|
570
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
571
|
+
execute_or_queue_command(command, &block)
|
572
|
+
end
|
573
|
+
|
574
|
+
# List the budget details to provision resources on a given project.
|
575
|
+
# @param [String] parent
|
576
|
+
# Required. Parent value for ListProvisioningQuotasRequest.
|
410
577
|
# @param [Fixnum] page_size
|
411
|
-
# The
|
578
|
+
# Requested page size. The server might return fewer items than requested. If
|
579
|
+
# unspecified, server will pick an appropriate default. Notice that page_size
|
580
|
+
# field is not supported and won't be respected in the API request for now, will
|
581
|
+
# be updated when pagination is supported.
|
412
582
|
# @param [String] page_token
|
413
|
-
#
|
583
|
+
# A token identifying a page of results from the server.
|
414
584
|
# @param [String] fields
|
415
585
|
# Selector specifying which fields to include in a partial response.
|
416
586
|
# @param [String] quota_user
|
@@ -420,20 +590,19 @@ module Google
|
|
420
590
|
# Request-specific options
|
421
591
|
#
|
422
592
|
# @yield [result, err] Result & error if block supplied
|
423
|
-
# @yieldparam result [Google::Apis::BaremetalsolutionV2::
|
593
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::ListProvisioningQuotasResponse] parsed result object
|
424
594
|
# @yieldparam err [StandardError] error object if request failed
|
425
595
|
#
|
426
|
-
# @return [Google::Apis::BaremetalsolutionV2::
|
596
|
+
# @return [Google::Apis::BaremetalsolutionV2::ListProvisioningQuotasResponse]
|
427
597
|
#
|
428
598
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
429
599
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
430
600
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
431
|
-
def
|
432
|
-
command = make_simple_command(:get, 'v2/{+
|
433
|
-
command.response_representation = Google::Apis::BaremetalsolutionV2::
|
434
|
-
command.response_class = Google::Apis::BaremetalsolutionV2::
|
435
|
-
command.params['
|
436
|
-
command.query['filter'] = filter unless filter.nil?
|
601
|
+
def list_project_location_provisioning_quotas(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
602
|
+
command = make_simple_command(:get, 'v2/{+parent}/provisioningQuotas', options)
|
603
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::ListProvisioningQuotasResponse::Representation
|
604
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::ListProvisioningQuotasResponse
|
605
|
+
command.params['parent'] = parent unless parent.nil?
|
437
606
|
command.query['pageSize'] = page_size unless page_size.nil?
|
438
607
|
command.query['pageToken'] = page_token unless page_token.nil?
|
439
608
|
command.query['fields'] = fields unless fields.nil?
|
@@ -541,6 +710,8 @@ module Google
|
|
541
710
|
# List snapshot schedule policies in a given project and location.
|
542
711
|
# @param [String] parent
|
543
712
|
# Required. The parent project containing the Snapshot Schedule Policies.
|
713
|
+
# @param [String] filter
|
714
|
+
# List filter.
|
544
715
|
# @param [Fixnum] page_size
|
545
716
|
# The maximum number of items to return.
|
546
717
|
# @param [String] page_token
|
@@ -562,11 +733,12 @@ module Google
|
|
562
733
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
563
734
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
564
735
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
565
|
-
def list_project_location_snapshot_schedule_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
736
|
+
def list_project_location_snapshot_schedule_policies(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
566
737
|
command = make_simple_command(:get, 'v2/{+parent}/snapshotSchedulePolicies', options)
|
567
738
|
command.response_representation = Google::Apis::BaremetalsolutionV2::ListSnapshotSchedulePoliciesResponse::Representation
|
568
739
|
command.response_class = Google::Apis::BaremetalsolutionV2::ListSnapshotSchedulePoliciesResponse
|
569
740
|
command.params['parent'] = parent unless parent.nil?
|
741
|
+
command.query['filter'] = filter unless filter.nil?
|
570
742
|
command.query['pageSize'] = page_size unless page_size.nil?
|
571
743
|
command.query['pageToken'] = page_token unless page_token.nil?
|
572
744
|
command.query['fields'] = fields unless fields.nil?
|
@@ -643,6 +815,8 @@ module Google
|
|
643
815
|
# List storage volumes in a given project and location.
|
644
816
|
# @param [String] parent
|
645
817
|
# Required. Parent value for ListVolumesRequest.
|
818
|
+
# @param [String] filter
|
819
|
+
# List filter.
|
646
820
|
# @param [Fixnum] page_size
|
647
821
|
# Requested page size. The server might return fewer items than requested. If
|
648
822
|
# unspecified, server will pick an appropriate default.
|
@@ -665,11 +839,12 @@ module Google
|
|
665
839
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
666
840
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
667
841
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
668
|
-
def list_project_location_volumes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
842
|
+
def list_project_location_volumes(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
669
843
|
command = make_simple_command(:get, 'v2/{+parent}/volumes', options)
|
670
844
|
command.response_representation = Google::Apis::BaremetalsolutionV2::ListVolumesResponse::Representation
|
671
845
|
command.response_class = Google::Apis::BaremetalsolutionV2::ListVolumesResponse
|
672
846
|
command.params['parent'] = parent unless parent.nil?
|
847
|
+
command.query['filter'] = filter unless filter.nil?
|
673
848
|
command.query['pageSize'] = page_size unless page_size.nil?
|
674
849
|
command.query['pageToken'] = page_token unless page_token.nil?
|
675
850
|
command.query['fields'] = fields unless fields.nil?
|
@@ -686,7 +861,9 @@ module Google
|
|
686
861
|
# @param [Google::Apis::BaremetalsolutionV2::Volume] volume_object
|
687
862
|
# @param [String] update_mask
|
688
863
|
# The list of fields to update. The only currently supported fields are: `
|
689
|
-
# snapshot_auto_delete_behavior` `snapshot_schedule_policy_name`
|
864
|
+
# snapshot_auto_delete_behavior` `snapshot_schedule_policy_name` 'labels' '
|
865
|
+
# requested_size_gib' 'snapshot_enabled' 'snapshot_reservation_detail.
|
866
|
+
# reserved_space_percent'
|
690
867
|
# @param [String] fields
|
691
868
|
# Selector specifying which fields to include in a partial response.
|
692
869
|
# @param [String] quota_user
|
@@ -717,7 +894,7 @@ module Google
|
|
717
894
|
execute_or_queue_command(command, &block)
|
718
895
|
end
|
719
896
|
|
720
|
-
# Get details of a single storage
|
897
|
+
# Get details of a single storage logical unit number(LUN).
|
721
898
|
# @param [String] name
|
722
899
|
# Required. Name of the resource.
|
723
900
|
# @param [String] fields
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-baremetalsolution_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-baremetalsolution_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.8.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-baremetalsolution_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.3.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Bare Metal Solution API V2
|