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
data/docs/ServersApi.md CHANGED
@@ -10,6 +10,7 @@ All URIs are relative to *https://api.phoenixnap.com/bmc/v1*
10
10
  | [**servers_server_id_actions_deprovision_post**](ServersApi.md#servers_server_id_actions_deprovision_post) | **POST** /servers/{serverId}/actions/deprovision | Deprovision a server. |
11
11
  | [**servers_server_id_actions_power_off_post**](ServersApi.md#servers_server_id_actions_power_off_post) | **POST** /servers/{serverId}/actions/power-off | Power off server. |
12
12
  | [**servers_server_id_actions_power_on_post**](ServersApi.md#servers_server_id_actions_power_on_post) | **POST** /servers/{serverId}/actions/power-on | Power on server. |
13
+ | [**servers_server_id_actions_provision_post**](ServersApi.md#servers_server_id_actions_provision_post) | **POST** /servers/{serverId}/actions/provision | Provision server. |
13
14
  | [**servers_server_id_actions_reboot_post**](ServersApi.md#servers_server_id_actions_reboot_post) | **POST** /servers/{serverId}/actions/reboot | Reboot server. |
14
15
  | [**servers_server_id_actions_reserve_post**](ServersApi.md#servers_server_id_actions_reserve_post) | **POST** /servers/{serverId}/actions/reserve | Reserve server. |
15
16
  | [**servers_server_id_actions_reset_post**](ServersApi.md#servers_server_id_actions_reset_post) | **POST** /servers/{serverId}/actions/reset | Reset server. |
@@ -47,7 +48,7 @@ BmcApi.configure do |config|
47
48
  end
48
49
 
49
50
  api_instance = BmcApi::ServersApi.new
50
- server_id = 'e6afba51-7de8-4080-83ab-0f915570659c' # String | The server's ID.
51
+ server_id = '60473a6115e34466c9f8f083' # String | The server's ID.
51
52
  private_network_id = '603f3b2cfcaf050643b89a4b' # String | The private network identifier.
52
53
 
53
54
  begin
@@ -171,11 +172,11 @@ end
171
172
 
172
173
  ## servers_post
173
174
 
174
- > <Server> servers_post(opts)
175
+ > <Server> servers_post(server_create, opts)
175
176
 
176
177
  Create new server.
177
178
 
178
- Create (request) new server for account. Server DNS will be configured to access Google's public DNS at 8.8.8.8 .
179
+ 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.
179
180
 
180
181
  ### Examples
181
182
 
@@ -189,14 +190,14 @@ BmcApi.configure do |config|
189
190
  end
190
191
 
191
192
  api_instance = BmcApi::ServersApi.new
193
+ server_create = BmcApi::ServerCreate.new({hostname: 'my-server-1', os: 'ubuntu/bionic', type: 's1.c1.small', location: 'PHX'}) # ServerCreate |
192
194
  opts = {
193
- force: true, # Boolean | Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.
194
- server_create: BmcApi::ServerCreate.new({hostname: 'my-server-1', os: 'ubuntu/bionic', type: 's1.c1.small', location: 'PHX'}) # ServerCreate |
195
+ force: true # Boolean | Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.
195
196
  }
196
197
 
197
198
  begin
198
199
  # Create new server.
199
- result = api_instance.servers_post(opts)
200
+ result = api_instance.servers_post(server_create, opts)
200
201
  p result
201
202
  rescue BmcApi::ApiError => e
202
203
  puts "Error when calling ServersApi->servers_post: #{e}"
@@ -207,12 +208,12 @@ end
207
208
 
208
209
  This returns an Array which contains the response data, status code and headers.
209
210
 
210
- > <Array(<Server>, Integer, Hash)> servers_post_with_http_info(opts)
211
+ > <Array(<Server>, Integer, Hash)> servers_post_with_http_info(server_create, opts)
211
212
 
212
213
  ```ruby
213
214
  begin
214
215
  # Create new server.
215
- data, status_code, headers = api_instance.servers_post_with_http_info(opts)
216
+ data, status_code, headers = api_instance.servers_post_with_http_info(server_create, opts)
216
217
  p status_code # => 2xx
217
218
  p headers # => { ... }
218
219
  p data # => <Server>
@@ -225,8 +226,8 @@ end
225
226
 
226
227
  | Name | Type | Description | Notes |
227
228
  | ---- | ---- | ----------- | ----- |
229
+ | **server_create** | [**ServerCreate**](ServerCreate.md) | | |
228
230
  | **force** | **Boolean** | Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups. | [optional][default to false] |
229
- | **server_create** | [**ServerCreate**](ServerCreate.md) | | [optional] |
230
231
 
231
232
  ### Return type
232
233
 
@@ -244,7 +245,7 @@ end
244
245
 
245
246
  ## servers_server_id_actions_deprovision_post
246
247
 
247
- > String servers_server_id_actions_deprovision_post(server_id, opts)
248
+ > String servers_server_id_actions_deprovision_post(server_id, relinquish_ip_block)
248
249
 
249
250
  Deprovision a server.
250
251
 
@@ -262,14 +263,12 @@ BmcApi.configure do |config|
262
263
  end
263
264
 
264
265
  api_instance = BmcApi::ServersApi.new
265
- server_id = 'e6afba51-7de8-4080-83ab-0f915570659c' # String | The server's ID.
266
- opts = {
267
- relinquish_ip_block: BmcApi::RelinquishIpBlock.new # RelinquishIpBlock |
268
- }
266
+ server_id = '60473a6115e34466c9f8f083' # String | The server's ID.
267
+ relinquish_ip_block = BmcApi::RelinquishIpBlock.new # RelinquishIpBlock |
269
268
 
270
269
  begin
271
270
  # Deprovision a server.
272
- result = api_instance.servers_server_id_actions_deprovision_post(server_id, opts)
271
+ result = api_instance.servers_server_id_actions_deprovision_post(server_id, relinquish_ip_block)
273
272
  p result
274
273
  rescue BmcApi::ApiError => e
275
274
  puts "Error when calling ServersApi->servers_server_id_actions_deprovision_post: #{e}"
@@ -280,12 +279,12 @@ end
280
279
 
281
280
  This returns an Array which contains the response data, status code and headers.
282
281
 
283
- > <Array(String, Integer, Hash)> servers_server_id_actions_deprovision_post_with_http_info(server_id, opts)
282
+ > <Array(String, Integer, Hash)> servers_server_id_actions_deprovision_post_with_http_info(server_id, relinquish_ip_block)
284
283
 
285
284
  ```ruby
286
285
  begin
287
286
  # Deprovision a server.
288
- data, status_code, headers = api_instance.servers_server_id_actions_deprovision_post_with_http_info(server_id, opts)
287
+ data, status_code, headers = api_instance.servers_server_id_actions_deprovision_post_with_http_info(server_id, relinquish_ip_block)
289
288
  p status_code # => 2xx
290
289
  p headers # => { ... }
291
290
  p data # => String
@@ -299,7 +298,7 @@ end
299
298
  | Name | Type | Description | Notes |
300
299
  | ---- | ---- | ----------- | ----- |
301
300
  | **server_id** | **String** | The server&#39;s ID. | |
302
- | **relinquish_ip_block** | [**RelinquishIpBlock**](RelinquishIpBlock.md) | | [optional] |
301
+ | **relinquish_ip_block** | [**RelinquishIpBlock**](RelinquishIpBlock.md) | | |
303
302
 
304
303
  ### Return type
305
304
 
@@ -335,7 +334,7 @@ BmcApi.configure do |config|
335
334
  end
336
335
 
337
336
  api_instance = BmcApi::ServersApi.new
338
- server_id = 'e6afba51-7de8-4080-83ab-0f915570659c' # String | The server's ID.
337
+ server_id = '60473a6115e34466c9f8f083' # String | The server's ID.
339
338
 
340
339
  begin
341
340
  # Power off server.
@@ -404,7 +403,7 @@ BmcApi.configure do |config|
404
403
  end
405
404
 
406
405
  api_instance = BmcApi::ServersApi.new
407
- server_id = 'e6afba51-7de8-4080-83ab-0f915570659c' # String | The server's ID.
406
+ server_id = '60473a6115e34466c9f8f083' # String | The server's ID.
408
407
 
409
408
  begin
410
409
  # Power on server.
@@ -453,6 +452,81 @@ end
453
452
  - **Accept**: application/json
454
453
 
455
454
 
455
+ ## servers_server_id_actions_provision_post
456
+
457
+ > <Server> servers_server_id_actions_provision_post(server_id, server_provision, opts)
458
+
459
+ Provision server.
460
+
461
+ Provision reserved server. Server DNS will be configured to access Google's public DNS at 8.8.8.8.
462
+
463
+ ### Examples
464
+
465
+ ```ruby
466
+ require 'time'
467
+ require 'pnap_bmc_api'
468
+ # setup authorization
469
+ BmcApi.configure do |config|
470
+ # Configure OAuth2 access token for authorization: OAuth2
471
+ config.access_token = 'YOUR ACCESS TOKEN'
472
+ end
473
+
474
+ api_instance = BmcApi::ServersApi.new
475
+ server_id = '60473a6115e34466c9f8f083' # String | The server's ID.
476
+ server_provision = BmcApi::ServerProvision.new({hostname: 'my-server-1', os: 'ubuntu/bionic'}) # ServerProvision |
477
+ opts = {
478
+ force: true # Boolean | Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.
479
+ }
480
+
481
+ begin
482
+ # Provision server.
483
+ result = api_instance.servers_server_id_actions_provision_post(server_id, server_provision, opts)
484
+ p result
485
+ rescue BmcApi::ApiError => e
486
+ puts "Error when calling ServersApi->servers_server_id_actions_provision_post: #{e}"
487
+ end
488
+ ```
489
+
490
+ #### Using the servers_server_id_actions_provision_post_with_http_info variant
491
+
492
+ This returns an Array which contains the response data, status code and headers.
493
+
494
+ > <Array(<Server>, Integer, Hash)> servers_server_id_actions_provision_post_with_http_info(server_id, server_provision, opts)
495
+
496
+ ```ruby
497
+ begin
498
+ # Provision server.
499
+ data, status_code, headers = api_instance.servers_server_id_actions_provision_post_with_http_info(server_id, server_provision, opts)
500
+ p status_code # => 2xx
501
+ p headers # => { ... }
502
+ p data # => <Server>
503
+ rescue BmcApi::ApiError => e
504
+ puts "Error when calling ServersApi->servers_server_id_actions_provision_post_with_http_info: #{e}"
505
+ end
506
+ ```
507
+
508
+ ### Parameters
509
+
510
+ | Name | Type | Description | Notes |
511
+ | ---- | ---- | ----------- | ----- |
512
+ | **server_id** | **String** | The server&#39;s ID. | |
513
+ | **server_provision** | [**ServerProvision**](ServerProvision.md) | | |
514
+ | **force** | **Boolean** | Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups. | [optional][default to false] |
515
+
516
+ ### Return type
517
+
518
+ [**Server**](Server.md)
519
+
520
+ ### Authorization
521
+
522
+ [OAuth2](../README.md#OAuth2)
523
+
524
+ ### HTTP request headers
525
+
526
+ - **Content-Type**: application/json
527
+ - **Accept**: application/json
528
+
529
+
456
530
  ## servers_server_id_actions_reboot_post
457
531
 
458
532
  > <ActionResult> servers_server_id_actions_reboot_post(server_id)
@@ -473,7 +547,7 @@ BmcApi.configure do |config|
473
547
  end
474
548
 
475
549
  api_instance = BmcApi::ServersApi.new
476
- server_id = 'e6afba51-7de8-4080-83ab-0f915570659c' # String | The server's ID.
550
+ server_id = '60473a6115e34466c9f8f083' # String | The server's ID.
477
551
 
478
552
  begin
479
553
  # Reboot server.
@@ -524,7 +598,7 @@ end
524
598
 
525
599
  ## servers_server_id_actions_reserve_post
526
600
 
527
- > <Server> servers_server_id_actions_reserve_post(server_id, opts)
601
+ > <Server> servers_server_id_actions_reserve_post(server_id, server_reserve)
528
602
 
529
603
  Reserve server.
530
604
 
@@ -542,14 +616,12 @@ BmcApi.configure do |config|
542
616
  end
543
617
 
544
618
  api_instance = BmcApi::ServersApi.new
545
- server_id = 'e6afba51-7de8-4080-83ab-0f915570659c' # String | The server's ID.
546
- opts = {
547
- server_reserve: BmcApi::ServerReserve.new({pricing_model: 'ONE_MONTH_RESERVATION'}) # ServerReserve |
548
- }
619
+ server_id = '60473a6115e34466c9f8f083' # String | The server's ID.
620
+ server_reserve = BmcApi::ServerReserve.new({pricing_model: 'ONE_MONTH_RESERVATION'}) # ServerReserve |
549
621
 
550
622
  begin
551
623
  # Reserve server.
552
- result = api_instance.servers_server_id_actions_reserve_post(server_id, opts)
624
+ result = api_instance.servers_server_id_actions_reserve_post(server_id, server_reserve)
553
625
  p result
554
626
  rescue BmcApi::ApiError => e
555
627
  puts "Error when calling ServersApi->servers_server_id_actions_reserve_post: #{e}"
@@ -560,12 +632,12 @@ end
560
632
 
561
633
  This returns an Array which contains the response data, status code and headers.
562
634
 
563
- > <Array(<Server>, Integer, Hash)> servers_server_id_actions_reserve_post_with_http_info(server_id, opts)
635
+ > <Array(<Server>, Integer, Hash)> servers_server_id_actions_reserve_post_with_http_info(server_id, server_reserve)
564
636
 
565
637
  ```ruby
566
638
  begin
567
639
  # Reserve server.
568
- data, status_code, headers = api_instance.servers_server_id_actions_reserve_post_with_http_info(server_id, opts)
640
+ data, status_code, headers = api_instance.servers_server_id_actions_reserve_post_with_http_info(server_id, server_reserve)
569
641
  p status_code # => 2xx
570
642
  p headers # => { ... }
571
643
  p data # => <Server>
@@ -579,7 +651,7 @@ end
579
651
  | Name | Type | Description | Notes |
580
652
  | ---- | ---- | ----------- | ----- |
581
653
  | **server_id** | **String** | The server&#39;s ID. | |
582
- | **server_reserve** | [**ServerReserve**](ServerReserve.md) | | [optional] |
654
+ | **server_reserve** | [**ServerReserve**](ServerReserve.md) | | |
583
655
 
584
656
  ### Return type
585
657
 
@@ -597,7 +669,7 @@ end
597
669
 
598
670
  ## servers_server_id_actions_reset_post
599
671
 
600
- > <ResetResult> servers_server_id_actions_reset_post(server_id, opts)
672
+ > <ResetResult> servers_server_id_actions_reset_post(server_id, server_reset)
601
673
 
602
674
  Reset server.
603
675
 
@@ -615,14 +687,12 @@ BmcApi.configure do |config|
615
687
  end
616
688
 
617
689
  api_instance = BmcApi::ServersApi.new
618
- server_id = 'e6afba51-7de8-4080-83ab-0f915570659c' # String | The server's ID.
619
- opts = {
620
- server_reset: BmcApi::ServerReset.new # ServerReset |
621
- }
690
+ server_id = '60473a6115e34466c9f8f083' # String | The server's ID.
691
+ server_reset = BmcApi::ServerReset.new # ServerReset |
622
692
 
623
693
  begin
624
694
  # Reset server.
625
- result = api_instance.servers_server_id_actions_reset_post(server_id, opts)
695
+ result = api_instance.servers_server_id_actions_reset_post(server_id, server_reset)
626
696
  p result
627
697
  rescue BmcApi::ApiError => e
628
698
  puts "Error when calling ServersApi->servers_server_id_actions_reset_post: #{e}"
@@ -633,12 +703,12 @@ end
633
703
 
634
704
  This returns an Array which contains the response data, status code and headers.
635
705
 
636
- > <Array(<ResetResult>, Integer, Hash)> servers_server_id_actions_reset_post_with_http_info(server_id, opts)
706
+ > <Array(<ResetResult>, Integer, Hash)> servers_server_id_actions_reset_post_with_http_info(server_id, server_reset)
637
707
 
638
708
  ```ruby
639
709
  begin
640
710
  # Reset server.
641
- data, status_code, headers = api_instance.servers_server_id_actions_reset_post_with_http_info(server_id, opts)
711
+ data, status_code, headers = api_instance.servers_server_id_actions_reset_post_with_http_info(server_id, server_reset)
642
712
  p status_code # => 2xx
643
713
  p headers # => { ... }
644
714
  p data # => <ResetResult>
@@ -652,7 +722,7 @@ end
652
722
  | Name | Type | Description | Notes |
653
723
  | ---- | ---- | ----------- | ----- |
654
724
  | **server_id** | **String** | The server&#39;s ID. | |
655
- | **server_reset** | [**ServerReset**](ServerReset.md) | | [optional] |
725
+ | **server_reset** | [**ServerReset**](ServerReset.md) | | |
656
726
 
657
727
  ### Return type
658
728
 
@@ -688,7 +758,7 @@ BmcApi.configure do |config|
688
758
  end
689
759
 
690
760
  api_instance = BmcApi::ServersApi.new
691
- server_id = 'e6afba51-7de8-4080-83ab-0f915570659c' # String | The server's ID.
761
+ server_id = '60473a6115e34466c9f8f083' # String | The server's ID.
692
762
 
693
763
  begin
694
764
  # Shutdown server.
@@ -757,7 +827,7 @@ BmcApi.configure do |config|
757
827
  end
758
828
 
759
829
  api_instance = BmcApi::ServersApi.new
760
- server_id = 'e6afba51-7de8-4080-83ab-0f915570659c' # String | The server's ID.
830
+ server_id = '60473a6115e34466c9f8f083' # String | The server's ID.
761
831
 
762
832
  begin
763
833
  # Delete server.
@@ -826,7 +896,7 @@ BmcApi.configure do |config|
826
896
  end
827
897
 
828
898
  api_instance = BmcApi::ServersApi.new
829
- server_id = 'e6afba51-7de8-4080-83ab-0f915570659c' # String | The server's ID.
899
+ server_id = '60473a6115e34466c9f8f083' # String | The server's ID.
830
900
 
831
901
  begin
832
902
  # Get server.
@@ -877,7 +947,7 @@ end
877
947
 
878
948
  ## servers_server_id_ip_blocks_ip_block_id_delete
879
949
 
880
- > String servers_server_id_ip_blocks_ip_block_id_delete(server_id, ip_block_id, opts)
950
+ > String servers_server_id_ip_blocks_ip_block_id_delete(server_id, ip_block_id, relinquish_ip_block)
881
951
 
882
952
  Unassign IP Block from Server.
883
953
 
@@ -895,15 +965,13 @@ BmcApi.configure do |config|
895
965
  end
896
966
 
897
967
  api_instance = BmcApi::ServersApi.new
898
- server_id = 'e6afba51-7de8-4080-83ab-0f915570659c' # String | The server's ID.
968
+ server_id = '60473a6115e34466c9f8f083' # String | The server's ID.
899
969
  ip_block_id = '6047127fed34ecc3ba8402d2' # String | The IP Block identifier.
900
- opts = {
901
- relinquish_ip_block: BmcApi::RelinquishIpBlock.new # RelinquishIpBlock |
902
- }
970
+ relinquish_ip_block = BmcApi::RelinquishIpBlock.new # RelinquishIpBlock |
903
971
 
904
972
  begin
905
973
  # Unassign IP Block from Server.
906
- result = api_instance.servers_server_id_ip_blocks_ip_block_id_delete(server_id, ip_block_id, opts)
974
+ result = api_instance.servers_server_id_ip_blocks_ip_block_id_delete(server_id, ip_block_id, relinquish_ip_block)
907
975
  p result
908
976
  rescue BmcApi::ApiError => e
909
977
  puts "Error when calling ServersApi->servers_server_id_ip_blocks_ip_block_id_delete: #{e}"
@@ -914,12 +982,12 @@ end
914
982
 
915
983
  This returns an Array which contains the response data, status code and headers.
916
984
 
917
- > <Array(String, Integer, Hash)> servers_server_id_ip_blocks_ip_block_id_delete_with_http_info(server_id, ip_block_id, opts)
985
+ > <Array(String, Integer, Hash)> servers_server_id_ip_blocks_ip_block_id_delete_with_http_info(server_id, ip_block_id, relinquish_ip_block)
918
986
 
919
987
  ```ruby
920
988
  begin
921
989
  # Unassign IP Block from Server.
922
- data, status_code, headers = api_instance.servers_server_id_ip_blocks_ip_block_id_delete_with_http_info(server_id, ip_block_id, opts)
990
+ data, status_code, headers = api_instance.servers_server_id_ip_blocks_ip_block_id_delete_with_http_info(server_id, ip_block_id, relinquish_ip_block)
923
991
  p status_code # => 2xx
924
992
  p headers # => { ... }
925
993
  p data # => String
@@ -934,7 +1002,7 @@ end
934
1002
  | ---- | ---- | ----------- | ----- |
935
1003
  | **server_id** | **String** | The server&#39;s ID. | |
936
1004
  | **ip_block_id** | **String** | The IP Block identifier. | |
937
- | **relinquish_ip_block** | [**RelinquishIpBlock**](RelinquishIpBlock.md) | | [optional] |
1005
+ | **relinquish_ip_block** | [**RelinquishIpBlock**](RelinquishIpBlock.md) | | |
938
1006
 
939
1007
  ### Return type
940
1008
 
@@ -952,7 +1020,7 @@ end
952
1020
 
953
1021
  ## servers_server_id_ip_blocks_post
954
1022
 
955
- > <ServerIpBlock> servers_server_id_ip_blocks_post(server_id, opts)
1023
+ > <ServerIpBlock> servers_server_id_ip_blocks_post(server_id, server_ip_block)
956
1024
 
957
1025
  Assign IP Block to Server.
958
1026
 
@@ -970,14 +1038,12 @@ BmcApi.configure do |config|
970
1038
  end
971
1039
 
972
1040
  api_instance = BmcApi::ServersApi.new
973
- server_id = 'e6afba51-7de8-4080-83ab-0f915570659c' # String | The server's ID.
974
- opts = {
975
- server_ip_block: BmcApi::ServerIpBlock.new({id: '60473a6115e34466c9f8f083'}) # ServerIpBlock |
976
- }
1041
+ server_id = '60473a6115e34466c9f8f083' # String | The server's ID.
1042
+ server_ip_block = BmcApi::ServerIpBlock.new({id: '60473a6115e34466c9f8f083'}) # ServerIpBlock |
977
1043
 
978
1044
  begin
979
1045
  # Assign IP Block to Server.
980
- result = api_instance.servers_server_id_ip_blocks_post(server_id, opts)
1046
+ result = api_instance.servers_server_id_ip_blocks_post(server_id, server_ip_block)
981
1047
  p result
982
1048
  rescue BmcApi::ApiError => e
983
1049
  puts "Error when calling ServersApi->servers_server_id_ip_blocks_post: #{e}"
@@ -988,12 +1054,12 @@ end
988
1054
 
989
1055
  This returns an Array which contains the response data, status code and headers.
990
1056
 
991
- > <Array(<ServerIpBlock>, Integer, Hash)> servers_server_id_ip_blocks_post_with_http_info(server_id, opts)
1057
+ > <Array(<ServerIpBlock>, Integer, Hash)> servers_server_id_ip_blocks_post_with_http_info(server_id, server_ip_block)
992
1058
 
993
1059
  ```ruby
994
1060
  begin
995
1061
  # Assign IP Block to Server.
996
- data, status_code, headers = api_instance.servers_server_id_ip_blocks_post_with_http_info(server_id, opts)
1062
+ data, status_code, headers = api_instance.servers_server_id_ip_blocks_post_with_http_info(server_id, server_ip_block)
997
1063
  p status_code # => 2xx
998
1064
  p headers # => { ... }
999
1065
  p data # => <ServerIpBlock>
@@ -1007,7 +1073,7 @@ end
1007
1073
  | Name | Type | Description | Notes |
1008
1074
  | ---- | ---- | ----------- | ----- |
1009
1075
  | **server_id** | **String** | The server&#39;s ID. | |
1010
- | **server_ip_block** | [**ServerIpBlock**](ServerIpBlock.md) | | [optional] |
1076
+ | **server_ip_block** | [**ServerIpBlock**](ServerIpBlock.md) | | |
1011
1077
 
1012
1078
  ### Return type
1013
1079
 
@@ -1025,7 +1091,7 @@ end
1025
1091
 
1026
1092
  ## servers_server_id_patch
1027
1093
 
1028
- > <Server> servers_server_id_patch(server_id, opts)
1094
+ > <Server> servers_server_id_patch(server_id, server_patch)
1029
1095
 
1030
1096
  Patch a Server.
1031
1097
 
@@ -1043,14 +1109,12 @@ BmcApi.configure do |config|
1043
1109
  end
1044
1110
 
1045
1111
  api_instance = BmcApi::ServersApi.new
1046
- server_id = 'e6afba51-7de8-4080-83ab-0f915570659c' # String | The server's ID.
1047
- opts = {
1048
- server_patch: BmcApi::ServerPatch.new # ServerPatch |
1049
- }
1112
+ server_id = '60473a6115e34466c9f8f083' # String | The server's ID.
1113
+ server_patch = BmcApi::ServerPatch.new # ServerPatch |
1050
1114
 
1051
1115
  begin
1052
1116
  # Patch a Server.
1053
- result = api_instance.servers_server_id_patch(server_id, opts)
1117
+ result = api_instance.servers_server_id_patch(server_id, server_patch)
1054
1118
  p result
1055
1119
  rescue BmcApi::ApiError => e
1056
1120
  puts "Error when calling ServersApi->servers_server_id_patch: #{e}"
@@ -1061,12 +1125,12 @@ end
1061
1125
 
1062
1126
  This returns an Array which contains the response data, status code and headers.
1063
1127
 
1064
- > <Array(<Server>, Integer, Hash)> servers_server_id_patch_with_http_info(server_id, opts)
1128
+ > <Array(<Server>, Integer, Hash)> servers_server_id_patch_with_http_info(server_id, server_patch)
1065
1129
 
1066
1130
  ```ruby
1067
1131
  begin
1068
1132
  # Patch a Server.
1069
- data, status_code, headers = api_instance.servers_server_id_patch_with_http_info(server_id, opts)
1133
+ data, status_code, headers = api_instance.servers_server_id_patch_with_http_info(server_id, server_patch)
1070
1134
  p status_code # => 2xx
1071
1135
  p headers # => { ... }
1072
1136
  p data # => <Server>
@@ -1080,7 +1144,7 @@ end
1080
1144
  | Name | Type | Description | Notes |
1081
1145
  | ---- | ---- | ----------- | ----- |
1082
1146
  | **server_id** | **String** | The server&#39;s ID. | |
1083
- | **server_patch** | [**ServerPatch**](ServerPatch.md) | | [optional] |
1147
+ | **server_patch** | [**ServerPatch**](ServerPatch.md) | | |
1084
1148
 
1085
1149
  ### Return type
1086
1150
 
@@ -1098,7 +1162,7 @@ end
1098
1162
 
1099
1163
  ## servers_server_id_private_networks_patch
1100
1164
 
1101
- > <ServerPrivateNetwork> servers_server_id_private_networks_patch(server_id, private_network_id, opts)
1165
+ > <ServerPrivateNetwork> servers_server_id_private_networks_patch(server_id, private_network_id, server_network_update, opts)
1102
1166
 
1103
1167
  Updates the server's private network's IP addresses
1104
1168
 
@@ -1116,16 +1180,16 @@ BmcApi.configure do |config|
1116
1180
  end
1117
1181
 
1118
1182
  api_instance = BmcApi::ServersApi.new
1119
- server_id = 'e6afba51-7de8-4080-83ab-0f915570659c' # String | The server's ID.
1183
+ server_id = '60473a6115e34466c9f8f083' # String | The server's ID.
1120
1184
  private_network_id = '603f3b2cfcaf050643b89a4b' # String | The private network identifier.
1185
+ server_network_update = BmcApi::ServerNetworkUpdate.new # ServerNetworkUpdate |
1121
1186
  opts = {
1122
- force: true, # Boolean | Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.
1123
- server_network_update: BmcApi::ServerNetworkUpdate.new # ServerNetworkUpdate |
1187
+ force: true # Boolean | Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.
1124
1188
  }
1125
1189
 
1126
1190
  begin
1127
1191
  # Updates the server's private network's IP addresses
1128
- result = api_instance.servers_server_id_private_networks_patch(server_id, private_network_id, opts)
1192
+ result = api_instance.servers_server_id_private_networks_patch(server_id, private_network_id, server_network_update, opts)
1129
1193
  p result
1130
1194
  rescue BmcApi::ApiError => e
1131
1195
  puts "Error when calling ServersApi->servers_server_id_private_networks_patch: #{e}"
@@ -1136,12 +1200,12 @@ end
1136
1200
 
1137
1201
  This returns an Array which contains the response data, status code and headers.
1138
1202
 
1139
- > <Array(<ServerPrivateNetwork>, Integer, Hash)> servers_server_id_private_networks_patch_with_http_info(server_id, private_network_id, opts)
1203
+ > <Array(<ServerPrivateNetwork>, Integer, Hash)> servers_server_id_private_networks_patch_with_http_info(server_id, private_network_id, server_network_update, opts)
1140
1204
 
1141
1205
  ```ruby
1142
1206
  begin
1143
1207
  # Updates the server's private network's IP addresses
1144
- data, status_code, headers = api_instance.servers_server_id_private_networks_patch_with_http_info(server_id, private_network_id, opts)
1208
+ data, status_code, headers = api_instance.servers_server_id_private_networks_patch_with_http_info(server_id, private_network_id, server_network_update, opts)
1145
1209
  p status_code # => 2xx
1146
1210
  p headers # => { ... }
1147
1211
  p data # => <ServerPrivateNetwork>
@@ -1156,8 +1220,8 @@ end
1156
1220
  | ---- | ---- | ----------- | ----- |
1157
1221
  | **server_id** | **String** | The server&#39;s ID. | |
1158
1222
  | **private_network_id** | **String** | The private network identifier. | |
1223
+ | **server_network_update** | [**ServerNetworkUpdate**](ServerNetworkUpdate.md) | | |
1159
1224
  | **force** | **Boolean** | Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups. | [optional][default to false] |
1160
- | **server_network_update** | [**ServerNetworkUpdate**](ServerNetworkUpdate.md) | | [optional] |
1161
1225
 
1162
1226
  ### Return type
1163
1227
 
@@ -1175,7 +1239,7 @@ end
1175
1239
 
1176
1240
  ## servers_server_id_private_networks_post
1177
1241
 
1178
- > <ServerPrivateNetwork> servers_server_id_private_networks_post(server_id, opts)
1242
+ > <ServerPrivateNetwork> servers_server_id_private_networks_post(server_id, server_private_network, opts)
1179
1243
 
1180
1244
  Adds the server to a private network.
1181
1245
 
@@ -1193,15 +1257,15 @@ BmcApi.configure do |config|
1193
1257
  end
1194
1258
 
1195
1259
  api_instance = BmcApi::ServersApi.new
1196
- server_id = 'e6afba51-7de8-4080-83ab-0f915570659c' # String | The server's ID.
1260
+ server_id = '60473a6115e34466c9f8f083' # String | The server's ID.
1261
+ server_private_network = BmcApi::ServerPrivateNetwork.new({id: '603f3b2cfcaf050643b89a4b'}) # ServerPrivateNetwork |
1197
1262
  opts = {
1198
- force: true, # Boolean | Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.
1199
- server_private_network: BmcApi::ServerPrivateNetwork.new({id: '603f3b2cfcaf050643b89a4b'}) # ServerPrivateNetwork |
1263
+ force: true # Boolean | Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.
1200
1264
  }
1201
1265
 
1202
1266
  begin
1203
1267
  # Adds the server to a private network.
1204
- result = api_instance.servers_server_id_private_networks_post(server_id, opts)
1268
+ result = api_instance.servers_server_id_private_networks_post(server_id, server_private_network, opts)
1205
1269
  p result
1206
1270
  rescue BmcApi::ApiError => e
1207
1271
  puts "Error when calling ServersApi->servers_server_id_private_networks_post: #{e}"
@@ -1212,12 +1276,12 @@ end
1212
1276
 
1213
1277
  This returns an Array which contains the response data, status code and headers.
1214
1278
 
1215
- > <Array(<ServerPrivateNetwork>, Integer, Hash)> servers_server_id_private_networks_post_with_http_info(server_id, opts)
1279
+ > <Array(<ServerPrivateNetwork>, Integer, Hash)> servers_server_id_private_networks_post_with_http_info(server_id, server_private_network, opts)
1216
1280
 
1217
1281
  ```ruby
1218
1282
  begin
1219
1283
  # Adds the server to a private network.
1220
- data, status_code, headers = api_instance.servers_server_id_private_networks_post_with_http_info(server_id, opts)
1284
+ data, status_code, headers = api_instance.servers_server_id_private_networks_post_with_http_info(server_id, server_private_network, opts)
1221
1285
  p status_code # => 2xx
1222
1286
  p headers # => { ... }
1223
1287
  p data # => <ServerPrivateNetwork>
@@ -1231,8 +1295,8 @@ end
1231
1295
  | Name | Type | Description | Notes |
1232
1296
  | ---- | ---- | ----------- | ----- |
1233
1297
  | **server_id** | **String** | The server&#39;s ID. | |
1298
+ | **server_private_network** | [**ServerPrivateNetwork**](ServerPrivateNetwork.md) | | |
1234
1299
  | **force** | **Boolean** | Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups. | [optional][default to false] |
1235
- | **server_private_network** | [**ServerPrivateNetwork**](ServerPrivateNetwork.md) | | [optional] |
1236
1300
 
1237
1301
  ### Return type
1238
1302
 
@@ -1268,7 +1332,7 @@ BmcApi.configure do |config|
1268
1332
  end
1269
1333
 
1270
1334
  api_instance = BmcApi::ServersApi.new
1271
- server_id = 'e6afba51-7de8-4080-83ab-0f915570659c' # String | The server's ID.
1335
+ server_id = '60473a6115e34466c9f8f083' # String | The server's ID.
1272
1336
  public_network_id = '603f3b2cfcaf050643b89a4b' # String | The Public Network identifier.
1273
1337
 
1274
1338
  begin
@@ -1321,7 +1385,7 @@ end
1321
1385
 
1322
1386
  ## servers_server_id_public_networks_patch
1323
1387
 
1324
- > <ServerPublicNetwork> servers_server_id_public_networks_patch(server_id, public_network_id, opts)
1388
+ > <ServerPublicNetwork> servers_server_id_public_networks_patch(server_id, public_network_id, server_network_update, opts)
1325
1389
 
1326
1390
  Updates the server's public network's IP addresses.
1327
1391
 
@@ -1339,16 +1403,16 @@ BmcApi.configure do |config|
1339
1403
  end
1340
1404
 
1341
1405
  api_instance = BmcApi::ServersApi.new
1342
- server_id = 'e6afba51-7de8-4080-83ab-0f915570659c' # String | The server's ID.
1406
+ server_id = '60473a6115e34466c9f8f083' # String | The server's ID.
1343
1407
  public_network_id = '603f3b2cfcaf050643b89a4b' # String | The Public Network identifier.
1408
+ server_network_update = BmcApi::ServerNetworkUpdate.new # ServerNetworkUpdate |
1344
1409
  opts = {
1345
- force: true, # Boolean | Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.
1346
- server_network_update: BmcApi::ServerNetworkUpdate.new # ServerNetworkUpdate |
1410
+ force: true # Boolean | Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.
1347
1411
  }
1348
1412
 
1349
1413
  begin
1350
1414
  # Updates the server's public network's IP addresses.
1351
- result = api_instance.servers_server_id_public_networks_patch(server_id, public_network_id, opts)
1415
+ result = api_instance.servers_server_id_public_networks_patch(server_id, public_network_id, server_network_update, opts)
1352
1416
  p result
1353
1417
  rescue BmcApi::ApiError => e
1354
1418
  puts "Error when calling ServersApi->servers_server_id_public_networks_patch: #{e}"
@@ -1359,12 +1423,12 @@ end
1359
1423
 
1360
1424
  This returns an Array which contains the response data, status code and headers.
1361
1425
 
1362
- > <Array(<ServerPublicNetwork>, Integer, Hash)> servers_server_id_public_networks_patch_with_http_info(server_id, public_network_id, opts)
1426
+ > <Array(<ServerPublicNetwork>, Integer, Hash)> servers_server_id_public_networks_patch_with_http_info(server_id, public_network_id, server_network_update, opts)
1363
1427
 
1364
1428
  ```ruby
1365
1429
  begin
1366
1430
  # Updates the server's public network's IP addresses.
1367
- data, status_code, headers = api_instance.servers_server_id_public_networks_patch_with_http_info(server_id, public_network_id, opts)
1431
+ data, status_code, headers = api_instance.servers_server_id_public_networks_patch_with_http_info(server_id, public_network_id, server_network_update, opts)
1368
1432
  p status_code # => 2xx
1369
1433
  p headers # => { ... }
1370
1434
  p data # => <ServerPublicNetwork>
@@ -1379,8 +1443,8 @@ end
1379
1443
  | ---- | ---- | ----------- | ----- |
1380
1444
  | **server_id** | **String** | The server&#39;s ID. | |
1381
1445
  | **public_network_id** | **String** | The Public Network identifier. | |
1446
+ | **server_network_update** | [**ServerNetworkUpdate**](ServerNetworkUpdate.md) | | |
1382
1447
  | **force** | **Boolean** | Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups. | [optional][default to false] |
1383
- | **server_network_update** | [**ServerNetworkUpdate**](ServerNetworkUpdate.md) | | [optional] |
1384
1448
 
1385
1449
  ### Return type
1386
1450
 
@@ -1398,7 +1462,7 @@ end
1398
1462
 
1399
1463
  ## servers_server_id_public_networks_post
1400
1464
 
1401
- > <ServerPublicNetwork> servers_server_id_public_networks_post(server_id, opts)
1465
+ > <ServerPublicNetwork> servers_server_id_public_networks_post(server_id, server_public_network, opts)
1402
1466
 
1403
1467
  Adds the server to a Public Network.
1404
1468
 
@@ -1416,15 +1480,15 @@ BmcApi.configure do |config|
1416
1480
  end
1417
1481
 
1418
1482
  api_instance = BmcApi::ServersApi.new
1419
- server_id = 'e6afba51-7de8-4080-83ab-0f915570659c' # String | The server's ID.
1483
+ server_id = '60473a6115e34466c9f8f083' # String | The server's ID.
1484
+ server_public_network = BmcApi::ServerPublicNetwork.new({id: '60473c2509268bc77fd06d29'}) # ServerPublicNetwork |
1420
1485
  opts = {
1421
- force: true, # Boolean | Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.
1422
- server_public_network: BmcApi::ServerPublicNetwork.new({id: '60473c2509268bc77fd06d29'}) # ServerPublicNetwork |
1486
+ force: true # Boolean | Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups.
1423
1487
  }
1424
1488
 
1425
1489
  begin
1426
1490
  # Adds the server to a Public Network.
1427
- result = api_instance.servers_server_id_public_networks_post(server_id, opts)
1491
+ result = api_instance.servers_server_id_public_networks_post(server_id, server_public_network, opts)
1428
1492
  p result
1429
1493
  rescue BmcApi::ApiError => e
1430
1494
  puts "Error when calling ServersApi->servers_server_id_public_networks_post: #{e}"
@@ -1435,12 +1499,12 @@ end
1435
1499
 
1436
1500
  This returns an Array which contains the response data, status code and headers.
1437
1501
 
1438
- > <Array(<ServerPublicNetwork>, Integer, Hash)> servers_server_id_public_networks_post_with_http_info(server_id, opts)
1502
+ > <Array(<ServerPublicNetwork>, Integer, Hash)> servers_server_id_public_networks_post_with_http_info(server_id, server_public_network, opts)
1439
1503
 
1440
1504
  ```ruby
1441
1505
  begin
1442
1506
  # Adds the server to a Public Network.
1443
- data, status_code, headers = api_instance.servers_server_id_public_networks_post_with_http_info(server_id, opts)
1507
+ data, status_code, headers = api_instance.servers_server_id_public_networks_post_with_http_info(server_id, server_public_network, opts)
1444
1508
  p status_code # => 2xx
1445
1509
  p headers # => { ... }
1446
1510
  p data # => <ServerPublicNetwork>
@@ -1454,8 +1518,8 @@ end
1454
1518
  | Name | Type | Description | Notes |
1455
1519
  | ---- | ---- | ----------- | ----- |
1456
1520
  | **server_id** | **String** | The server&#39;s ID. | |
1521
+ | **server_public_network** | [**ServerPublicNetwork**](ServerPublicNetwork.md) | | |
1457
1522
  | **force** | **Boolean** | Query parameter controlling advanced features availability. Currently applicable for networking. It is advised to use with caution since it might lead to unhealthy setups. | [optional][default to false] |
1458
- | **server_public_network** | [**ServerPublicNetwork**](ServerPublicNetwork.md) | | [optional] |
1459
1523
 
1460
1524
  ### Return type
1461
1525
 
@@ -1473,7 +1537,7 @@ end
1473
1537
 
1474
1538
  ## servers_server_id_tags_put
1475
1539
 
1476
- > <Server> servers_server_id_tags_put(server_id, opts)
1540
+ > <Server> servers_server_id_tags_put(server_id, tag_assignment_request)
1477
1541
 
1478
1542
  Overwrite tags assigned for Server.
1479
1543
 
@@ -1491,14 +1555,12 @@ BmcApi.configure do |config|
1491
1555
  end
1492
1556
 
1493
1557
  api_instance = BmcApi::ServersApi.new
1494
- server_id = 'e6afba51-7de8-4080-83ab-0f915570659c' # String | The server's ID.
1495
- opts = {
1496
- tag_assignment_request: [BmcApi::TagAssignmentRequest.new({name: 'Environment'})] # Array<TagAssignmentRequest> |
1497
- }
1558
+ server_id = '60473a6115e34466c9f8f083' # String | The server's ID.
1559
+ tag_assignment_request = [BmcApi::TagAssignmentRequest.new({name: 'Environment'})] # Array<TagAssignmentRequest> |
1498
1560
 
1499
1561
  begin
1500
1562
  # Overwrite tags assigned for Server.
1501
- result = api_instance.servers_server_id_tags_put(server_id, opts)
1563
+ result = api_instance.servers_server_id_tags_put(server_id, tag_assignment_request)
1502
1564
  p result
1503
1565
  rescue BmcApi::ApiError => e
1504
1566
  puts "Error when calling ServersApi->servers_server_id_tags_put: #{e}"
@@ -1509,12 +1571,12 @@ end
1509
1571
 
1510
1572
  This returns an Array which contains the response data, status code and headers.
1511
1573
 
1512
- > <Array(<Server>, Integer, Hash)> servers_server_id_tags_put_with_http_info(server_id, opts)
1574
+ > <Array(<Server>, Integer, Hash)> servers_server_id_tags_put_with_http_info(server_id, tag_assignment_request)
1513
1575
 
1514
1576
  ```ruby
1515
1577
  begin
1516
1578
  # Overwrite tags assigned for Server.
1517
- data, status_code, headers = api_instance.servers_server_id_tags_put_with_http_info(server_id, opts)
1579
+ data, status_code, headers = api_instance.servers_server_id_tags_put_with_http_info(server_id, tag_assignment_request)
1518
1580
  p status_code # => 2xx
1519
1581
  p headers # => { ... }
1520
1582
  p data # => <Server>
@@ -1528,7 +1590,7 @@ end
1528
1590
  | Name | Type | Description | Notes |
1529
1591
  | ---- | ---- | ----------- | ----- |
1530
1592
  | **server_id** | **String** | The server&#39;s ID. | |
1531
- | **tag_assignment_request** | [**Array&lt;TagAssignmentRequest&gt;**](TagAssignmentRequest.md) | | [optional] |
1593
+ | **tag_assignment_request** | [**Array&lt;TagAssignmentRequest&gt;**](TagAssignmentRequest.md) | | |
1532
1594
 
1533
1595
  ### Return type
1534
1596