Class: Google::Apis::BaremetalsolutionV2::BaremetalsolutionService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::BaremetalsolutionV2::BaremetalsolutionService
- Defined in:
- lib/google/apis/baremetalsolution_v2/service.rb
Overview
Bare Metal Solution API
Provides ways to manage Bare Metal Solution hardware installed in a regional extension located near a Google Cloud data center.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#create_project_location_snapshot_schedule_policy(parent, snapshot_schedule_policy_object = nil, snapshot_schedule_policy_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy
Create a snapshot schedule policy in the specified project.
-
#create_project_location_volume_snapshot(parent, volume_snapshot_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::VolumeSnapshot
Create a storage volume snapshot in a containing volume.
-
#delete_project_location_snapshot_schedule_policy(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Empty
Delete a named snapshot schedule policy.
-
#delete_project_location_volume_snapshot(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Empty
Deletes a storage volume snapshot for a given volume.
-
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Location
Gets information about a location.
-
#get_project_location_instance(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Instance
Get details about a single server.
-
#get_project_location_network(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Network
Get details of a single network.
-
#get_project_location_snapshot_schedule_policy(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy
Get details of a single snapshot schedule policy.
-
#get_project_location_volume(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Volume
Get details of a single storage volume.
-
#get_project_location_volume_lun(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Lun
Get details of a single storage logical unit number(LUN).
-
#get_project_location_volume_snapshot(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::VolumeSnapshot
Get details of a single storage volume snapshot.
-
#initialize ⇒ BaremetalsolutionService
constructor
A new instance of BaremetalsolutionService.
-
#list_project_location_instances(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ListInstancesResponse
List servers in a given project and location.
-
#list_project_location_networks(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ListNetworksResponse
List network in a given project and location.
-
#list_project_location_snapshot_schedule_policies(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ListSnapshotSchedulePoliciesResponse
List snapshot schedule policies in a given project and location.
-
#list_project_location_volume_luns(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ListLunsResponse
List storage volume luns for given storage volume.
-
#list_project_location_volume_snapshots(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse
List storage volume snapshots for given storage volume.
-
#list_project_location_volumes(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ListVolumesResponse
List storage volumes in a given project and location.
-
#list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ListLocationsResponse
Lists information about the supported locations for this service.
-
#patch_project_location_instance(name, instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Operation
Update details of a single server.
-
#patch_project_location_network(name, network_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Operation
Update details of a single network.
-
#patch_project_location_snapshot_schedule_policy(name, snapshot_schedule_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy
Update a snapshot schedule policy in the specified project.
-
#patch_project_location_volume(name, volume_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Operation
Update details of a single storage volume.
-
#reset_instance(name, reset_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Operation
Perform an ungraceful, hard reset on a server.
-
#restore_volume_snapshot(volume_snapshot, restore_volume_snapshot_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Operation
Restore a storage volume snapshot to its containing volume.
Constructor Details
#initialize ⇒ BaremetalsolutionService
Returns a new instance of BaremetalsolutionService.
46 47 48 49 50 51 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 46 def initialize super('https://baremetalsolution.googleapis.com/', '', client_name: 'google-apis-baremetalsolution_v2', client_version: Google::Apis::BaremetalsolutionV2::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
39 40 41 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 39 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
44 45 46 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 44 def quota_user @quota_user end |
Instance Method Details
#create_project_location_snapshot_schedule_policy(parent, snapshot_schedule_policy_object = nil, snapshot_schedule_policy_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy
Create a snapshot schedule policy in the specified project.
402 403 404 405 406 407 408 409 410 411 412 413 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 402 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) command = make_simple_command(:post, 'v2/{+parent}/snapshotSchedulePolicies', ) command.request_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation command.request_object = snapshot_schedule_policy_object command.response_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation command.response_class = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy command.params['parent'] = parent unless parent.nil? command.query['snapshotSchedulePolicyId'] = snapshot_schedule_policy_id unless snapshot_schedule_policy_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_volume_snapshot(parent, volume_snapshot_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::VolumeSnapshot
Create a storage volume snapshot in a containing volume.
748 749 750 751 752 753 754 755 756 757 758 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 748 def create_project_location_volume_snapshot(parent, volume_snapshot_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/snapshots', ) command.request_representation = Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation command.request_object = volume_snapshot_object command.response_representation = Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation command.response_class = Google::Apis::BaremetalsolutionV2::VolumeSnapshot command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_snapshot_schedule_policy(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Empty
Delete a named snapshot schedule policy.
435 436 437 438 439 440 441 442 443 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 435 def delete_project_location_snapshot_schedule_policy(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/{+name}', ) command.response_representation = Google::Apis::BaremetalsolutionV2::Empty::Representation command.response_class = Google::Apis::BaremetalsolutionV2::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_volume_snapshot(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Empty
Deletes a storage volume snapshot for a given volume.
780 781 782 783 784 785 786 787 788 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 780 def delete_project_location_volume_snapshot(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/{+name}', ) command.response_representation = Google::Apis::BaremetalsolutionV2::Empty::Representation command.response_class = Google::Apis::BaremetalsolutionV2::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Location
Gets information about a location.
73 74 75 76 77 78 79 80 81 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 73 def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::BaremetalsolutionV2::Location::Representation command.response_class = Google::Apis::BaremetalsolutionV2::Location command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_instance(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Instance
Get details about a single server.
146 147 148 149 150 151 152 153 154 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 146 def get_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::BaremetalsolutionV2::Instance::Representation command.response_class = Google::Apis::BaremetalsolutionV2::Instance command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_network(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Network
Get details of a single network.
289 290 291 292 293 294 295 296 297 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 289 def get_project_location_network(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::BaremetalsolutionV2::Network::Representation command.response_class = Google::Apis::BaremetalsolutionV2::Network command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_snapshot_schedule_policy(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy
Get details of a single snapshot schedule policy.
465 466 467 468 469 470 471 472 473 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 465 def get_project_location_snapshot_schedule_policy(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation command.response_class = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_volume(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Volume
Get details of a single storage volume.
570 571 572 573 574 575 576 577 578 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 570 def get_project_location_volume(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::BaremetalsolutionV2::Volume::Representation command.response_class = Google::Apis::BaremetalsolutionV2::Volume command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_volume_lun(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Lun
Get details of a single storage logical unit number(LUN).
680 681 682 683 684 685 686 687 688 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 680 def get_project_location_volume_lun(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::BaremetalsolutionV2::Lun::Representation command.response_class = Google::Apis::BaremetalsolutionV2::Lun command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_volume_snapshot(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::VolumeSnapshot
Get details of a single storage volume snapshot.
810 811 812 813 814 815 816 817 818 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 810 def get_project_location_volume_snapshot(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::BaremetalsolutionV2::VolumeSnapshot::Representation command.response_class = Google::Apis::BaremetalsolutionV2::VolumeSnapshot command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_instances(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ListInstancesResponse
List servers in a given project and location.
183 184 185 186 187 188 189 190 191 192 193 194 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 183 def list_project_location_instances(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/instances', ) command.response_representation = Google::Apis::BaremetalsolutionV2::ListInstancesResponse::Representation command.response_class = Google::Apis::BaremetalsolutionV2::ListInstancesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_networks(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ListNetworksResponse
List network in a given project and location.
326 327 328 329 330 331 332 333 334 335 336 337 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 326 def list_project_location_networks(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/networks', ) command.response_representation = Google::Apis::BaremetalsolutionV2::ListNetworksResponse::Representation command.response_class = Google::Apis::BaremetalsolutionV2::ListNetworksResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_snapshot_schedule_policies(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ListSnapshotSchedulePoliciesResponse
List snapshot schedule policies in a given project and location.
501 502 503 504 505 506 507 508 509 510 511 512 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 501 def list_project_location_snapshot_schedule_policies(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/snapshotSchedulePolicies', ) command.response_representation = Google::Apis::BaremetalsolutionV2::ListSnapshotSchedulePoliciesResponse::Representation command.response_class = Google::Apis::BaremetalsolutionV2::ListSnapshotSchedulePoliciesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_volume_luns(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ListLunsResponse
List storage volume luns for given storage volume.
715 716 717 718 719 720 721 722 723 724 725 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 715 def list_project_location_volume_luns(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/luns', ) command.response_representation = Google::Apis::BaremetalsolutionV2::ListLunsResponse::Representation command.response_class = Google::Apis::BaremetalsolutionV2::ListLunsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_volume_snapshots(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse
List storage volume snapshots for given storage volume.
845 846 847 848 849 850 851 852 853 854 855 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 845 def list_project_location_volume_snapshots(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/snapshots', ) command.response_representation = Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse::Representation command.response_class = Google::Apis::BaremetalsolutionV2::ListVolumeSnapshotsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_volumes(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ListVolumesResponse
List storage volumes in a given project and location.
607 608 609 610 611 612 613 614 615 616 617 618 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 607 def list_project_location_volumes(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/volumes', ) command.response_representation = Google::Apis::BaremetalsolutionV2::ListVolumesResponse::Representation command.response_class = Google::Apis::BaremetalsolutionV2::ListVolumesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ListLocationsResponse
Lists information about the supported locations for this service.
113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 113 def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}/locations', ) command.response_representation = Google::Apis::BaremetalsolutionV2::ListLocationsResponse::Representation command.response_class = Google::Apis::BaremetalsolutionV2::ListLocationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_instance(name, instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Operation
Update details of a single server.
222 223 224 225 226 227 228 229 230 231 232 233 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 222 def patch_project_location_instance(name, instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/{+name}', ) command.request_representation = Google::Apis::BaremetalsolutionV2::Instance::Representation command.request_object = instance_object command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation command.response_class = Google::Apis::BaremetalsolutionV2::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_network(name, network_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Operation
Update details of a single network.
365 366 367 368 369 370 371 372 373 374 375 376 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 365 def patch_project_location_network(name, network_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/{+name}', ) command.request_representation = Google::Apis::BaremetalsolutionV2::Network::Representation command.request_object = network_object command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation command.response_class = Google::Apis::BaremetalsolutionV2::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_snapshot_schedule_policy(name, snapshot_schedule_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy
Update a snapshot schedule policy in the specified project.
537 538 539 540 541 542 543 544 545 546 547 548 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 537 def patch_project_location_snapshot_schedule_policy(name, snapshot_schedule_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/{+name}', ) command.request_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation command.request_object = snapshot_schedule_policy_object command.response_representation = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy::Representation command.response_class = Google::Apis::BaremetalsolutionV2::SnapshotSchedulePolicy command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_volume(name, volume_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Operation
Update details of a single storage volume.
647 648 649 650 651 652 653 654 655 656 657 658 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 647 def patch_project_location_volume(name, volume_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/{+name}', ) command.request_representation = Google::Apis::BaremetalsolutionV2::Volume::Representation command.request_object = volume_object command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation command.response_class = Google::Apis::BaremetalsolutionV2::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#reset_instance(name, reset_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Operation
Perform an ungraceful, hard reset on a server. Equivalent to shutting the power off and then turning it back on.
257 258 259 260 261 262 263 264 265 266 267 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 257 def reset_instance(name, reset_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+name}:reset', ) command.request_representation = Google::Apis::BaremetalsolutionV2::ResetInstanceRequest::Representation command.request_object = reset_instance_request_object command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation command.response_class = Google::Apis::BaremetalsolutionV2::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#restore_volume_snapshot(volume_snapshot, restore_volume_snapshot_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Operation
Restore a storage volume snapshot to its containing volume.
878 879 880 881 882 883 884 885 886 887 888 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 878 def restore_volume_snapshot(volume_snapshot, restore_volume_snapshot_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+volumeSnapshot}:restoreVolumeSnapshot', ) command.request_representation = Google::Apis::BaremetalsolutionV2::RestoreVolumeSnapshotRequest::Representation command.request_object = restore_volume_snapshot_request_object command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation command.response_class = Google::Apis::BaremetalsolutionV2::Operation command.params['volumeSnapshot'] = volume_snapshot unless volume_snapshot.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |