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_instance(parent, instance_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Operation
Create an Instance.
-
#create_project_location_provisioning_config(parent, provisioning_config_object = nil, email: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ProvisioningConfig
Create new ProvisioningConfig.
-
#detach_instance_lun(instance, detach_lun_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Operation
Detach LUN from Instance.
-
#fetch_project_location_instance_provisioning_setting(location, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::FetchInstanceProvisioningSettingsResponse
Get instance provisioning settings for a given project.
-
#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_nfs_share(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::NfsShare
Get details of a single NFS share.
-
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Operation
Get details about an operation.
-
#get_project_location_provisioning_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ProvisioningConfig
Get ProvisioningConfig by name.
-
#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).
-
#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_network_network_usage(location, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ListNetworkUsageResponse
List all Networks (and used IPs for each Network) in the vendor account associated with the specified project.
-
#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_nfs_shares(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ListNfsSharesResponse
List NFS shares.
-
#list_project_location_provisioning_quotas(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ListProvisioningQuotasResponse
List the budget details to provision resources on a given project.
-
#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_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_nfs_share(name, nfs_share_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Operation
Update details of a single NFS share.
-
#patch_project_location_provisioning_config(name, provisioning_config_object = nil, email: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ProvisioningConfig
Update existing ProvisioningConfig.
-
#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.
-
#resize_volume(volume, resize_volume_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Operation
Emergency Volume resize.
-
#start_instance(name, start_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Operation
Starts a server that was shutdown.
-
#stop_instance(name, stop_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Operation
Stop a running server.
-
#submit_provisioning_config(parent, submit_provisioning_config_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::SubmitProvisioningConfigResponse
Submit a provisiong configuration for a given project.
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_instance(parent, instance_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Operation
Create an Instance.
178 179 180 181 182 183 184 185 186 187 188 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 178 def create_project_location_instance(parent, instance_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/instances', ) 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['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 |
#create_project_location_provisioning_config(parent, provisioning_config_object = nil, email: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ProvisioningConfig
Create new ProvisioningConfig.
734 735 736 737 738 739 740 741 742 743 744 745 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 734 def create_project_location_provisioning_config(parent, provisioning_config_object = nil, email: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/provisioningConfigs', ) command.request_representation = Google::Apis::BaremetalsolutionV2::ProvisioningConfig::Representation command.request_object = provisioning_config_object command.response_representation = Google::Apis::BaremetalsolutionV2::ProvisioningConfig::Representation command.response_class = Google::Apis::BaremetalsolutionV2::ProvisioningConfig command.params['parent'] = parent unless parent.nil? command.query['email'] = email unless email.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#detach_instance_lun(instance, detach_lun_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Operation
Detach LUN from Instance.
211 212 213 214 215 216 217 218 219 220 221 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 211 def detach_instance_lun(instance, detach_lun_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+instance}:detachLun', ) command.request_representation = Google::Apis::BaremetalsolutionV2::DetachLunRequest::Representation command.request_object = detach_lun_request_object command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation command.response_class = Google::Apis::BaremetalsolutionV2::Operation command.params['instance'] = instance unless instance.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#fetch_project_location_instance_provisioning_setting(location, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::FetchInstanceProvisioningSettingsResponse
Get instance provisioning settings for a given project. This is hidden method used by UI only.
147 148 149 150 151 152 153 154 155 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 147 def fetch_project_location_instance_provisioning_setting(location, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+location}/instanceProvisioningSettings:fetch', ) command.response_representation = Google::Apis::BaremetalsolutionV2::FetchInstanceProvisioningSettingsResponse::Representation command.response_class = Google::Apis::BaremetalsolutionV2::FetchInstanceProvisioningSettingsResponse command.params['location'] = location unless location.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.
243 244 245 246 247 248 249 250 251 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 243 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.
453 454 455 456 457 458 459 460 461 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 453 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_nfs_share(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::NfsShare
Get details of a single NFS share.
594 595 596 597 598 599 600 601 602 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 594 def get_project_location_nfs_share(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::BaremetalsolutionV2::NfsShare::Representation command.response_class = Google::Apis::BaremetalsolutionV2::NfsShare 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_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Operation
Get details about an operation. This method used only to work around CCFE lack of passthrough LRO support (b/221498758).
701 702 703 704 705 706 707 708 709 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 701 def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) 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 |
#get_project_location_provisioning_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ProvisioningConfig
Get ProvisioningConfig by name.
767 768 769 770 771 772 773 774 775 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 767 def get_project_location_provisioning_config(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::BaremetalsolutionV2::ProvisioningConfig::Representation command.response_class = Google::Apis::BaremetalsolutionV2::ProvisioningConfig 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.
908 909 910 911 912 913 914 915 916 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 908 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).
1052 1053 1054 1055 1056 1057 1058 1059 1060 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 1052 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 |
#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.
280 281 282 283 284 285 286 287 288 289 290 291 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 280 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_network_network_usage(location, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ListNetworkUsageResponse
List all Networks (and used IPs for each Network) in the vendor account associated with the specified project.
524 525 526 527 528 529 530 531 532 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 524 def list_project_location_network_network_usage(location, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+location}/networks:listNetworkUsage', ) command.response_representation = Google::Apis::BaremetalsolutionV2::ListNetworkUsageResponse::Representation command.response_class = Google::Apis::BaremetalsolutionV2::ListNetworkUsageResponse command.params['location'] = location unless location.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.
490 491 492 493 494 495 496 497 498 499 500 501 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 490 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_nfs_shares(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ListNfsSharesResponse
List NFS shares.
631 632 633 634 635 636 637 638 639 640 641 642 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 631 def list_project_location_nfs_shares(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/nfsShares', ) command.response_representation = Google::Apis::BaremetalsolutionV2::ListNfsSharesResponse::Representation command.response_class = Google::Apis::BaremetalsolutionV2::ListNfsSharesResponse 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_provisioning_quotas(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ListProvisioningQuotasResponse
List the budget details to provision resources on a given project.
876 877 878 879 880 881 882 883 884 885 886 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 876 def list_project_location_provisioning_quotas(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/provisioningQuotas', ) command.response_representation = Google::Apis::BaremetalsolutionV2::ListProvisioningQuotasResponse::Representation command.response_class = Google::Apis::BaremetalsolutionV2::ListProvisioningQuotasResponse 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_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.
1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 1087 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_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.
945 946 947 948 949 950 951 952 953 954 955 956 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 945 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.
320 321 322 323 324 325 326 327 328 329 330 331 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 320 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.
561 562 563 564 565 566 567 568 569 570 571 572 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 561 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_nfs_share(name, nfs_share_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Operation
Update details of a single NFS share.
667 668 669 670 671 672 673 674 675 676 677 678 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 667 def patch_project_location_nfs_share(name, nfs_share_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::NfsShare::Representation command.request_object = nfs_share_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_provisioning_config(name, provisioning_config_object = nil, email: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::ProvisioningConfig
Update existing ProvisioningConfig.
802 803 804 805 806 807 808 809 810 811 812 813 814 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 802 def patch_project_location_provisioning_config(name, provisioning_config_object = nil, email: 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::ProvisioningConfig::Representation command.request_object = provisioning_config_object command.response_representation = Google::Apis::BaremetalsolutionV2::ProvisioningConfig::Representation command.response_class = Google::Apis::BaremetalsolutionV2::ProvisioningConfig command.params['name'] = name unless name.nil? command.query['email'] = email unless email.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.
986 987 988 989 990 991 992 993 994 995 996 997 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 986 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.
355 356 357 358 359 360 361 362 363 364 365 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 355 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 |
#resize_volume(volume, resize_volume_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Operation
Emergency Volume resize.
1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 1020 def resize_volume(volume, resize_volume_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+volume}:resize', ) command.request_representation = Google::Apis::BaremetalsolutionV2::ResizeVolumeRequest::Representation command.request_object = resize_volume_request_object command.response_representation = Google::Apis::BaremetalsolutionV2::Operation::Representation command.response_class = Google::Apis::BaremetalsolutionV2::Operation command.params['volume'] = volume unless volume.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#start_instance(name, start_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Operation
Starts a server that was shutdown.
388 389 390 391 392 393 394 395 396 397 398 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 388 def start_instance(name, start_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+name}:start', ) command.request_representation = Google::Apis::BaremetalsolutionV2::StartInstanceRequest::Representation command.request_object = start_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 |
#stop_instance(name, stop_instance_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::Operation
Stop a running server.
421 422 423 424 425 426 427 428 429 430 431 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 421 def stop_instance(name, stop_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+name}:stop', ) command.request_representation = Google::Apis::BaremetalsolutionV2::StopInstanceRequest::Representation command.request_object = stop_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 |
#submit_provisioning_config(parent, submit_provisioning_config_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BaremetalsolutionV2::SubmitProvisioningConfigResponse
Submit a provisiong configuration for a given project.
837 838 839 840 841 842 843 844 845 846 847 |
# File 'lib/google/apis/baremetalsolution_v2/service.rb', line 837 def submit_provisioning_config(parent, submit_provisioning_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/provisioningConfigs:submit', ) command.request_representation = Google::Apis::BaremetalsolutionV2::SubmitProvisioningConfigRequest::Representation command.request_object = submit_provisioning_config_request_object command.response_representation = Google::Apis::BaremetalsolutionV2::SubmitProvisioningConfigResponse::Representation command.response_class = Google::Apis::BaremetalsolutionV2::SubmitProvisioningConfigResponse 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 |