pnap_bmc_api 1.5.0 → 2.0.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.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -1
  3. data/VERSION +1 -1
  4. data/docs/DeleteResult.md +1 -1
  5. data/docs/OsConfigurationCloudInit.md +1 -1
  6. data/docs/QuotasApi.md +6 -8
  7. data/docs/SSHKeysApi.md +12 -16
  8. data/docs/Server.md +11 -7
  9. data/docs/ServerCreate.md +3 -3
  10. data/docs/ServerNetworkUpdate.md +2 -2
  11. data/docs/ServerPrivateNetwork.md +3 -3
  12. data/docs/ServerProvision.md +38 -0
  13. data/docs/ServerPublicNetwork.md +2 -2
  14. data/docs/ServersApi.md +173 -111
  15. data/docs/StorageConfigurationRootPartition.md +2 -2
  16. data/lib/pnap_bmc_api/api/quotas_api.rb +11 -7
  17. data/lib/pnap_bmc_api/api/servers_api.rb +200 -75
  18. data/lib/pnap_bmc_api/api/ssh_keys_api.rb +21 -13
  19. data/lib/pnap_bmc_api/api_client.rb +24 -21
  20. data/lib/pnap_bmc_api/api_error.rb +2 -1
  21. data/lib/pnap_bmc_api/configuration.rb +28 -9
  22. data/lib/pnap_bmc_api/models/action_result.rb +16 -19
  23. data/lib/pnap_bmc_api/models/delete_result.rb +18 -19
  24. data/lib/pnap_bmc_api/models/delete_ssh_key_result.rb +18 -19
  25. data/lib/pnap_bmc_api/models/error.rb +16 -19
  26. data/lib/pnap_bmc_api/models/ip_blocks_configuration.rb +19 -20
  27. data/lib/pnap_bmc_api/models/network_configuration.rb +14 -19
  28. data/lib/pnap_bmc_api/models/os_configuration.rb +19 -20
  29. data/lib/pnap_bmc_api/models/os_configuration_cloud_init.rb +15 -20
  30. data/lib/pnap_bmc_api/models/os_configuration_map.rb +14 -19
  31. data/lib/pnap_bmc_api/models/os_configuration_map_esxi.rb +19 -20
  32. data/lib/pnap_bmc_api/models/os_configuration_map_proxmox.rb +19 -20
  33. data/lib/pnap_bmc_api/models/os_configuration_netris_controller.rb +14 -19
  34. data/lib/pnap_bmc_api/models/os_configuration_netris_softgate.rb +25 -22
  35. data/lib/pnap_bmc_api/models/os_configuration_windows.rb +19 -20
  36. data/lib/pnap_bmc_api/models/private_network_configuration.rb +14 -19
  37. data/lib/pnap_bmc_api/models/public_network_configuration.rb +14 -19
  38. data/lib/pnap_bmc_api/models/quota.rb +30 -19
  39. data/lib/pnap_bmc_api/models/quota_edit_limit_request.rb +39 -19
  40. data/lib/pnap_bmc_api/models/quota_edit_limit_request_details.rb +42 -21
  41. data/lib/pnap_bmc_api/models/relinquish_ip_block.rb +14 -19
  42. data/lib/pnap_bmc_api/models/reset_result.rb +16 -19
  43. data/lib/pnap_bmc_api/models/server.rb +79 -33
  44. data/lib/pnap_bmc_api/models/server_create.rb +29 -22
  45. data/lib/pnap_bmc_api/models/server_ip_block.rb +16 -19
  46. data/lib/pnap_bmc_api/models/server_network_update.rb +15 -20
  47. data/lib/pnap_bmc_api/models/server_patch.rb +27 -24
  48. data/lib/pnap_bmc_api/models/server_private_network.rb +23 -22
  49. data/lib/pnap_bmc_api/models/server_provision.rb +395 -0
  50. data/lib/pnap_bmc_api/models/server_public_network.rb +17 -20
  51. data/lib/pnap_bmc_api/models/server_reserve.rb +16 -19
  52. data/lib/pnap_bmc_api/models/server_reset.rb +14 -19
  53. data/lib/pnap_bmc_api/models/ssh_key.rb +28 -19
  54. data/lib/pnap_bmc_api/models/ssh_key_create.rb +52 -19
  55. data/lib/pnap_bmc_api/models/ssh_key_update.rb +29 -19
  56. data/lib/pnap_bmc_api/models/storage_configuration.rb +14 -19
  57. data/lib/pnap_bmc_api/models/storage_configuration_root_partition.rb +14 -19
  58. data/lib/pnap_bmc_api/models/tag_assignment.rb +20 -19
  59. data/lib/pnap_bmc_api/models/tag_assignment_request.rb +16 -19
  60. data/lib/pnap_bmc_api/version.rb +1 -1
  61. data/lib/pnap_bmc_api.rb +2 -2
  62. data/pnap_bmc_api.gemspec +2 -2
  63. data/spec/api/quotas_api_spec.rb +6 -6
  64. data/spec/api/servers_api_spec.rb +109 -36
  65. data/spec/api/ssh_keys_api_spec.rb +9 -9
  66. data/spec/models/action_result_spec.rb +6 -4
  67. data/spec/models/delete_result_spec.rb +7 -5
  68. data/spec/models/delete_ssh_key_result_spec.rb +7 -5
  69. data/spec/models/error_spec.rb +7 -5
  70. data/spec/models/ip_blocks_configuration_spec.rb +7 -5
  71. data/spec/models/network_configuration_spec.rb +19 -5
  72. data/spec/models/os_configuration_cloud_init_spec.rb +5 -3
  73. data/spec/models/os_configuration_map_esxi_spec.rb +8 -6
  74. data/spec/models/os_configuration_map_proxmox_spec.rb +8 -6
  75. data/spec/models/os_configuration_map_spec.rb +8 -6
  76. data/spec/models/os_configuration_netris_controller_spec.rb +7 -5
  77. data/spec/models/os_configuration_netris_softgate_spec.rb +8 -6
  78. data/spec/models/os_configuration_spec.rb +33 -7
  79. data/spec/models/os_configuration_windows_spec.rb +6 -4
  80. data/spec/models/private_network_configuration_spec.rb +8 -6
  81. data/spec/models/public_network_configuration_spec.rb +6 -4
  82. data/spec/models/quota_edit_limit_request_details_spec.rb +8 -6
  83. data/spec/models/quota_edit_limit_request_spec.rb +7 -5
  84. data/spec/models/quota_spec.rb +13 -15
  85. data/spec/models/relinquish_ip_block_spec.rb +6 -4
  86. data/spec/models/reset_result_spec.rb +8 -6
  87. data/spec/models/server_create_spec.rb +25 -17
  88. data/spec/models/server_ip_block_spec.rb +7 -5
  89. data/spec/models/server_network_update_spec.rb +5 -3
  90. data/spec/models/server_patch_spec.rb +7 -5
  91. data/spec/models/server_private_network_spec.rb +9 -7
  92. data/spec/models/server_provision_spec.rb +96 -0
  93. data/spec/models/server_public_network_spec.rb +8 -6
  94. data/spec/models/server_reserve_spec.rb +6 -4
  95. data/spec/models/server_reset_spec.rb +9 -7
  96. data/spec/models/server_spec.rb +47 -27
  97. data/spec/models/ssh_key_create_spec.rb +8 -6
  98. data/spec/models/ssh_key_spec.rb +12 -10
  99. data/spec/models/ssh_key_update_spec.rb +7 -5
  100. data/spec/models/storage_configuration_root_partition_spec.rb +6 -4
  101. data/spec/models/storage_configuration_spec.rb +5 -3
  102. data/spec/models/tag_assignment_request_spec.rb +7 -5
  103. data/spec/models/tag_assignment_spec.rb +10 -8
  104. data/spec/spec_helper.rb +1 -1
  105. metadata +38 -42
  106. data/docs/QuotaEditLimitRequestDetailsAllOf.md +0 -18
  107. data/lib/pnap_bmc_api/models/quota_edit_limit_request_details_all_of.rb +0 -226
  108. data/spec/api_client_spec.rb +0 -226
  109. data/spec/configuration_spec.rb +0 -42
  110. data/spec/models/quota_edit_limit_request_details_all_of_spec.rb +0 -34
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.1
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.1.0
9
+ OpenAPI Generator version: 7.2.0
10
10
 
