google-apis-baremetalsolution_v2 0.6.0 → 0.9.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,289 @@ 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
+ # Create new ProvisioningConfig.
549
+ # @param [String] parent
550
+ # Required. The parent project and location containing the ProvisioningConfig.
551
+ # @param [Google::Apis::BaremetalsolutionV2::ProvisioningConfig] provisioning_config_object
552
+ # @param [String] email
553
+ # Optional. Email provided to send a confirmation with provisioning config to.
554
+ # @param [String] fields
555
+ # Selector specifying which fields to include in a partial response.
556
+ # @param [String] quota_user
557
+ # Available to use for quota purposes for server-side applications. Can be any
558
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
559
+ # @param [Google::Apis::RequestOptions] options
560
+ # Request-specific options
561
+ #
562
+ # @yield [result, err] Result & error if block supplied
563
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::ProvisioningConfig] parsed result object
564
+ # @yieldparam err [StandardError] error object if request failed
565
+ #
566
+ # @return [Google::Apis::BaremetalsolutionV2::ProvisioningConfig]
567
+ #
568
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
569
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
570
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
571
+ def create_project_location_provisioning_config(parent, provisioning_config_object = nil, email: nil, fields: nil, quota_user: nil, options: nil, &block)
572
+ command = make_simple_command(:post, 'v2/{+parent}/provisioningConfigs', options)
573
+ command.request_representation = Google::Apis::BaremetalsolutionV2::ProvisioningConfig::Representation
574
+ command.request_object = provisioning_config_object
575
+ command.response_representation = Google::Apis::BaremetalsolutionV2::ProvisioningConfig::Representation
576
+ command.response_class = Google::Apis::BaremetalsolutionV2::ProvisioningConfig
577
+ command.params['parent'] = parent unless parent.nil?
578
+ command.query['email'] = email unless email.nil?
579
+ command.query['fields'] = fields unless fields.nil?
580
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
581
+ execute_or_queue_command(command, &block)
582
+ end
583
+
584
+ # Get ProvisioningConfig by name.
585
+ # @param [String] name
586
+ # Required. Name of the ProvisioningConfig.
587
+ # @param [String] fields
588
+ # Selector specifying which fields to include in a partial response.
589
+ # @param [String] quota_user
590
+ # Available to use for quota purposes for server-side applications. Can be any
591
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
592
+ # @param [Google::Apis::RequestOptions] options
593
+ # Request-specific options
594
+ #
595
+ # @yield [result, err] Result & error if block supplied
596
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::ProvisioningConfig] parsed result object
597
+ # @yieldparam err [StandardError] error object if request failed
598
+ #
599
+ # @return [Google::Apis::BaremetalsolutionV2::ProvisioningConfig]
600
+ #
601
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
602
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
603
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
604
+ def get_project_location_provisioning_config(name, fields: nil, quota_user: nil, options: nil, &block)
605
+ command = make_simple_command(:get, 'v2/{+name}', options)
606
+ command.response_representation = Google::Apis::BaremetalsolutionV2::ProvisioningConfig::Representation
607
+ command.response_class = Google::Apis::BaremetalsolutionV2::ProvisioningConfig
608
+ command.params['name'] = name unless name.nil?
609
+ command.query['fields'] = fields unless fields.nil?
610
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
611
+ execute_or_queue_command(command, &block)
612
+ end
613
+
614
+ # Update existing ProvisioningConfig.
615
+ # @param [String] name
616
+ # Output only. The name of the provisioning config.
617
+ # @param [Google::Apis::BaremetalsolutionV2::ProvisioningConfig] provisioning_config_object
618
+ # @param [String] email
619
+ # Optional. Email provided to send a confirmation with provisioning config to.
620
+ # @param [String] update_mask
621
+ # Required. The list of fields to update.
622
+ # @param [String] fields
623
+ # Selector specifying which fields to include in a partial response.
624
+ # @param [String] quota_user
625
+ # Available to use for quota purposes for server-side applications. Can be any
626
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
627
+ # @param [Google::Apis::RequestOptions] options
628
+ # Request-specific options
629
+ #
630
+ # @yield [result, err] Result & error if block supplied
631
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::ProvisioningConfig] parsed result object
632
+ # @yieldparam err [StandardError] error object if request failed
633
+ #
634
+ # @return [Google::Apis::BaremetalsolutionV2::ProvisioningConfig]
635
+ #
636
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
637
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
638
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
639
+ def patch_project_location_provisioning_config(name, provisioning_config_object = nil, email: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
640
+ command = make_simple_command(:patch, 'v2/{+name}', options)
641
+ command.request_representation = Google::Apis::BaremetalsolutionV2::ProvisioningConfig::Representation
642
+ command.request_object = provisioning_config_object
643
+ command.response_representation = Google::Apis::BaremetalsolutionV2::ProvisioningConfig::Representation
644
+ command.response_class = Google::Apis::BaremetalsolutionV2::ProvisioningConfig
645
+ command.params['name'] = name unless name.nil?
646
+ command.query['email'] = email unless email.nil?
647
+ command.query['updateMask'] = update_mask unless update_mask.nil?
648
+ command.query['fields'] = fields unless fields.nil?
649
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
650
+ execute_or_queue_command(command, &block)
651
+ end
652
+
653
+ # Submit a provisiong configuration for a given project.
654
+ # @param [String] parent
655
+ # Required. The parent project and location containing the ProvisioningConfig.
656
+ # @param [Google::Apis::BaremetalsolutionV2::SubmitProvisioningConfigRequest] submit_provisioning_config_request_object
657
+ # @param [String] fields
658
+ # Selector specifying which fields to include in a partial response.
659
+ # @param [String] quota_user
660
+ # Available to use for quota purposes for server-side applications. Can be any
661
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
662
+ # @param [Google::Apis::RequestOptions] options
663
+ # Request-specific options
664
+ #
665
+ # @yield [result, err] Result & error if block supplied
666
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::SubmitProvisioningConfigResponse] parsed result object
667
+ # @yieldparam err [StandardError] error object if request failed
668
+ #
669
+ # @return [Google::Apis::BaremetalsolutionV2::SubmitProvisioningConfigResponse]
670
+ #
671
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
672
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
673
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
674
+ def submit_provisioning_config(parent, submit_provisioning_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
675
+ command = make_simple_command(:post, 'v2/{+parent}/provisioningConfigs:submit', options)
676
+ command.request_representation = Google::Apis::BaremetalsolutionV2::SubmitProvisioningConfigRequest::Representation
677
+ command.request_object = submit_provisioning_config_request_object
678
+ command.response_representation = Google::Apis::BaremetalsolutionV2::SubmitProvisioningConfigResponse::Representation
679
+ command.response_class = Google::Apis::BaremetalsolutionV2::SubmitProvisioningConfigResponse
680
+ command.params['parent'] = parent unless parent.nil?
681
+ command.query['fields'] = fields unless fields.nil?
682
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
683
+ execute_or_queue_command(command, &block)
684
+ end
685
+
686
+ # List the budget details to provision resources on a given project.
687
+ # @param [String] parent
688
+ # Required. Parent value for ListProvisioningQuotasRequest.
689
+ # @param [Fixnum] page_size
690
+ # Requested page size. The server might return fewer items than requested. If
691
+ # unspecified, server will pick an appropriate default. Notice that page_size
692
+ # field is not supported and won't be respected in the API request for now, will
693
+ # be updated when pagination is supported.
694
+ # @param [String] page_token
695
+ # A token identifying a page of results from the server.
696
+ # @param [String] fields
697
+ # Selector specifying which fields to include in a partial response.
698
+ # @param [String] quota_user
699
+ # Available to use for quota purposes for server-side applications. Can be any
700
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
701
+ # @param [Google::Apis::RequestOptions] options
702
+ # Request-specific options
703
+ #
704
+ # @yield [result, err] Result & error if block supplied
705
+ # @yieldparam result [Google::Apis::BaremetalsolutionV2::ListProvisioningQuotasResponse] parsed result object
706
+ # @yieldparam err [StandardError] error object if request failed
707
+ #
708
+ # @return [Google::Apis::BaremetalsolutionV2::ListProvisioningQuotasResponse]
709
+ #
710
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
711
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
712
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
713
+ def list_project_location_provisioning_quotas(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
714
+ command = make_simple_command(:get, 'v2/{+parent}/provisioningQuotas', options)
715
+ command.response_representation = Google::Apis::BaremetalsolutionV2::ListProvisioningQuotasResponse::Representation
716
+ command.response_class = Google::Apis::BaremetalsolutionV2::ListProvisioningQuotasResponse
717
+ command.params['parent'] = parent unless parent.nil?
718
+ command.query['pageSize'] = page_size unless page_size.nil?
719
+ command.query['pageToken'] = page_token unless page_token.nil?
720
+ command.query['fields'] = fields unless fields.nil?
721
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
722
+ execute_or_queue_command(command, &block)
723
+ end
724
+
378
725
  # Create a snapshot schedule policy in the specified project.
379
726
  # @param [String] parent
380
727
  # Required. The parent project and location containing the
@@ -626,7 +973,9 @@ module Google
626
973
  # @param [Google::Apis::BaremetalsolutionV2::Volume] volume_object
627
974
  # @param [String] update_mask
628
975
  # The list of fields to update. The only currently supported fields are: `
629
- # snapshot_auto_delete_behavior` `snapshot_schedule_policy_name` 'labels'
976
+ # snapshot_auto_delete_behavior` `snapshot_schedule_policy_name` 'labels' '
977
+ # requested_size_gib' 'snapshot_enabled' 'snapshot_reservation_detail.
978
+ # reserved_space_percent'
630
979
  # @param [String] fields
631
980
  # Selector specifying which fields to include in a partial response.
632
981
  # @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.9.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-03-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.9.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: []