google-apis-baremetalsolution_v2 0.3.0 → 0.7.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 +17 -0
- data/OVERVIEW.md +3 -3
- data/lib/google/apis/baremetalsolution_v2/classes.rb +1362 -25
- data/lib/google/apis/baremetalsolution_v2/gem_version.rb +3 -3
- data/lib/google/apis/baremetalsolution_v2/representations.rb +585 -4
- data/lib/google/apis/baremetalsolution_v2/service.rb +874 -13
- metadata +6 -6
@@ -157,9 +157,7 @@ module Google
|
|
157
157
|
# @param [String] parent
|
158
158
|
# Required. Parent value for ListInstancesRequest.
|
159
159
|
# @param [String] filter
|
160
|
-
#
|
161
|
-
# @param [String] order_by
|
162
|
-
# Hint for how to order the results.
|
160
|
+
# List filter.
|
163
161
|
# @param [Fixnum] page_size
|
164
162
|
# Requested page size. Server may return fewer items than requested. If
|
165
163
|
# unspecified, the server will pick an appropriate default.
|
@@ -182,13 +180,12 @@ module Google
|
|
182
180
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
183
181
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
184
182
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
185
|
-
def list_project_location_instances(parent, filter: nil,
|
183
|
+
def list_project_location_instances(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
186
184
|
command = make_simple_command(:get, 'v2/{+parent}/instances', options)
|
187
185
|
command.response_representation = Google::Apis::BaremetalsolutionV2::ListInstancesResponse::Representation
|
188
186
|
command.response_class = Google::Apis::BaremetalsolutionV2::ListInstancesResponse
|
189
187
|
command.params['parent'] = parent unless parent.nil?
|
190
188
|
command.query['filter'] = filter unless filter.nil?
|
191
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
192
189
|
command.query['pageSize'] = page_size unless page_size.nil?
|
193
190
|
command.query['pageToken'] = page_token unless page_token.nil?
|
194
191
|
command.query['fields'] = fields unless fields.nil?
|
@@ -196,7 +193,714 @@ module Google
|
|
196
193
|
execute_or_queue_command(command, &block)
|
197
194
|
end
|
198
195
|
|
199
|
-
#
|
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
|
+
|
235
|
+
# Perform an ungraceful, hard reset on a server. Equivalent to shutting the
|
236
|
+
# power off and then turning it back on.
|
237
|
+
# @param [String] name
|
238
|
+
# Required. Name of the resource.
|
239
|
+
# @param [Google::Apis::BaremetalsolutionV2::ResetInstanceRequest] reset_instance_request_object
|
240
|
+
# @param [String] fields
|
241
|
+
# Selector specifying which fields to include in a partial response.
|
242
|
+
# @param [String] quota_user
|
243
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
244
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
245
|
+
# @param [Google::Apis::RequestOptions] options
|
246
|
+
# Request-specific options
|
247
|
+
#
|
248
|
+
# @yield [result, err] Result & error if block supplied
|
249
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
|
250
|
+
# @yieldparam err [StandardError] error object if request failed
|
251
|
+
#
|
252
|
+
# @return [Google::Apis::BaremetalsolutionV2::Operation]
|
253
|
+
#
|
254
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
255
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
256
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
257
|
+
def reset_instance(name, reset_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
258
|
+
command = make_simple_command(:post, 'v2/{+name}:reset', options)
|
259
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::ResetInstanceRequest::Representation
|
260
|
+
command.request_object = reset_instance_request_object
|
261
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
|
262
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::Operation
|
263
|
+
command.params['name'] = name unless name.nil?
|
264
|
+
command.query['fields'] = fields unless fields.nil?
|
265
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
266
|
+
execute_or_queue_command(command, &block)
|
267
|
+
end
|
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
|
+
|
302
|
+
# Get details of a single network.
|
303
|
+
# @param [String] name
|
304
|
+
# Required. Name of the resource.
|
305
|
+
# @param [String] fields
|
306
|
+
# Selector specifying which fields to include in a partial response.
|
307
|
+
# @param [String] quota_user
|
308
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
309
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
310
|
+
# @param [Google::Apis::RequestOptions] options
|
311
|
+
# Request-specific options
|
312
|
+
#
|
313
|
+
# @yield [result, err] Result & error if block supplied
|
314
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Network] parsed result object
|
315
|
+
# @yieldparam err [StandardError] error object if request failed
|
316
|
+
#
|
317
|
+
# @return [Google::Apis::BaremetalsolutionV2::Network]
|
318
|
+
#
|
319
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
320
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
321
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
322
|
+
def get_project_location_network(name, fields: nil, quota_user: nil, options: nil, &block)
|
323
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
324
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::Network::Representation
|
325
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::Network
|
326
|
+
command.params['name'] = name unless name.nil?
|
327
|
+
command.query['fields'] = fields unless fields.nil?
|
328
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
329
|
+
execute_or_queue_command(command, &block)
|
330
|
+
end
|
331
|
+
|
332
|
+
# List network in a given project and location.
|
333
|
+
# @param [String] parent
|
334
|
+
# Required. Parent value for ListNetworksRequest.
|
335
|
+
# @param [String] filter
|
336
|
+
# List filter.
|
337
|
+
# @param [Fixnum] page_size
|
338
|
+
# Requested page size. The server might return fewer items than requested. If
|
339
|
+
# unspecified, server will pick an appropriate default.
|
340
|
+
# @param [String] page_token
|
341
|
+
# A token identifying a page of results from the server.
|
342
|
+
# @param [String] fields
|
343
|
+
# Selector specifying which fields to include in a partial response.
|
344
|
+
# @param [String] quota_user
|
345
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
346
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
347
|
+
# @param [Google::Apis::RequestOptions] options
|
348
|
+
# Request-specific options
|
349
|
+
#
|
350
|
+
# @yield [result, err] Result & error if block supplied
|
351
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::ListNetworksResponse] parsed result object
|
352
|
+
# @yieldparam err [StandardError] error object if request failed
|
353
|
+
#
|
354
|
+
# @return [Google::Apis::BaremetalsolutionV2::ListNetworksResponse]
|
355
|
+
#
|
356
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
357
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
358
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
359
|
+
def list_project_location_networks(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
360
|
+
command = make_simple_command(:get, 'v2/{+parent}/networks', options)
|
361
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::ListNetworksResponse::Representation
|
362
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::ListNetworksResponse
|
363
|
+
command.params['parent'] = parent unless parent.nil?
|
364
|
+
command.query['filter'] = filter unless filter.nil?
|
365
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
366
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
367
|
+
command.query['fields'] = fields unless fields.nil?
|
368
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
369
|
+
execute_or_queue_command(command, &block)
|
370
|
+
end
|
371
|
+
|
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).
|
376
|
+
# @param [String] fields
|
377
|
+
# Selector specifying which fields to include in a partial response.
|
378
|
+
# @param [String] quota_user
|
379
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
380
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
381
|
+
# @param [Google::Apis::RequestOptions] options
|
382
|
+
# Request-specific options
|
383
|
+
#
|
384
|
+
# @yield [result, err] Result & error if block supplied
|
385
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::ListNetworkUsageResponse] parsed result object
|
386
|
+
# @yieldparam err [StandardError] error object if request failed
|
387
|
+
#
|
388
|
+
# @return [Google::Apis::BaremetalsolutionV2::ListNetworkUsageResponse]
|
389
|
+
#
|
390
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
391
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
392
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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?
|
398
|
+
command.query['fields'] = fields unless fields.nil?
|
399
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
400
|
+
execute_or_queue_command(command, &block)
|
401
|
+
end
|
402
|
+
|
403
|
+
# Update details of a single network.
|
404
|
+
# @param [String] name
|
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`
|
412
|
+
# @param [String] fields
|
413
|
+
# Selector specifying which fields to include in a partial response.
|
414
|
+
# @param [String] quota_user
|
415
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
416
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
417
|
+
# @param [Google::Apis::RequestOptions] options
|
418
|
+
# Request-specific options
|
419
|
+
#
|
420
|
+
# @yield [result, err] Result & error if block supplied
|
421
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
|
422
|
+
# @yieldparam err [StandardError] error object if request failed
|
423
|
+
#
|
424
|
+
# @return [Google::Apis::BaremetalsolutionV2::Operation]
|
425
|
+
#
|
426
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
427
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
428
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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
|
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
|
+
# Get details of a single NFS share.
|
443
|
+
# @param [String] name
|
444
|
+
# Required. Name of the resource.
|
445
|
+
# @param [String] fields
|
446
|
+
# Selector specifying which fields to include in a partial response.
|
447
|
+
# @param [String] quota_user
|
448
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
449
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
450
|
+
# @param [Google::Apis::RequestOptions] options
|
451
|
+
# Request-specific options
|
452
|
+
#
|
453
|
+
# @yield [result, err] Result & error if block supplied
|
454
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::NfsShare] parsed result object
|
455
|
+
# @yieldparam err [StandardError] error object if request failed
|
456
|
+
#
|
457
|
+
# @return [Google::Apis::BaremetalsolutionV2::NfsShare]
|
458
|
+
#
|
459
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
460
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
461
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
462
|
+
def get_project_location_nfs_share(name, fields: nil, quota_user: nil, options: nil, &block)
|
463
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
464
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::NfsShare::Representation
|
465
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::NfsShare
|
466
|
+
command.params['name'] = name unless name.nil?
|
467
|
+
command.query['fields'] = fields unless fields.nil?
|
468
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
469
|
+
execute_or_queue_command(command, &block)
|
470
|
+
end
|
471
|
+
|
472
|
+
# List NFS shares.
|
473
|
+
# @param [String] parent
|
474
|
+
# Required. Parent value for ListNfsSharesRequest.
|
475
|
+
# @param [String] filter
|
476
|
+
# List filter.
|
477
|
+
# @param [Fixnum] page_size
|
478
|
+
# Requested page size. The server might return fewer items than requested. If
|
479
|
+
# unspecified, server will pick an appropriate default.
|
480
|
+
# @param [String] page_token
|
481
|
+
# A token identifying a page of results from the server.
|
482
|
+
# @param [String] fields
|
483
|
+
# Selector specifying which fields to include in a partial response.
|
484
|
+
# @param [String] quota_user
|
485
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
486
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
487
|
+
# @param [Google::Apis::RequestOptions] options
|
488
|
+
# Request-specific options
|
489
|
+
#
|
490
|
+
# @yield [result, err] Result & error if block supplied
|
491
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::ListNfsSharesResponse] parsed result object
|
492
|
+
# @yieldparam err [StandardError] error object if request failed
|
493
|
+
#
|
494
|
+
# @return [Google::Apis::BaremetalsolutionV2::ListNfsSharesResponse]
|
495
|
+
#
|
496
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
497
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
498
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
499
|
+
def list_project_location_nfs_shares(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
500
|
+
command = make_simple_command(:get, 'v2/{+parent}/nfsShares', options)
|
501
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::ListNfsSharesResponse::Representation
|
502
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::ListNfsSharesResponse
|
503
|
+
command.params['parent'] = parent unless parent.nil?
|
504
|
+
command.query['filter'] = filter unless filter.nil?
|
505
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
506
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
507
|
+
command.query['fields'] = fields unless fields.nil?
|
508
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
509
|
+
execute_or_queue_command(command, &block)
|
510
|
+
end
|
511
|
+
|
512
|
+
# Update details of a single NFS share.
|
513
|
+
# @param [String] name
|
514
|
+
# Output only. The name of the NFS share.
|
515
|
+
# @param [Google::Apis::BaremetalsolutionV2::NfsShare] nfs_share_object
|
516
|
+
# @param [String] update_mask
|
517
|
+
# The list of fields to update. The only currently supported fields are: `labels`
|
518
|
+
# @param [String] fields
|
519
|
+
# Selector specifying which fields to include in a partial response.
|
520
|
+
# @param [String] quota_user
|
521
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
522
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
523
|
+
# @param [Google::Apis::RequestOptions] options
|
524
|
+
# Request-specific options
|
525
|
+
#
|
526
|
+
# @yield [result, err] Result & error if block supplied
|
527
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
|
528
|
+
# @yieldparam err [StandardError] error object if request failed
|
529
|
+
#
|
530
|
+
# @return [Google::Apis::BaremetalsolutionV2::Operation]
|
531
|
+
#
|
532
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
533
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
534
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
535
|
+
def patch_project_location_nfs_share(name, nfs_share_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
536
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
537
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::NfsShare::Representation
|
538
|
+
command.request_object = nfs_share_object
|
539
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
|
540
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::Operation
|
541
|
+
command.params['name'] = name unless name.nil?
|
542
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
543
|
+
command.query['fields'] = fields unless fields.nil?
|
544
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
545
|
+
execute_or_queue_command(command, &block)
|
546
|
+
end
|
547
|
+
|
548
|
+
# Submit a provisiong configuration for a given project.
|
549
|
+
# @param [String] parent
|
550
|
+
# Required. The parent project and location containing the ProvisioningConfig.
|
551
|
+
# @param [Google::Apis::BaremetalsolutionV2::SubmitProvisioningConfigRequest] submit_provisioning_config_request_object
|
552
|
+
# @param [String] fields
|
553
|
+
# Selector specifying which fields to include in a partial response.
|
554
|
+
# @param [String] quota_user
|
555
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
556
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
557
|
+
# @param [Google::Apis::RequestOptions] options
|
558
|
+
# Request-specific options
|
559
|
+
#
|
560
|
+
# @yield [result, err] Result & error if block supplied
|
561
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::SubmitProvisioningConfigResponse] parsed result object
|
562
|
+
# @yieldparam err [StandardError] error object if request failed
|
563
|
+
#
|
564
|
+
# @return [Google::Apis::BaremetalsolutionV2::SubmitProvisioningConfigResponse]
|
565
|
+
#
|
566
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
567
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
568
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
569
|
+
def submit_provisioning_config(parent, submit_provisioning_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
570
|
+
command = make_simple_command(:post, 'v2/{+parent}/provisioningConfigs:submit', options)
|
571
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::SubmitProvisioningConfigRequest::Representation
|
572
|
+
command.request_object = submit_provisioning_config_request_object
|
573
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::SubmitProvisioningConfigResponse::Representation
|
574
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::SubmitProvisioningConfigResponse
|
575
|
+
command.params['parent'] = parent unless parent.nil?
|
576
|
+
command.query['fields'] = fields unless fields.nil?
|
577
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
578
|
+
execute_or_queue_command(command, &block)
|
579
|
+
end
|
580
|
+
|
581
|
+
# List the budget details to provision resources on a given project.
|
582
|
+
# @param [String] parent
|
583
|
+
# Required. Parent value for ListProvisioningQuotasRequest.
|
584
|
+
# @param [Fixnum] page_size
|
585
|
+
# Requested page size. The server might return fewer items than requested. If
|
586
|
+
# unspecified, server will pick an appropriate default. Notice that page_size
|
587
|
+
# field is not supported and won't be respected in the API request for now, will
|
588
|
+
# be updated when pagination is supported.
|
589
|
+
# @param [String] page_token
|
590
|
+
# A token identifying a page of results from the server.
|
591
|
+
# @param [String] fields
|
592
|
+
# Selector specifying which fields to include in a partial response.
|
593
|
+
# @param [String] quota_user
|
594
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
595
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
596
|
+
# @param [Google::Apis::RequestOptions] options
|
597
|
+
# Request-specific options
|
598
|
+
#
|
599
|
+
# @yield [result, err] Result & error if block supplied
|
600
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::ListProvisioningQuotasResponse] parsed result object
|
601
|
+
# @yieldparam err [StandardError] error object if request failed
|
602
|
+
#
|
603
|
+
# @return [Google::Apis::BaremetalsolutionV2::ListProvisioningQuotasResponse]
|
604
|
+
#
|
605
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
606
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
607
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
608
|
+
def list_project_location_provisioning_quotas(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
609
|
+
command = make_simple_command(:get, 'v2/{+parent}/provisioningQuotas', options)
|
610
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::ListProvisioningQuotasResponse::Representation
|
611
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::ListProvisioningQuotasResponse
|
612
|
+
command.params['parent'] = parent unless parent.nil?
|
613
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
614
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
615
|
+
command.query['fields'] = fields unless fields.nil?
|
616
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
617
|
+
execute_or_queue_command(command, &block)
|
618
|
+
end
|
619
|
+
|
620
|
+
# Create a snapshot schedule policy in the specified project.
|
621
|
+
# @param [String] parent
|
622
|
+
# Required. The parent project and location containing the
|
623
|
+
# SnapshotSchedulePolicy.
|
624
|
+
# @param [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy] snapshot_schedule_policy_object
|
625
|
+
# @param [String] snapshot_schedule_policy_id
|
626
|
+
# Required. Snapshot policy ID
|
627
|
+
# @param [String] fields
|
628
|
+
# Selector specifying which fields to include in a partial response.
|
629
|
+
# @param [String] quota_user
|
630
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
631
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
632
|
+
# @param [Google::Apis::RequestOptions] options
|
633
|
+
# Request-specific options
|
634
|
+
#
|
635
|
+
# @yield [result, err] Result & error if block supplied
|
636
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy] parsed result object
|
637
|
+
# @yieldparam err [StandardError] error object if request failed
|
638
|
+
#
|
639
|
+
# @return [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy]
|
640
|
+
#
|
641
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
642
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
643
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
644
|
+
def create_project_location_snapshot_schedule_policy(parent, snapshot_schedule_policy_object = nil, snapshot_schedule_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
645
|
+
command = make_simple_command(:post, 'v2/{+parent}/snapshotSchedulePolicies', options)
|
646
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation
|
647
|
+
command.request_object = snapshot_schedule_policy_object
|
648
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation
|
649
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy
|
650
|
+
command.params['parent'] = parent unless parent.nil?
|
651
|
+
command.query['snapshotSchedulePolicyId'] = snapshot_schedule_policy_id unless snapshot_schedule_policy_id.nil?
|
652
|
+
command.query['fields'] = fields unless fields.nil?
|
653
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
654
|
+
execute_or_queue_command(command, &block)
|
655
|
+
end
|
656
|
+
|
657
|
+
# Delete a named snapshot schedule policy.
|
658
|
+
# @param [String] name
|
659
|
+
# Required. The name of the snapshot schedule policy to delete.
|
660
|
+
# @param [String] fields
|
661
|
+
# Selector specifying which fields to include in a partial response.
|
662
|
+
# @param [String] quota_user
|
663
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
664
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
665
|
+
# @param [Google::Apis::RequestOptions] options
|
666
|
+
# Request-specific options
|
667
|
+
#
|
668
|
+
# @yield [result, err] Result & error if block supplied
|
669
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Empty] parsed result object
|
670
|
+
# @yieldparam err [StandardError] error object if request failed
|
671
|
+
#
|
672
|
+
# @return [Google::Apis::BaremetalsolutionV2::Empty]
|
673
|
+
#
|
674
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
675
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
676
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
677
|
+
def delete_project_location_snapshot_schedule_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
678
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
679
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::Empty::Representation
|
680
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::Empty
|
681
|
+
command.params['name'] = name unless name.nil?
|
682
|
+
command.query['fields'] = fields unless fields.nil?
|
683
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
684
|
+
execute_or_queue_command(command, &block)
|
685
|
+
end
|
686
|
+
|
687
|
+
# Get details of a single snapshot schedule policy.
|
688
|
+
# @param [String] name
|
689
|
+
# Required. Name of the resource.
|
690
|
+
# @param [String] fields
|
691
|
+
# Selector specifying which fields to include in a partial response.
|
692
|
+
# @param [String] quota_user
|
693
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
694
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
695
|
+
# @param [Google::Apis::RequestOptions] options
|
696
|
+
# Request-specific options
|
697
|
+
#
|
698
|
+
# @yield [result, err] Result & error if block supplied
|
699
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy] parsed result object
|
700
|
+
# @yieldparam err [StandardError] error object if request failed
|
701
|
+
#
|
702
|
+
# @return [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy]
|
703
|
+
#
|
704
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
705
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
706
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
707
|
+
def get_project_location_snapshot_schedule_policy(name, fields: nil, quota_user: nil, options: nil, &block)
|
708
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
709
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation
|
710
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy
|
711
|
+
command.params['name'] = name unless name.nil?
|
712
|
+
command.query['fields'] = fields unless fields.nil?
|
713
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
714
|
+
execute_or_queue_command(command, &block)
|
715
|
+
end
|
716
|
+
|
717
|
+
# List snapshot schedule policies in a given project and location.
|
718
|
+
# @param [String] parent
|
719
|
+
# Required. The parent project containing the Snapshot Schedule Policies.
|
720
|
+
# @param [String] filter
|
721
|
+
# List filter.
|
722
|
+
# @param [Fixnum] page_size
|
723
|
+
# The maximum number of items to return.
|
724
|
+
# @param [String] page_token
|
725
|
+
# The next_page_token value returned from a previous List request, if any.
|
726
|
+
# @param [String] fields
|
727
|
+
# Selector specifying which fields to include in a partial response.
|
728
|
+
# @param [String] quota_user
|
729
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
730
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
731
|
+
# @param [Google::Apis::RequestOptions] options
|
732
|
+
# Request-specific options
|
733
|
+
#
|
734
|
+
# @yield [result, err] Result & error if block supplied
|
735
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::ListSnapshotSchedulePoliciesResponse] parsed result object
|
736
|
+
# @yieldparam err [StandardError] error object if request failed
|
737
|
+
#
|
738
|
+
# @return [Google::Apis::BaremetalsolutionV2::ListSnapshotSchedulePoliciesResponse]
|
739
|
+
#
|
740
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
741
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
742
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
743
|
+
def list_project_location_snapshot_schedule_policies(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
744
|
+
command = make_simple_command(:get, 'v2/{+parent}/snapshotSchedulePolicies', options)
|
745
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::ListSnapshotSchedulePoliciesResponse::Representation
|
746
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::ListSnapshotSchedulePoliciesResponse
|
747
|
+
command.params['parent'] = parent unless parent.nil?
|
748
|
+
command.query['filter'] = filter unless filter.nil?
|
749
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
750
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
751
|
+
command.query['fields'] = fields unless fields.nil?
|
752
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
753
|
+
execute_or_queue_command(command, &block)
|
754
|
+
end
|
755
|
+
|
756
|
+
# Update a snapshot schedule policy in the specified project.
|
757
|
+
# @param [String] name
|
758
|
+
# Output only. The name of the snapshot schedule policy.
|
759
|
+
# @param [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy] snapshot_schedule_policy_object
|
760
|
+
# @param [String] update_mask
|
761
|
+
# Required. The list of fields to update.
|
762
|
+
# @param [String] fields
|
763
|
+
# Selector specifying which fields to include in a partial response.
|
764
|
+
# @param [String] quota_user
|
765
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
766
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
767
|
+
# @param [Google::Apis::RequestOptions] options
|
768
|
+
# Request-specific options
|
769
|
+
#
|
770
|
+
# @yield [result, err] Result & error if block supplied
|
771
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy] parsed result object
|
772
|
+
# @yieldparam err [StandardError] error object if request failed
|
773
|
+
#
|
774
|
+
# @return [Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy]
|
775
|
+
#
|
776
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
777
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
778
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
779
|
+
def patch_project_location_snapshot_schedule_policy(name, snapshot_schedule_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
780
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
781
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation
|
782
|
+
command.request_object = snapshot_schedule_policy_object
|
783
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation
|
784
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy
|
785
|
+
command.params['name'] = name unless name.nil?
|
786
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
787
|
+
command.query['fields'] = fields unless fields.nil?
|
788
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
789
|
+
execute_or_queue_command(command, &block)
|
790
|
+
end
|
791
|
+
|
792
|
+
# Get details of a single storage volume.
|
793
|
+
# @param [String] name
|
794
|
+
# Required. Name of the resource.
|
795
|
+
# @param [String] fields
|
796
|
+
# Selector specifying which fields to include in a partial response.
|
797
|
+
# @param [String] quota_user
|
798
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
799
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
800
|
+
# @param [Google::Apis::RequestOptions] options
|
801
|
+
# Request-specific options
|
802
|
+
#
|
803
|
+
# @yield [result, err] Result & error if block supplied
|
804
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Volume] parsed result object
|
805
|
+
# @yieldparam err [StandardError] error object if request failed
|
806
|
+
#
|
807
|
+
# @return [Google::Apis::BaremetalsolutionV2::Volume]
|
808
|
+
#
|
809
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
810
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
811
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
812
|
+
def get_project_location_volume(name, fields: nil, quota_user: nil, options: nil, &block)
|
813
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
814
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::Volume::Representation
|
815
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::Volume
|
816
|
+
command.params['name'] = name unless name.nil?
|
817
|
+
command.query['fields'] = fields unless fields.nil?
|
818
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
819
|
+
execute_or_queue_command(command, &block)
|
820
|
+
end
|
821
|
+
|
822
|
+
# List storage volumes in a given project and location.
|
823
|
+
# @param [String] parent
|
824
|
+
# Required. Parent value for ListVolumesRequest.
|
825
|
+
# @param [String] filter
|
826
|
+
# List filter.
|
827
|
+
# @param [Fixnum] page_size
|
828
|
+
# Requested page size. The server might return fewer items than requested. If
|
829
|
+
# unspecified, server will pick an appropriate default.
|
830
|
+
# @param [String] page_token
|
831
|
+
# A token identifying a page of results from the server.
|
832
|
+
# @param [String] fields
|
833
|
+
# Selector specifying which fields to include in a partial response.
|
834
|
+
# @param [String] quota_user
|
835
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
836
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
837
|
+
# @param [Google::Apis::RequestOptions] options
|
838
|
+
# Request-specific options
|
839
|
+
#
|
840
|
+
# @yield [result, err] Result & error if block supplied
|
841
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::ListVolumesResponse] parsed result object
|
842
|
+
# @yieldparam err [StandardError] error object if request failed
|
843
|
+
#
|
844
|
+
# @return [Google::Apis::BaremetalsolutionV2::ListVolumesResponse]
|
845
|
+
#
|
846
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
847
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
848
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
849
|
+
def list_project_location_volumes(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
850
|
+
command = make_simple_command(:get, 'v2/{+parent}/volumes', options)
|
851
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::ListVolumesResponse::Representation
|
852
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::ListVolumesResponse
|
853
|
+
command.params['parent'] = parent unless parent.nil?
|
854
|
+
command.query['filter'] = filter unless filter.nil?
|
855
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
856
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
857
|
+
command.query['fields'] = fields unless fields.nil?
|
858
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
859
|
+
execute_or_queue_command(command, &block)
|
860
|
+
end
|
861
|
+
|
862
|
+
# Update details of a single storage volume.
|
863
|
+
# @param [String] name
|
864
|
+
# Output only. The resource name of this `Volume`. Resource names are schemeless
|
865
|
+
# URIs that follow the conventions in https://cloud.google.com/apis/design/
|
866
|
+
# resource_names. Format: `projects/`project`/locations/`location`/volumes/`
|
867
|
+
# volume``
|
868
|
+
# @param [Google::Apis::BaremetalsolutionV2::Volume] volume_object
|
869
|
+
# @param [String] update_mask
|
870
|
+
# The list of fields to update. The only currently supported fields are: `
|
871
|
+
# snapshot_auto_delete_behavior` `snapshot_schedule_policy_name` 'labels' '
|
872
|
+
# requested_size_gib'
|
873
|
+
# @param [String] fields
|
874
|
+
# Selector specifying which fields to include in a partial response.
|
875
|
+
# @param [String] quota_user
|
876
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
877
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
878
|
+
# @param [Google::Apis::RequestOptions] options
|
879
|
+
# Request-specific options
|
880
|
+
#
|
881
|
+
# @yield [result, err] Result & error if block supplied
|
882
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
|
883
|
+
# @yieldparam err [StandardError] error object if request failed
|
884
|
+
#
|
885
|
+
# @return [Google::Apis::BaremetalsolutionV2::Operation]
|
886
|
+
#
|
887
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
888
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
889
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
890
|
+
def patch_project_location_volume(name, volume_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
891
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
892
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::Volume::Representation
|
893
|
+
command.request_object = volume_object
|
894
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
|
895
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::Operation
|
896
|
+
command.params['name'] = name unless name.nil?
|
897
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
898
|
+
command.query['fields'] = fields unless fields.nil?
|
899
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
900
|
+
execute_or_queue_command(command, &block)
|
901
|
+
end
|
902
|
+
|
903
|
+
# Get details of a single storage logical unit number(LUN).
|
200
904
|
# @param [String] name
|
201
905
|
# Required. Name of the resource.
|
202
906
|
# @param [String] fields
|
@@ -229,10 +933,6 @@ module Google
|
|
229
933
|
# List storage volume luns for given storage volume.
|
230
934
|
# @param [String] parent
|
231
935
|
# Required. Parent value for ListLunsRequest.
|
232
|
-
# @param [String] filter
|
233
|
-
# Filtering results.
|
234
|
-
# @param [String] order_by
|
235
|
-
# Hint for how to order the results.
|
236
936
|
# @param [Fixnum] page_size
|
237
937
|
# Requested page size. The server might return fewer items than requested. If
|
238
938
|
# unspecified, server will pick an appropriate default.
|
@@ -255,19 +955,180 @@ module Google
|
|
255
955
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
256
956
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
257
957
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
258
|
-
def list_project_location_volume_luns(parent,
|
958
|
+
def list_project_location_volume_luns(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
259
959
|
command = make_simple_command(:get, 'v2/{+parent}/luns', options)
|
260
960
|
command.response_representation = Google::Apis::BaremetalsolutionV2::ListLunsResponse::Representation
|
261
961
|
command.response_class = Google::Apis::BaremetalsolutionV2::ListLunsResponse
|
262
962
|
command.params['parent'] = parent unless parent.nil?
|
263
|
-
command.query['filter'] = filter unless filter.nil?
|
264
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
265
963
|
command.query['pageSize'] = page_size unless page_size.nil?
|
266
964
|
command.query['pageToken'] = page_token unless page_token.nil?
|
267
965
|
command.query['fields'] = fields unless fields.nil?
|
268
966
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
269
967
|
execute_or_queue_command(command, &block)
|
270
968
|
end
|
969
|
+
|
970
|
+
# Create a storage volume snapshot in a containing volume.
|
971
|
+
# @param [String] parent
|
972
|
+
# Required. The volume to snapshot.
|
973
|
+
# @param [Google::Apis::BaremetalsolutionV2::VolumeSnapshot] volume_snapshot_object
|
974
|
+
# @param [String] fields
|
975
|
+
# Selector specifying which fields to include in a partial response.
|
976
|
+
# @param [String] quota_user
|
977
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
978
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
979
|
+
# @param [Google::Apis::RequestOptions] options
|
980
|
+
# Request-specific options
|
981
|
+
#
|
982
|
+
# @yield [result, err] Result & error if block supplied
|
983
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::VolumeSnapshot] parsed result object
|
984
|
+
# @yieldparam err [StandardError] error object if request failed
|
985
|
+
#
|
986
|
+
# @return [Google::Apis::BaremetalsolutionV2::VolumeSnapshot]
|
987
|
+
#
|
988
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
989
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
990
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
991
|
+
def create_project_location_volume_snapshot(parent, volume_snapshot_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
992
|
+
command = make_simple_command(:post, 'v2/{+parent}/snapshots', options)
|
993
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation
|
994
|
+
command.request_object = volume_snapshot_object
|
995
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation
|
996
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::VolumeSnapshot
|
997
|
+
command.params['parent'] = parent unless parent.nil?
|
998
|
+
command.query['fields'] = fields unless fields.nil?
|
999
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1000
|
+
execute_or_queue_command(command, &block)
|
1001
|
+
end
|
1002
|
+
|
1003
|
+
# Deletes a storage volume snapshot for a given volume.
|
1004
|
+
# @param [String] name
|
1005
|
+
# Required. The name of the snapshot to delete.
|
1006
|
+
# @param [String] fields
|
1007
|
+
# Selector specifying which fields to include in a partial response.
|
1008
|
+
# @param [String] quota_user
|
1009
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1010
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1011
|
+
# @param [Google::Apis::RequestOptions] options
|
1012
|
+
# Request-specific options
|
1013
|
+
#
|
1014
|
+
# @yield [result, err] Result & error if block supplied
|
1015
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Empty] parsed result object
|
1016
|
+
# @yieldparam err [StandardError] error object if request failed
|
1017
|
+
#
|
1018
|
+
# @return [Google::Apis::BaremetalsolutionV2::Empty]
|
1019
|
+
#
|
1020
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1021
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1022
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1023
|
+
def delete_project_location_volume_snapshot(name, fields: nil, quota_user: nil, options: nil, &block)
|
1024
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
1025
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::Empty::Representation
|
1026
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::Empty
|
1027
|
+
command.params['name'] = name unless name.nil?
|
1028
|
+
command.query['fields'] = fields unless fields.nil?
|
1029
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1030
|
+
execute_or_queue_command(command, &block)
|
1031
|
+
end
|
1032
|
+
|
1033
|
+
# Get details of a single storage volume snapshot.
|
1034
|
+
# @param [String] name
|
1035
|
+
# Required. Name of the resource.
|
1036
|
+
# @param [String] fields
|
1037
|
+
# Selector specifying which fields to include in a partial response.
|
1038
|
+
# @param [String] quota_user
|
1039
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1040
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1041
|
+
# @param [Google::Apis::RequestOptions] options
|
1042
|
+
# Request-specific options
|
1043
|
+
#
|
1044
|
+
# @yield [result, err] Result & error if block supplied
|
1045
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::VolumeSnapshot] parsed result object
|
1046
|
+
# @yieldparam err [StandardError] error object if request failed
|
1047
|
+
#
|
1048
|
+
# @return [Google::Apis::BaremetalsolutionV2::VolumeSnapshot]
|
1049
|
+
#
|
1050
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1051
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1052
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1053
|
+
def get_project_location_volume_snapshot(name, fields: nil, quota_user: nil, options: nil, &block)
|
1054
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
1055
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation
|
1056
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::VolumeSnapshot
|
1057
|
+
command.params['name'] = name unless name.nil?
|
1058
|
+
command.query['fields'] = fields unless fields.nil?
|
1059
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1060
|
+
execute_or_queue_command(command, &block)
|
1061
|
+
end
|
1062
|
+
|
1063
|
+
# List storage volume snapshots for given storage volume.
|
1064
|
+
# @param [String] parent
|
1065
|
+
# Required. Parent value for ListVolumesRequest.
|
1066
|
+
# @param [Fixnum] page_size
|
1067
|
+
# Requested page size. The server might return fewer items than requested. If
|
1068
|
+
# unspecified, server will pick an appropriate default.
|
1069
|
+
# @param [String] page_token
|
1070
|
+
# A token identifying a page of results from the server.
|
1071
|
+
# @param [String] fields
|
1072
|
+
# Selector specifying which fields to include in a partial response.
|
1073
|
+
# @param [String] quota_user
|
1074
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1075
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1076
|
+
# @param [Google::Apis::RequestOptions] options
|
1077
|
+
# Request-specific options
|
1078
|
+
#
|
1079
|
+
# @yield [result, err] Result & error if block supplied
|
1080
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse] parsed result object
|
1081
|
+
# @yieldparam err [StandardError] error object if request failed
|
1082
|
+
#
|
1083
|
+
# @return [Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse]
|
1084
|
+
#
|
1085
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1086
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1087
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1088
|
+
def list_project_location_volume_snapshots(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1089
|
+
command = make_simple_command(:get, 'v2/{+parent}/snapshots', options)
|
1090
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse::Representation
|
1091
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse
|
1092
|
+
command.params['parent'] = parent unless parent.nil?
|
1093
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1094
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1095
|
+
command.query['fields'] = fields unless fields.nil?
|
1096
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1097
|
+
execute_or_queue_command(command, &block)
|
1098
|
+
end
|
1099
|
+
|
1100
|
+
# Restore a storage volume snapshot to its containing volume.
|
1101
|
+
# @param [String] volume_snapshot
|
1102
|
+
# Required. Name of the resource.
|
1103
|
+
# @param [Google::Apis::BaremetalsolutionV2::RestoreVolumeSnapshotRequest] restore_volume_snapshot_request_object
|
1104
|
+
# @param [String] fields
|
1105
|
+
# Selector specifying which fields to include in a partial response.
|
1106
|
+
# @param [String] quota_user
|
1107
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1108
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1109
|
+
# @param [Google::Apis::RequestOptions] options
|
1110
|
+
# Request-specific options
|
1111
|
+
#
|
1112
|
+
# @yield [result, err] Result & error if block supplied
|
1113
|
+
# @yieldparam result [Google::Apis::BaremetalsolutionV2::Operation] parsed result object
|
1114
|
+
# @yieldparam err [StandardError] error object if request failed
|
1115
|
+
#
|
1116
|
+
# @return [Google::Apis::BaremetalsolutionV2::Operation]
|
1117
|
+
#
|
1118
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1119
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1120
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1121
|
+
def restore_volume_snapshot(volume_snapshot, restore_volume_snapshot_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1122
|
+
command = make_simple_command(:post, 'v2/{+volumeSnapshot}:restoreVolumeSnapshot', options)
|
1123
|
+
command.request_representation = Google::Apis::BaremetalsolutionV2::RestoreVolumeSnapshotRequest::Representation
|
1124
|
+
command.request_object = restore_volume_snapshot_request_object
|
1125
|
+
command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation
|
1126
|
+
command.response_class = Google::Apis::BaremetalsolutionV2::Operation
|
1127
|
+
command.params['volumeSnapshot'] = volume_snapshot unless volume_snapshot.nil?
|
1128
|
+
command.query['fields'] = fields unless fields.nil?
|
1129
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1130
|
+
execute_or_queue_command(command, &block)
|
1131
|
+
end
|
271
1132
|
|
272
1133
|
protected
|
273
1134
|
|