11
11
  =end
12
12
 
@@ -149,26 +149,30 @@ module BmcApi
149
149
  end
150
150
 
151
151
  # Create new server.
152
- # Create (request) new server for account. Server DNS will be configured to access Google's public DNS at 8.8.8.8 .
152
+ # Create (request) a new server for the account. Server DNS will be configured to access Google's public DNS at 8.8.8.8 . Note that the product availability API can be used prior to doing the provision request. Refer to https://developers.phoenixnap.com/docs/bmc-billing/1/routes/product-availability/get.
153
+ # @param server_create [ServerCreate]
153
154
  # @param [Hash] opts the optional parameters
154
155
  # @option opts [Boolean] :force Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups. (default to false)
155
- # @option opts [ServerCreate] :server_create
156
156
  # @return [Server]
157
- def servers_post(opts = {})
158
- data, _status_code, _headers = servers_post_with_http_info(opts)
157
+ def servers_post(server_create, opts = {})
158
+ data, _status_code, _headers = servers_post_with_http_info(server_create, opts)
159
159
  data
160
160
  end
161
161
 
162
162
  # Create new server.
163
- # Create (request) new server for account. Server DNS will be configured to access Google's public DNS at 8.8.8.8 .
163
+ # Create (request) a new server for the account. Server DNS will be configured to access Google's public DNS at 8.8.8.8 . Note that the product availability API can be used prior to doing the provision request. Refer to https://developers.phoenixnap.com/docs/bmc-billing/1/routes/product-availability/get.
164
+ # @param server_create [ServerCreate]
164
165
  # @param [Hash] opts the optional parameters
165
166
  # @option opts [Boolean] :force Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups. (default to false)
166
- # @option opts [ServerCreate] :server_create
167
167
  # @return [Array<(Server, Integer, Hash)>] Server data, response status code and response headers
168
- def servers_post_with_http_info(opts = {})
168
+ def servers_post_with_http_info(server_create, opts = {})
169
169
  if @api_client.config.debugging
170
170
  @api_client.config.logger.debug 'Calling API: ServersApi.servers_post ...'
171
171
  end
172
+ # verify the required parameter 'server_create' is set
173
+ if @api_client.config.client_side_validation && server_create.nil?
174
+ fail ArgumentError, "Missing the required parameter 'server_create' when calling ServersApi.servers_post"
175
+ end
172
176
  # resource path
173
177
  local_var_path = '/servers'
174
178
 
@@ -190,7 +194,7 @@ module BmcApi
190
194
  form_params = opts[:form_params] || {}
191
195
 
192
196
  # http body (model)
193
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'server_create'])
197
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(server_create)
194
198
 
195
199
  # return_type
196
200
  return_type = opts[:debug_return_type] || 'Server'
@@ -218,21 +222,21 @@ module BmcApi
218
222
  # Deprovision a server.
219
223
  # Deprovision the server. Supports advanced deprovision configuration.
220
224
  # @param server_id [String] The server&#39;s ID.
225
+ # @param relinquish_ip_block [RelinquishIpBlock]
221
226
  # @param [Hash] opts the optional parameters
222
- # @option opts [RelinquishIpBlock] :relinquish_ip_block
223
227
  # @return [String]
224
- def servers_server_id_actions_deprovision_post(server_id, opts = {})
225
- data, _status_code, _headers = servers_server_id_actions_deprovision_post_with_http_info(server_id, opts)
228
+ def servers_server_id_actions_deprovision_post(server_id, relinquish_ip_block, opts = {})
229
+ data, _status_code, _headers = servers_server_id_actions_deprovision_post_with_http_info(server_id, relinquish_ip_block, opts)
226
230
  data
227
231
  end
228
232
 
229
233
  # Deprovision a server.
230
234
  # Deprovision the server. Supports advanced deprovision configuration.
231
235
  # @param server_id [String] The server&#39;s ID.
236
+ # @param relinquish_ip_block [RelinquishIpBlock]
232
237
  # @param [Hash] opts the optional parameters
233
- # @option opts [RelinquishIpBlock] :relinquish_ip_block
234
238
  # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
235
- def servers_server_id_actions_deprovision_post_with_http_info(server_id, opts = {})
239
+ def servers_server_id_actions_deprovision_post_with_http_info(server_id, relinquish_ip_block, opts = {})
236
240
  if @api_client.config.debugging
237
241
  @api_client.config.logger.debug 'Calling API: ServersApi.servers_server_id_actions_deprovision_post ...'
238
242
  end
@@ -240,6 +244,10 @@ module BmcApi
240
244
  if @api_client.config.client_side_validation && server_id.nil?
241
245
  fail ArgumentError, "Missing the required parameter 'server_id' when calling ServersApi.servers_server_id_actions_deprovision_post"
