google-apis-baremetalsolution_v2 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -266,6 +266,39 @@ module Google
266
266
  execute_or_queue_command(command, &block)
267
267
  end
268
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
+
269
302
  # Get details of a single network.
270
303
  # @param [String] name
271
304
  # Required. Name of the resource.
@@ -336,6 +369,37 @@ module Google
336
369
  execute_or_queue_command(command, &block)
337
370
  end
338
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
+
339
403
  # Update details of a single network.
340
404
  # @param [String] name
341
405
  # Output only. The resource name of this `Network`. Resource names are
@@ -375,6 +439,184 @@ module Google
375
439
  execute_or_queue_command(command, &block)
376
440
  end
377
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
+
378
620
  # Create a snapshot schedule policy in the specified project.
379
621
  # @param [String] parent
380
622
  # Required. The parent project and location containing the
@@ -626,7 +868,8 @@ module Google
626
868
  # @param [Google::Apis::BaremetalsolutionV2::Volume] volume_object
627
869
  # @param [String] update_mask
628
870
  # The list of fields to update. The only currently supported fields are: `
629
- # snapshot_auto_delete_behavior` `snapshot_schedule_policy_name` 'labels'
871
+ # snapshot_auto_delete_behavior` `snapshot_schedule_policy_name` 'labels' '
872
+ # requested_size_gib'
630
873
  # @param [String] fields
631
874
  # Selector specifying which fields to include in a partial response.
632
875
  # @param [String] quota_user
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.6.0
4
+ version: 0.7.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: 2022-02-14 00:00:00.000000000 Z
11
+ date: 2022-02-21 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.6.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-baremetalsolution_v2/v0.7.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: []