242
246
  end
247
+ # verify the required parameter 'relinquish_ip_block' is set
248
+ if @api_client.config.client_side_validation && relinquish_ip_block.nil?
249
+ fail ArgumentError, "Missing the required parameter 'relinquish_ip_block' when calling ServersApi.servers_server_id_actions_deprovision_post"
250
+ end
243
251
  # resource path
244
252
  local_var_path = '/servers/{serverId}/actions/deprovision'.sub('{' + 'serverId' + '}', CGI.escape(server_id.to_s))
245
253
 
@@ -260,7 +268,7 @@ module BmcApi
260
268
  form_params = opts[:form_params] || {}
261
269
 
262
270
  # http body (model)
263
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'relinquish_ip_block'])
271
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(relinquish_ip_block)
264
272
 
265
273
  # return_type
266
274
  return_type = opts[:debug_return_type] || 'String'
@@ -411,6 +419,83 @@ module BmcApi
411
419
  return data, status_code, headers
412
420
  end
413
421
 
422
+ # Provision server.
423
+ # Provision reserved server. Server DNS will be configured to access Google's public DNS at 8.8.8.8.
424
+ # @param server_id [String] The server&#39;s ID.
425
+ # @param server_provision [ServerProvision]
426
+ # @param [Hash] opts the optional parameters
427
+ # @option opts [Boolean] :force Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups. (default to false)
428
+ # @return [Server]
429
+ def servers_server_id_actions_provision_post(server_id, server_provision, opts = {})
430
+ data, _status_code, _headers = servers_server_id_actions_provision_post_with_http_info(server_id, server_provision, opts)
431
+ data
432
+ end
433
+
434
+ # Provision server.
435
+ # Provision reserved server. Server DNS will be configured to access Google&#39;s public DNS at 8.8.8.8.
436
+ # @param server_id [String] The server&#39;s ID.
437
+ # @param server_provision [ServerProvision]
438
+ # @param [Hash] opts the optional parameters
439
+ # @option opts [Boolean] :force Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups. (default to false)
440
+ # @return [Array<(Server, Integer, Hash)>] Server data, response status code and response headers
441
+ def servers_server_id_actions_provision_post_with_http_info(server_id, server_provision, opts = {})
442
+ if @api_client.config.debugging
443
+ @api_client.config.logger.debug 'Calling API: ServersApi.servers_server_id_actions_provision_post ...'
444
+ end
445
+ # verify the required parameter 'server_id' is set
446
+ if @api_client.config.client_side_validation && server_id.nil?
447
+ fail ArgumentError, "Missing the required parameter 'server_id' when calling ServersApi.servers_server_id_actions_provision_post"
448
+ end
449
+ # verify the required parameter 'server_provision' is set
450
+ if @api_client.config.client_side_validation && server_provision.nil?
451
+ fail ArgumentError, "Missing the required parameter 'server_provision' when calling ServersApi.servers_server_id_actions_provision_post"
452
+ end
453
+ # resource path
454
+ local_var_path = '/servers/{serverId}/actions/provision'.sub('{' + 'serverId' + '}', CGI.escape(server_id.to_s))
455
+
456
+ # query parameters
457
+ query_params = opts[:query_params] || {}
458
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
459
+
460
+ # header parameters
461
+ header_params = opts[:header_params] || {}
462
+ # HTTP header 'Accept' (if needed)
463
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
464
+ # HTTP header 'Content-Type'
465
+ content_type = @api_client.select_header_content_type(['application/json'])
466
+ if !content_type.nil?
467
+ header_params['Content-Type'] = content_type
468
+ end
469
+
470
+ # form parameters
471
+ form_params = opts[:form_params] || {}
472
+
473
+ # http body (model)
474
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(server_provision)
475
+
476
+ # return_type
477
+ return_type = opts[:debug_return_type] || 'Server'
478
+
479
+ # auth_names
480
+ auth_names = opts[:debug_auth_names] || ['OAuth2']
481
+
482
+ new_options = opts.merge(
483
+ :operation => :"ServersApi.servers_server_id_actions_provision_post",
484
+ :header_params => header_params,
485
+ :query_params => query_params,
486
+ :form_params => form_params,
487
+ :body => post_body,
488
+ :auth_names => auth_names,
489
+ :return_type => return_type
490
+ )
491
+
492
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
493
+ if @api_client.config.debugging
494
+ @api_client.config.logger.debug "API called: ServersApi#servers_server_id_actions_provision_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
495
+ end
496
+ return data, status_code, headers
497
+ end
498
+
414
499
  # Reboot server.
415
500
  # Reboot specific server.
416
501
  # @param server_id [String] The server&#39;s ID.
@@ -477,21 +562,21 @@ module BmcApi
477
562
  # Reserve server.
478
563
  # Reserve specific server.
479
564
  # @param server_id [String] The server&#39;s ID.
565
+ # @param server_reserve [ServerReserve]
480
566
  # @param [Hash] opts the optional parameters
481
- # @option opts [ServerReserve] :server_reserve
482
567
  # @return [Server]
483
- def servers_server_id_actions_reserve_post(server_id, opts = {})
484
- data, _status_code, _headers = servers_server_id_actions_reserve_post_with_http_info(server_id, opts)
568
+ def servers_server_id_actions_reserve_post(server_id, server_reserve, opts = {})
569
+ data, _status_code, _headers = servers_server_id_actions_reserve_post_with_http_info(server_id, server_reserve, opts)
485
570
  data
486
571
  end
487
572
 
488
573
  # Reserve server.
489
574
  # Reserve specific server.
490
575
  # @param server_id [String] The server&#39;s ID.
576
+ # @param server_reserve [ServerReserve]
491
577
  # @param [Hash] opts the optional parameters
492
- # @option opts [ServerReserve] :server_reserve
493
578
  # @return [Array<(Server, Integer, Hash)>] Server data, response status code and response headers
494
- def servers_server_id_actions_reserve_post_with_http_info(server_id, opts = {})
579
+ def servers_server_id_actions_reserve_post_with_http_info(server_id, server_reserve, opts = {})
495
580
  if @api_client.config.debugging
496
581
  @api_client.config.logger.debug 'Calling API: ServersApi.servers_server_id_actions_reserve_post ...'
497
582
  end
@@ -499,6 +584,10 @@ module BmcApi
499
584
  if @api_client.config.client_side_validation && server_id.nil?
500
585
  fail ArgumentError, "Missing the required parameter 'server_id' when calling ServersApi.servers_server_id_actions_reserve_post"
501
586
  end
587
+ # verify the required parameter 'server_reserve' is set
588
+ if @api_client.config.client_side_validation && server_reserve.nil?
589
+ fail ArgumentError, "Missing the required parameter 'server_reserve' when calling ServersApi.servers_server_id_actions_reserve_post"
590
+ end
502
591
  # resource path
503
592
  local_var_path = '/servers/{serverId}/actions/reserve'.sub('{' + 'serverId' + '}', CGI.escape(server_id.to_s))
504
593
 
@@ -519,7 +608,7 @@ module BmcApi
519
608
  form_params = opts[:form_params] || {}
520
609
 
521
610
  # http body (model)
522
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'server_reserve'])
611
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(server_reserve)
523
612
 
524
613
  # return_type
525
614
  return_type = opts[:debug_return_type] || 'Server'
@@ -547,21 +636,21 @@ module BmcApi
547
636
  # Reset server.
548
637
  # Deprecated: Reset specific server. Reset only supports network configurations of type 'private network' or 'IP blocks'. As an alternative, the suggested action is to deprovision the server and provision a new one with the same configuration.
549
638
  # @param server_id [String] The server&#39;s ID.
639
+ # @param server_reset [ServerReset]
550
640
  # @param [Hash] opts the optional parameters
551
- # @option opts [ServerReset] :server_reset
552
641
  # @return [ResetResult]
553
- def servers_server_id_actions_reset_post(server_id, opts = {})
554
- data, _status_code, _headers = servers_server_id_actions_reset_post_with_http_info(server_id, opts)
642
+ def servers_server_id_actions_reset_post(server_id, server_reset, opts = {})
643
+ data, _status_code, _headers = servers_server_id_actions_reset_post_with_http_info(server_id, server_reset, opts)
555
644
  data
556
645
  end
557
646
 
558
647
  # Reset server.
559
648
  # Deprecated: Reset specific server. Reset only supports network configurations of type &#39;private network&#39; or &#39;IP blocks&#39;. As an alternative, the suggested action is to deprovision the server and provision a new one with the same configuration.
560
649
  # @param server_id [String] The server&#39;s ID.
650
+ # @param server_reset [ServerReset]
561
651
  # @param [Hash] opts the optional parameters
562
- # @option opts [ServerReset] :server_reset
563
652
  # @return [Array<(ResetResult, Integer, Hash)>] ResetResult data, response status code and response headers
564
- def servers_server_id_actions_reset_post_with_http_info(server_id, opts = {})
653
+ def servers_server_id_actions_reset_post_with_http_info(server_id, server_reset, opts = {})
565
654
  if @api_client.config.debugging
566
655
  @api_client.config.logger.debug 'Calling API: ServersApi.servers_server_id_actions_reset_post ...'
567
656
  end
@@ -569,6 +658,10 @@ module BmcApi
569
658
  if @api_client.config.client_side_validation && server_id.nil?
570
659
  fail ArgumentError, "Missing the required parameter 'server_id' when calling ServersApi.servers_server_id_actions_reset_post"
571
660
  end
661
+ # verify the required parameter 'server_reset' is set
662
+ if @api_client.config.client_side_validation && server_reset.nil?
663
+ fail ArgumentError, "Missing the required parameter 'server_reset' when calling ServersApi.servers_server_id_actions_reset_post"
664
+ end
572
665
  # resource path
573
666
  local_var_path = '/servers/{serverId}/actions/reset'.sub('{' + 'serverId' + '}', CGI.escape(server_id.to_s))
574
667
 
@@ -589,7 +682,7 @@ module BmcApi
589
682
  form_params = opts[:form_params] || {}
590
683
 
591
684
  # http body (model)
592
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'server_reset'])
685
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(server_reset)
593
686
 
594
687
  # return_type
595
688
  return_type = opts[:debug_return_type] || 'ResetResult'
@@ -807,11 +900,11 @@ module BmcApi
807
900
  # Removes the IP block from the server. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. <b>This is an advanced network action that can make your server completely unavailable over any network. Make sure this server is reachable over remote console for guaranteed access in case of misconfiguration.</b>
808
901
  # @param server_id [String] The server&#39;s ID.
809
902
  # @param ip_block_id [String] The IP Block identifier.
903
+ # @param relinquish_ip_block [RelinquishIpBlock]
810
904
  # @param [Hash] opts the optional parameters
811
- # @option opts [RelinquishIpBlock] :relinquish_ip_block
812
905
  # @return [String]
813
- def servers_server_id_ip_blocks_ip_block_id_delete(server_id, ip_block_id, opts = {})
814
- data, _status_code, _headers = servers_server_id_ip_blocks_ip_block_id_delete_with_http_info(server_id, ip_block_id, opts)
906
+ def servers_server_id_ip_blocks_ip_block_id_delete(server_id, ip_block_id, relinquish_ip_block, opts = {})
907
+ data, _status_code, _headers = servers_server_id_ip_blocks_ip_block_id_delete_with_http_info(server_id, ip_block_id, relinquish_ip_block, opts)
815
908
  data
816
909
  end
817
910
 
@@ -819,10 +912,10 @@ module BmcApi
819
912
  # Removes the IP block from the server. &lt;b&gt;No actual configuration is performed on the operating system.&lt;/b&gt; BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. &lt;b&gt;This is an advanced network action that can make your server completely unavailable over any network. Make sure this server is reachable over remote console for guaranteed access in case of misconfiguration.&lt;/b&gt;
820
913
  # @param server_id [String] The server&#39;s ID.
821
914
  # @param ip_block_id [String] The IP Block identifier.
915
+ # @param relinquish_ip_block [RelinquishIpBlock]
822
916
  # @param [Hash] opts the optional parameters
823
- # @option opts [RelinquishIpBlock] :relinquish_ip_block
824
917
  # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
825
- def servers_server_id_ip_blocks_ip_block_id_delete_with_http_info(server_id, ip_block_id, opts = {})
918
+ def servers_server_id_ip_blocks_ip_block_id_delete_with_http_info(server_id, ip_block_id, relinquish_ip_block, opts = {})
826
919
  if @api_client.config.debugging
827
920
  @api_client.config.logger.debug 'Calling API: ServersApi.servers_server_id_ip_blocks_ip_block_id_delete ...'
828
921
  end
@@ -834,6 +927,10 @@ module BmcApi
834
927
  if @api_client.config.client_side_validation && ip_block_id.nil?
835
928
  fail ArgumentError, "Missing the required parameter 'ip_block_id' when calling ServersApi.servers_server_id_ip_blocks_ip_block_id_delete"
836
929
  end
930
+ # verify the required parameter 'relinquish_ip_block' is set
931
+ if @api_client.config.client_side_validation && relinquish_ip_block.nil?
932
+ fail ArgumentError, "Missing the required parameter 'relinquish_ip_block' when calling ServersApi.servers_server_id_ip_blocks_ip_block_id_delete"
933
+ end
837
934
  # resource path
838
935
  local_var_path = '/servers/{serverId}/network-configuration/ip-block-configurations/ip-blocks/{ipBlockId}'.sub('{' + 'serverId' + '}', CGI.escape(server_id.to_s)).sub('{' + 'ipBlockId' + '}', CGI.escape(ip_block_id.to_s))
839
936
 
@@ -854,7 +951,7 @@ module BmcApi
854
951
  form_params = opts[:form_params] || {}
855
952
 
856
953
  # http body (model)
857
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'relinquish_ip_block'])
954
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(relinquish_ip_block)
858
955
 
859
956
  # return_type
860
957
  return_type = opts[:debug_return_type] || 'String'
@@ -882,21 +979,21 @@ module BmcApi
882
979
  # Assign IP Block to Server.
883
980
  # Adds an IP block to this server. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/configure-server-with-public-ip-block#ftoc-heading-2' target='_blank'>here</a>.
884
981
  # @param server_id [String] The server&#39;s ID.
982
+ # @param server_ip_block [ServerIpBlock]
885
983
  # @param [Hash] opts the optional parameters
886
- # @option opts [ServerIpBlock] :server_ip_block
887
984
  # @return [ServerIpBlock]
888
- def servers_server_id_ip_blocks_post(server_id, opts = {})
889
- data, _status_code, _headers = servers_server_id_ip_blocks_post_with_http_info(server_id, opts)
985
+ def servers_server_id_ip_blocks_post(server_id, server_ip_block, opts = {})
986
+ data, _status_code, _headers = servers_server_id_ip_blocks_post_with_http_info(server_id, server_ip_block, opts)
890
987
  data
891
988
  end
892
989
 
893
990
  # Assign IP Block to Server.
894
991
  # Adds an IP block to this server. &lt;b&gt;No actual configuration is performed on the operating system.&lt;/b&gt; BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. Knowledge base article to help you can be found &lt;a href&#x3D;&#39;https://phoenixnap.com/kb/configure-server-with-public-ip-block#ftoc-heading-2&#39; target&#x3D;&#39;_blank&#39;&gt;here&lt;/a&gt;.
895
992
  # @param server_id [String] The server&#39;s ID.
993
+ # @param server_ip_block [ServerIpBlock]
896
994
  # @param [Hash] opts the optional parameters
897
- # @option opts [ServerIpBlock] :server_ip_block
898
995
  # @return [Array<(ServerIpBlock, Integer, Hash)>] ServerIpBlock data, response status code and response headers
899
- def servers_server_id_ip_blocks_post_with_http_info(server_id, opts = {})
996
+ def servers_server_id_ip_blocks_post_with_http_info(server_id, server_ip_block, opts = {})
900
997
  if @api_client.config.debugging
901
998
  @api_client.config.logger.debug 'Calling API: ServersApi.servers_server_id_ip_blocks_post ...'
902
999
  end
@@ -904,6 +1001,10 @@ module BmcApi
904
1001
  if @api_client.config.client_side_validation && server_id.nil?
905
1002
  fail ArgumentError, "Missing the required parameter 'server_id' when calling ServersApi.servers_server_id_ip_blocks_post"
906
1003
  end
1004
+ # verify the required parameter 'server_ip_block' is set
1005
+ if @api_client.config.client_side_validation && server_ip_block.nil?
1006
+ fail ArgumentError, "Missing the required parameter 'server_ip_block' when calling ServersApi.servers_server_id_ip_blocks_post"
1007
+ end
907
1008
  # resource path
908
1009
  local_var_path = '/servers/{serverId}/network-configuration/ip-block-configurations/ip-blocks'.sub('{' + 'serverId' + '}', CGI.escape(server_id.to_s))
909
1010
 
@@ -924,7 +1025,7 @@ module BmcApi
924
1025
  form_params = opts[:form_params] || {}
925
1026
 
926
1027
  # http body (model)
927
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'server_ip_block'])
1028
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(server_ip_block)
928
1029
 
929
1030
  # return_type
930
1031
  return_type = opts[:debug_return_type] || 'ServerIpBlock'
@@ -952,21 +1053,21 @@ module BmcApi
952
1053
  # Patch a Server.
953
1054
  # Any changes to the hostname or description using the BMC API will reflect solely in the BMC API and portal. The changes are intended to keep the BMC data up to date with your server. We do not have access to your server's settings. Local changes to the server's hostname will not be reflected in the API or portal.
954
1055
  # @param server_id [String] The server&#39;s ID.
1056
+ # @param server_patch [ServerPatch]
955
1057
  # @param [Hash] opts the optional parameters
956
- # @option opts [ServerPatch] :server_patch
957
1058
  # @return [Server]
958
- def servers_server_id_patch(server_id, opts = {})
959
- data, _status_code, _headers = servers_server_id_patch_with_http_info(server_id, opts)
1059
+ def servers_server_id_patch(server_id, server_patch, opts = {})
1060
+ data, _status_code, _headers = servers_server_id_patch_with_http_info(server_id, server_patch, opts)
960
1061
  data
961
1062
  end
962
1063
 
963
1064
  # Patch a Server.
964
1065
  # Any changes to the hostname or description using the BMC API will reflect solely in the BMC API and portal. The changes are intended to keep the BMC data up to date with your server. We do not have access to your server&#39;s settings. Local changes to the server&#39;s hostname will not be reflected in the API or portal.
965
1066
  # @param server_id [String] The server&#39;s ID.
1067
+ # @param server_patch [ServerPatch]
966
1068
  # @param [Hash] opts the optional parameters
967
- # @option opts [ServerPatch] :server_patch
968
1069
  # @return [Array<(Server, Integer, Hash)>] Server data, response status code and response headers
969
- def servers_server_id_patch_with_http_info(server_id, opts = {})
1070
+ def servers_server_id_patch_with_http_info(server_id, server_patch, opts = {})
970
1071
  if @api_client.config.debugging
971
1072
  @api_client.config.logger.debug 'Calling API: ServersApi.servers_server_id_patch ...'
972
1073
  end
@@ -974,6 +1075,10 @@ module BmcApi
974
1075
  if @api_client.config.client_side_validation && server_id.nil?
975
1076
  fail ArgumentError, "Missing the required parameter 'server_id' when calling ServersApi.servers_server_id_patch"
976
1077
  end
1078
+ # verify the required parameter 'server_patch' is set
1079
+ if @api_client.config.client_side_validation && server_patch.nil?
1080
+ fail ArgumentError, "Missing the required parameter 'server_patch' when calling ServersApi.servers_server_id_patch"
1081
+ end
977
1082
  # resource path
978
1083
  local_var_path = '/servers/{serverId}'.sub('{' + 'serverId' + '}', CGI.escape(server_id.to_s))
979
1084
 
@@ -994,7 +1099,7 @@ module BmcApi
994
1099
  form_params = opts[:form_params] || {}
995
1100
 
996
1101
  # http body (model)
997
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'server_patch'])
1102
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(server_patch)
998
1103
 
999
1104
  # return_type
1000
1105
  return_type = opts[:debug_return_type] || 'Server'
@@ -1023,12 +1128,12 @@ module BmcApi
1023
1128
  # IP address changes intended to keep the BMC data up to date with server's operating system. We do not have access to the server's operating system and therefore manual configuration is required to apply the changes on the host. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#ftoc-heading-6' target='_blank'>here</a>
1024
1129
  # @param server_id [String] The server&#39;s ID.
1025
1130
  # @param private_network_id [String] The private network identifier.
1131
+ # @param server_network_update [ServerNetworkUpdate]
1026
1132
  # @param [Hash] opts the optional parameters
1027
1133
  # @option opts [Boolean] :force Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups. (default to false)
1028
- # @option opts [ServerNetworkUpdate] :server_network_update
1029
1134
  # @return [ServerPrivateNetwork]
1030
- def servers_server_id_private_networks_patch(server_id, private_network_id, opts = {})
1031
- data, _status_code, _headers = servers_server_id_private_networks_patch_with_http_info(server_id, private_network_id, opts)
1135
+ def servers_server_id_private_networks_patch(server_id, private_network_id, server_network_update, opts = {})
1136
+ data, _status_code, _headers = servers_server_id_private_networks_patch_with_http_info(server_id, private_network_id, server_network_update, opts)
1032
1137
  data
1033
1138
  end
1034
1139
 
@@ -1036,11 +1141,11 @@ module BmcApi
1036
1141
  # IP address changes intended to keep the BMC data up to date with server&#39;s operating system. We do not have access to the server&#39;s operating system and therefore manual configuration is required to apply the changes on the host. Knowledge base article to help you can be found &lt;a href&#x3D;&#39;https://phoenixnap.com/kb/bmc-server-management-via-api#ftoc-heading-6&#39; target&#x3D;&#39;_blank&#39;&gt;here&lt;/a&gt;
1037
1142
  # @param server_id [String] The server&#39;s ID.
1038
1143
  # @param private_network_id [String] The private network identifier.
1144
+ # @param server_network_update [ServerNetworkUpdate]
1039
1145
  # @param [Hash] opts the optional parameters
1040
1146
  # @option opts [Boolean] :force Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups. (default to false)
1041
- # @option opts [ServerNetworkUpdate] :server_network_update
1042
1147
  # @return [Array<(ServerPrivateNetwork, Integer, Hash)>] ServerPrivateNetwork data, response status code and response headers
1043
- def servers_server_id_private_networks_patch_with_http_info(server_id, private_network_id, opts = {})
1148
+ def servers_server_id_private_networks_patch_with_http_info(server_id, private_network_id, server_network_update, opts = {})
1044
1149
  if @api_client.config.debugging
1045
1150
  @api_client.config.logger.debug 'Calling API: ServersApi.servers_server_id_private_networks_patch ...'
1046
1151
  end
@@ -1052,6 +1157,10 @@ module BmcApi
1052
1157
  if @api_client.config.client_side_validation && private_network_id.nil?
1053
1158
  fail ArgumentError, "Missing the required parameter 'private_network_id' when calling ServersApi.servers_server_id_private_networks_patch"
1054
1159
  end
1160
+ # verify the required parameter 'server_network_update' is set
1161
+ if @api_client.config.client_side_validation && server_network_update.nil?
1162
+ fail ArgumentError, "Missing the required parameter 'server_network_update' when calling ServersApi.servers_server_id_private_networks_patch"
1163
+ end
1055
1164
  # resource path
1056
1165
  local_var_path = '/servers/{serverId}/network-configuration/private-network-configuration/private-networks/{privateNetworkId}'.sub('{' + 'serverId' + '}', CGI.escape(server_id.to_s)).sub('{' + 'privateNetworkId' + '}', CGI.escape(private_network_id.to_s))
1057
1166
 
@@ -1073,7 +1182,7 @@ module BmcApi
1073
1182
  form_params = opts[:form_params] || {}
1074
1183
 
1075
1184
  # http body (model)
1076
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'server_network_update'])
1185
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(server_network_update)
1077
1186
 
1078
1187
  # return_type
1079
1188
  return_type = opts[:debug_return_type] || 'ServerPrivateNetwork'
@@ -1101,23 +1210,23 @@ module BmcApi
1101
1210
  # Adds the server to a private network.
1102
1211
  # Adds the server to a private network. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/configure-bmc-server-after-adding-to-network#ftoc-heading-3' target='_blank'>here</a>.
1103
1212
  # @param server_id [String] The server&#39;s ID.
1213
+ # @param server_private_network [ServerPrivateNetwork]
1104
1214
  # @param [Hash] opts the optional parameters
1105
1215
  # @option opts [Boolean] :force Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups. (default to false)
1106
- # @option opts [ServerPrivateNetwork] :server_private_network
1107
1216
  # @return [ServerPrivateNetwork]
1108
- def servers_server_id_private_networks_post(server_id, opts = {})
1109
- data, _status_code, _headers = servers_server_id_private_networks_post_with_http_info(server_id, opts)
1217
+ def servers_server_id_private_networks_post(server_id, server_private_network, opts = {})
1218
+ data, _status_code, _headers = servers_server_id_private_networks_post_with_http_info(server_id, server_private_network, opts)
1110
1219
  data
1111
1220
  end
1112
1221
 
1113
1222
  # Adds the server to a private network.
1114
1223
  # Adds the server to a private network. &lt;b&gt;No actual configuration is performed on the operating system.&lt;/b&gt; BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. Knowledge base article to help you can be found &lt;a href&#x3D;&#39;https://phoenixnap.com/kb/configure-bmc-server-after-adding-to-network#ftoc-heading-3&#39; target&#x3D;&#39;_blank&#39;&gt;here&lt;/a&gt;.
1115
1224
  # @param server_id [String] The server&#39;s ID.
1225
+ # @param server_private_network [ServerPrivateNetwork]
1116
1226
  # @param [Hash] opts the optional parameters
1117
1227
  # @option opts [Boolean] :force Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups. (default to false)
1118
- # @option opts [ServerPrivateNetwork] :server_private_network
1119
1228
  # @return [Array<(ServerPrivateNetwork, Integer, Hash)>] ServerPrivateNetwork data, response status code and response headers
1120
- def servers_server_id_private_networks_post_with_http_info(server_id, opts = {})
1229
+ def servers_server_id_private_networks_post_with_http_info(server_id, server_private_network, opts = {})
1121
1230
  if @api_client.config.debugging
1122
1231
  @api_client.config.logger.debug 'Calling API: ServersApi.servers_server_id_private_networks_post ...'
1123
1232
  end
@@ -1125,6 +1234,10 @@ module BmcApi
1125
1234
  if @api_client.config.client_side_validation && server_id.nil?
1126
1235
  fail ArgumentError, "Missing the required parameter 'server_id' when calling ServersApi.servers_server_id_private_networks_post"
1127
1236
  end
1237
+ # verify the required parameter 'server_private_network' is set
1238
+ if @api_client.config.client_side_validation && server_private_network.nil?
1239
+ fail ArgumentError, "Missing the required parameter 'server_private_network' when calling ServersApi.servers_server_id_private_networks_post"
1240
+ end
1128
1241
  # resource path
1129
1242
  local_var_path = '/servers/{serverId}/network-configuration/private-network-configuration/private-networks'.sub('{' + 'serverId' + '}', CGI.escape(server_id.to_s))
1130
1243
 
@@ -1146,7 +1259,7 @@ module BmcApi
1146
1259
  form_params = opts[:form_params] || {}
1147
1260
 
1148
1261
  # http body (model)
1149
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'server_private_network'])
1262
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(server_private_network)
1150
1263
 
1151
1264
  # return_type
1152
1265
  return_type = opts[:debug_return_type] || 'ServerPrivateNetwork'
@@ -1244,12 +1357,12 @@ module BmcApi
1244
1357
  # IP address changes intended to keep the BMC data up to date with server's operating system. We do not have access to the server's operating system and therefore manual configuration is required to apply the changes on the host. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/bmc-server-management-via-api#ftoc-heading-6' target='_blank'>here</a>
1245
1358
  # @param server_id [String] The server&#39;s ID.
1246
1359
  # @param public_network_id [String] The Public Network identifier.
1360
+ # @param server_network_update [ServerNetworkUpdate]
1247
1361
  # @param [Hash] opts the optional parameters
1248
1362
  # @option opts [Boolean] :force Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups. (default to false)
1249
- # @option opts [ServerNetworkUpdate] :server_network_update
1250
1363
  # @return [ServerPublicNetwork]
1251
- def servers_server_id_public_networks_patch(server_id, public_network_id, opts = {})
1252
- data, _status_code, _headers = servers_server_id_public_networks_patch_with_http_info(server_id, public_network_id, opts)
1364
+ def servers_server_id_public_networks_patch(server_id, public_network_id, server_network_update, opts = {})
1365
+ data, _status_code, _headers = servers_server_id_public_networks_patch_with_http_info(server_id, public_network_id, server_network_update, opts)
1253
1366
  data
1254
1367
  end
1255
1368
 
@@ -1257,11 +1370,11 @@ module BmcApi
1257
1370
  # IP address changes intended to keep the BMC data up to date with server&#39;s operating system. We do not have access to the server&#39;s operating system and therefore manual configuration is required to apply the changes on the host. Knowledge base article to help you can be found &lt;a href&#x3D;&#39;https://phoenixnap.com/kb/bmc-server-management-via-api#ftoc-heading-6&#39; target&#x3D;&#39;_blank&#39;&gt;here&lt;/a&gt;
1258
1371
  # @param server_id [String] The server&#39;s ID.
1259
1372
  # @param public_network_id [String] The Public Network identifier.
1373
+ # @param server_network_update [ServerNetworkUpdate]
1260
1374
  # @param [Hash] opts the optional parameters
1261
1375
  # @option opts [Boolean] :force Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups. (default to false)
1262
- # @option opts [ServerNetworkUpdate] :server_network_update
1263
1376
  # @return [Array<(ServerPublicNetwork, Integer, Hash)>] ServerPublicNetwork data, response status code and response headers
1264
- def servers_server_id_public_networks_patch_with_http_info(server_id, public_network_id, opts = {})
1377
+ def servers_server_id_public_networks_patch_with_http_info(server_id, public_network_id, server_network_update, opts = {})
1265
1378
  if @api_client.config.debugging
1266
1379
  @api_client.config.logger.debug 'Calling API: ServersApi.servers_server_id_public_networks_patch ...'
1267
1380
  end
@@ -1273,6 +1386,10 @@ module BmcApi
1273
1386
  if @api_client.config.client_side_validation && public_network_id.nil?
1274
1387
  fail ArgumentError, "Missing the required parameter 'public_network_id' when calling ServersApi.servers_server_id_public_networks_patch"
1275
1388
  end
1389
+ # verify the required parameter 'server_network_update' is set
1390
+ if @api_client.config.client_side_validation && server_network_update.nil?
1391
+ fail ArgumentError, "Missing the required parameter 'server_network_update' when calling ServersApi.servers_server_id_public_networks_patch"
1392
+ end
1276
1393
  # resource path
1277
1394
  local_var_path = '/servers/{serverId}/network-configuration/public-network-configuration/public-networks/{publicNetworkId}'.sub('{' + 'serverId' + '}', CGI.escape(server_id.to_s)).sub('{' + 'publicNetworkId' + '}', CGI.escape(public_network_id.to_s))
1278
1395
 
@@ -1294,7 +1411,7 @@ module BmcApi
1294
1411
  form_params = opts[:form_params] || {}
1295
1412
 
1296
1413
  # http body (model)
1297
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'server_network_update'])
1414
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(server_network_update)
1298
1415
 
1299
1416
  # return_type
1300
1417
  return_type = opts[:debug_return_type] || 'ServerPublicNetwork'
@@ -1322,23 +1439,23 @@ module BmcApi
1322
1439
  # Adds the server to a Public Network.
1323
1440
  # Adds the server to a Public Network. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/configure-bmc-server-after-adding-to-network#ftoc-heading-3' target='_blank'>here</a>.
1324
1441
  # @param server_id [String] The server&#39;s ID.
1442
+ # @param server_public_network [ServerPublicNetwork]
1325
1443
  # @param [Hash] opts the optional parameters
1326
1444
  # @option opts [Boolean] :force Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups. (default to false)
1327
- # @option opts [ServerPublicNetwork] :server_public_network
1328
1445
  # @return [ServerPublicNetwork]
1329
- def servers_server_id_public_networks_post(server_id, opts = {})
1330
- data, _status_code, _headers = servers_server_id_public_networks_post_with_http_info(server_id, opts)
1446
+ def servers_server_id_public_networks_post(server_id, server_public_network, opts = {})
1447
+ data, _status_code, _headers = servers_server_id_public_networks_post_with_http_info(server_id, server_public_network, opts)
1331
1448
  data
1332
1449
  end
1333
1450
 
1334
1451
  # Adds the server to a Public Network.
1335
1452
  # Adds the server to a Public Network. &lt;b&gt;No actual configuration is performed on the operating system.&lt;/b&gt; BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. Knowledge base article to help you can be found &lt;a href&#x3D;&#39;https://phoenixnap.com/kb/configure-bmc-server-after-adding-to-network#ftoc-heading-3&#39; target&#x3D;&#39;_blank&#39;&gt;here&lt;/a&gt;.
1336
1453
  # @param server_id [String] The server&#39;s ID.
1454
+ # @param server_public_network [ServerPublicNetwork]
1337
1455
  # @param [Hash] opts the optional parameters
1338
1456
  # @option opts [Boolean] :force Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups. (default to false)
1339
- # @option opts [ServerPublicNetwork] :server_public_network
1340
1457
  # @return [Array<(ServerPublicNetwork, Integer, Hash)>] ServerPublicNetwork data, response status code and response headers
1341
- def servers_server_id_public_networks_post_with_http_info(server_id, opts = {})
1458
+ def servers_server_id_public_networks_post_with_http_info(server_id, server_public_network, opts = {})
1342
1459
  if @api_client.config.debugging
1343
1460
  @api_client.config.logger.debug 'Calling API: ServersApi.servers_server_id_public_networks_post ...'
1344
1461
  end
@@ -1346,6 +1463,10 @@ module BmcApi
1346
1463
  if @api_client.config.client_side_validation && server_id.nil?
1347
1464
  fail ArgumentError, "Missing the required parameter 'server_id' when calling ServersApi.servers_server_id_public_networks_post"
1348
1465
  end
1466
+ # verify the required parameter 'server_public_network' is set
1467
+ if @api_client.config.client_side_validation && server_public_network.nil?
1468
+ fail ArgumentError, "Missing the required parameter 'server_public_network' when calling ServersApi.servers_server_id_public_networks_post"
1469
+ end
1349
1470
  # resource path
1350
1471
  local_var_path = '/servers/{serverId}/network-configuration/public-network-configuration/public-networks'.sub('{' + 'serverId' + '}', CGI.escape(server_id.to_s))
1351
1472
 
@@ -1367,7 +1488,7 @@ module BmcApi
1367
1488
  form_params = opts[:form_params] || {}
1368
1489
 
1369
1490
  # http body (model)
1370
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'server_public_network'])
1491
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(server_public_network)
1371
1492
 
1372
1493
  # return_type
1373
1494
  return_type = opts[:debug_return_type] || 'ServerPublicNetwork'
@@ -1395,21 +1516,21 @@ module BmcApi
1395
1516
  # Overwrite tags assigned for Server.
1396
1517
  # Overwrites tags assigned for Server and unassigns any tags not part of the request.
1397
1518
  # @param server_id [String] The server&#39;s ID.
1519
+ # @param tag_assignment_request [Array<TagAssignmentRequest>]
1398
1520
  # @param [Hash] opts the optional parameters
1399
- # @option opts [Array<TagAssignmentRequest>] :tag_assignment_request
1400
1521
  # @return [Server]
1401
- def servers_server_id_tags_put(server_id, opts = {})
1402
- data, _status_code, _headers = servers_server_id_tags_put_with_http_info(server_id, opts)
1522
+ def servers_server_id_tags_put(server_id, tag_assignment_request, opts = {})
1523
+ data, _status_code, _headers = servers_server_id_tags_put_with_http_info(server_id, tag_assignment_request, opts)
1403
1524
  data
1404
1525
  end
1405
1526
 
1406
1527
  # Overwrite tags assigned for Server.
1407
1528
  # Overwrites tags assigned for Server and unassigns any tags not part of the request.
1408
1529
  # @param server_id [String] The server&#39;s ID.
1530
+ # @param tag_assignment_request [Array<TagAssignmentRequest>]
1409
1531
  # @param [Hash] opts the optional parameters
1410
- # @option opts [Array<TagAssignmentRequest>] :tag_assignment_request
1411
1532
  # @return [Array<(Server, Integer, Hash)>] Server data, response status code and response headers
1412
- def servers_server_id_tags_put_with_http_info(server_id, opts = {})
1533
+ def servers_server_id_tags_put_with_http_info(server_id, tag_assignment_request, opts = {})
1413
1534
  if @api_client.config.debugging
1414
1535
  @api_client.config.logger.debug 'Calling API: ServersApi.servers_server_id_tags_put ...'
1415
1536
  end
@@ -1417,6 +1538,10 @@ module BmcApi
1417
1538
  if @api_client.config.client_side_validation && server_id.nil?
1418
1539
  fail ArgumentError, "Missing the required parameter 'server_id' when calling ServersApi.servers_server_id_tags_put"
1419
1540
  end
1541
+ # verify the required parameter 'tag_assignment_request' is set
1542
+ if @api_client.config.client_side_validation && tag_assignment_request.nil?
1543
+ fail ArgumentError, "Missing the required parameter 'tag_assignment_request' when calling ServersApi.servers_server_id_tags_put"
1544
+ end
1420
1545
  # resource path
1421
1546
  local_var_path = '/servers/{serverId}/tags'.sub('{' + 'serverId' + '}', CGI.escape(server_id.to_s))
1422
1547
 
@@ -1437,7 +1562,7 @@ module BmcApi
1437
1562
  form_params = opts[:form_params] || {}
1438
1563
 
1439
1564
  # http body (model)
1440
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'tag_assignment_request'])
1565
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(tag_assignment_request)
1441
1566
 
1442
1567
  # return_type
1443
1568
  return_type = opts[:debug_return_type] || 'Server'