pnap_bmc_api 1.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 (114) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +196 -0
  4. data/Rakefile +10 -0
  5. data/VERSION +1 -0
  6. data/docs/ActionResult.md +18 -0
  7. data/docs/DeleteResult.md +20 -0
  8. data/docs/DeleteSshKeyResult.md +20 -0
  9. data/docs/Error.md +20 -0
  10. data/docs/IpBlocksConfiguration.md +20 -0
  11. data/docs/NetworkConfiguration.md +20 -0
  12. data/docs/OsConfiguration.md +24 -0
  13. data/docs/OsConfigurationMap.md +22 -0
  14. data/docs/OsConfigurationMapEsxi.md +22 -0
  15. data/docs/OsConfigurationMapProxmox.md +22 -0
  16. data/docs/OsConfigurationWindows.md +18 -0
  17. data/docs/PrivateNetworkConfiguration.md +22 -0
  18. data/docs/Quota.md +32 -0
  19. data/docs/QuotaEditLimitRequest.md +20 -0
  20. data/docs/QuotaEditLimitRequestDetails.md +22 -0
  21. data/docs/QuotaEditLimitRequestDetailsAllOf.md +18 -0
  22. data/docs/QuotasApi.md +217 -0
  23. data/docs/RelinquishIpBlock.md +18 -0
  24. data/docs/ResetResult.md +22 -0
  25. data/docs/SSHKeysApi.md +360 -0
  26. data/docs/Server.md +64 -0
  27. data/docs/ServerCreate.md +44 -0
  28. data/docs/ServerIpBlock.md +20 -0
  29. data/docs/ServerPatch.md +20 -0
  30. data/docs/ServerPrivateNetwork.md +24 -0
  31. data/docs/ServerReserve.md +18 -0
  32. data/docs/ServerReset.md +24 -0
  33. data/docs/ServersApi.md +1237 -0
  34. data/docs/SshKey.md +30 -0
  35. data/docs/SshKeyCreate.md +22 -0
  36. data/docs/SshKeyUpdate.md +20 -0
  37. data/docs/TagAssignment.md +26 -0
  38. data/docs/TagAssignmentRequest.md +20 -0
  39. data/lib/pnap_bmc_api/api/quotas_api.rb +212 -0
  40. data/lib/pnap_bmc_api/api/servers_api.rb +1159 -0
  41. data/lib/pnap_bmc_api/api/ssh_keys_api.rb +339 -0
  42. data/lib/pnap_bmc_api/api_client.rb +392 -0
  43. data/lib/pnap_bmc_api/api_error.rb +57 -0
  44. data/lib/pnap_bmc_api/configuration.rb +278 -0
  45. data/lib/pnap_bmc_api/models/action_result.rb +225 -0
  46. data/lib/pnap_bmc_api/models/delete_result.rb +240 -0
  47. data/lib/pnap_bmc_api/models/delete_ssh_key_result.rb +240 -0
  48. data/lib/pnap_bmc_api/models/error.rb +236 -0
  49. data/lib/pnap_bmc_api/models/ip_blocks_configuration.rb +283 -0
  50. data/lib/pnap_bmc_api/models/network_configuration.rb +228 -0
  51. data/lib/pnap_bmc_api/models/os_configuration.rb +266 -0
  52. data/lib/pnap_bmc_api/models/os_configuration_map.rb +237 -0
  53. data/lib/pnap_bmc_api/models/os_configuration_map_esxi.rb +257 -0
  54. data/lib/pnap_bmc_api/models/os_configuration_map_proxmox.rb +257 -0
  55. data/lib/pnap_bmc_api/models/os_configuration_windows.rb +237 -0
  56. data/lib/pnap_bmc_api/models/private_network_configuration.rb +244 -0
  57. data/lib/pnap_bmc_api/models/quota.rb +415 -0
  58. data/lib/pnap_bmc_api/models/quota_edit_limit_request.rb +259 -0
  59. data/lib/pnap_bmc_api/models/quota_edit_limit_request_details.rb +281 -0
  60. data/lib/pnap_bmc_api/models/quota_edit_limit_request_details_all_of.rb +225 -0
  61. data/lib/pnap_bmc_api/models/relinquish_ip_block.rb +222 -0
  62. data/lib/pnap_bmc_api/models/reset_result.rb +244 -0
  63. data/lib/pnap_bmc_api/models/server.rb +687 -0
  64. data/lib/pnap_bmc_api/models/server_create.rb +434 -0
  65. data/lib/pnap_bmc_api/models/server_ip_block.rb +235 -0
  66. data/lib/pnap_bmc_api/models/server_patch.rb +280 -0
  67. data/lib/pnap_bmc_api/models/server_private_network.rb +274 -0
  68. data/lib/pnap_bmc_api/models/server_reserve.rb +225 -0
  69. data/lib/pnap_bmc_api/models/server_reset.rb +255 -0
  70. data/lib/pnap_bmc_api/models/ssh_key.rb +315 -0
  71. data/lib/pnap_bmc_api/models/ssh_key_create.rb +283 -0
  72. data/lib/pnap_bmc_api/models/ssh_key_update.rb +268 -0
  73. data/lib/pnap_bmc_api/models/tag_assignment.rb +309 -0
  74. data/lib/pnap_bmc_api/models/tag_assignment_request.rb +235 -0
  75. data/lib/pnap_bmc_api/version.rb +19 -0
  76. data/lib/pnap_bmc_api.rb +72 -0
  77. data/pnap_bmc_api.gemspec +39 -0
  78. data/spec/api/quotas_api_spec.rb +71 -0
  79. data/spec/api/servers_api_spec.rb +249 -0
  80. data/spec/api/ssh_keys_api_spec.rb +95 -0
  81. data/spec/api_client_spec.rb +226 -0
  82. data/spec/configuration_spec.rb +42 -0
  83. data/spec/models/action_result_spec.rb +34 -0
  84. data/spec/models/delete_result_spec.rb +40 -0
  85. data/spec/models/delete_ssh_key_result_spec.rb +40 -0
  86. data/spec/models/error_spec.rb +40 -0
  87. data/spec/models/ip_blocks_configuration_spec.rb +44 -0
  88. data/spec/models/network_configuration_spec.rb +40 -0
  89. data/spec/models/os_configuration_map_esxi_spec.rb +46 -0
  90. data/spec/models/os_configuration_map_proxmox_spec.rb +46 -0
  91. data/spec/models/os_configuration_map_spec.rb +46 -0
  92. data/spec/models/os_configuration_spec.rb +52 -0
  93. data/spec/models/os_configuration_windows_spec.rb +34 -0
  94. data/spec/models/private_network_configuration_spec.rb +46 -0
  95. data/spec/models/quota_edit_limit_request_details_all_of_spec.rb +34 -0
  96. data/spec/models/quota_edit_limit_request_details_spec.rb +46 -0
  97. data/spec/models/quota_edit_limit_request_spec.rb +40 -0
  98. data/spec/models/quota_spec.rb +84 -0
  99. data/spec/models/relinquish_ip_block_spec.rb +34 -0
  100. data/spec/models/reset_result_spec.rb +46 -0
  101. data/spec/models/server_create_spec.rb +112 -0
  102. data/spec/models/server_ip_block_spec.rb +40 -0
  103. data/spec/models/server_patch_spec.rb +40 -0
  104. data/spec/models/server_private_network_spec.rb +52 -0
  105. data/spec/models/server_reserve_spec.rb +34 -0
  106. data/spec/models/server_reset_spec.rb +52 -0
  107. data/spec/models/server_spec.rb +172 -0
  108. data/spec/models/ssh_key_create_spec.rb +46 -0
  109. data/spec/models/ssh_key_spec.rb +70 -0
  110. data/spec/models/ssh_key_update_spec.rb +40 -0
  111. data/spec/models/tag_assignment_request_spec.rb +40 -0
  112. data/spec/models/tag_assignment_spec.rb +62 -0
  113. data/spec/spec_helper.rb +111 -0
  114. metadata +232 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 7c5b2ad68bc62ada47f95823ea403da174846a41862b669d57ceb31005f052b3
4
+ data.tar.gz: 573723f8e01729414d1116d49ec40ffa8a0365cfb1282e40843551f8f8e1e4ca
5
+ SHA512:
6
+ metadata.gz: 3c731149eec84270fdee84251dd0a14dcc20859514769828d1c72e23b8de40a15fc54a5ffabb44d3b497bf188a65b056d38a56aca79de37152926873adbbab02
7
+ data.tar.gz: e632cd3cf73c9ad514ddc09b9d34d5dd70f6f7ccd89f5d87121599462030c5309e27145aabb52d6543461e5f9e44986d7d511e9d7aa1e1d51b024a65d78f4aca
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 13.0.1'
7
+ gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+ end
data/README.md ADDED
@@ -0,0 +1,196 @@
1
+ # pnap_bmc_api
2
+
3
+ BmcApi - the Ruby gem for the Bare Metal Cloud API
4
+
5
+ Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API.
6
+ Deprovision servers, get or edit SSH key details, and a lot more. Manage your infrastructure more efficiently
7
+ using just a few simple api calls.<br>
8
+ <br>
9
+ <span class='pnap-api-knowledge-base-link'>
10
+ Knowledge base articles to help you can be found
11
+ <a href='https://phoenixnap.com/kb/how-to-deploy-bare-metal-cloud-server' target='_blank'>here</a>
12
+ </span><br>
13
+ <br>
14
+ <b>All URLs are relative to (https://api.phoenixnap.com/bmc/v1/)</b>
15
+
16
+
17
+ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
18
+
19
+ - API version: 0.1
20
+ For more information, please visit [https://phoenixnap.com/](https://phoenixnap.com/)
21
+
22
+ ## Installation
23
+
24
+ ### Build a gem
25
+
26
+ To build the Ruby code into a gem:
27
+
28
+ ```shell
29
+ gem build pnap_bmc_api.gemspec
30
+ ```
31
+
32
+ Then either install the gem locally, replacing `<VERSION>` with the actual version:
33
+
34
+ ```shell
35
+ gem install ./pnap_bmc_api-<VERSION>.gem
36
+ ```
37
+
38
+ (for development, run `gem install --dev ./pnap_bmc_api-<VERSION>.gem` to install the development dependencies)
39
+
40
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
41
+
42
+ Finally add this to the Gemfile:
43
+
44
+ gem 'pnap_bmc_api', '~> <VERSION>'
45
+
46
+ ### Install from Git
47
+
48
+ To install this Gem from this repository, you'll need to get Bundler by doing `gem install bundler`. Add the following line in your Gemfile:
49
+
50
+ gem 'pnap_bmc_api', git: 'https://github.com/phoenixnap/ruby-sdk-bmc-poc', glob: 'BmcApi/*.gemspec'
51
+
52
+ If you'd like the development version:
53
+
54
+ gem 'pnap_bmc_api', git: 'https://github.com/phoenixnap/ruby-sdk-bmc-poc', glob: 'BmcApi/*.gemspec', branch: 'develop'
55
+
56
+ Then run `bundle install`.
57
+
58
+ ### Include the Ruby code directly
59
+
60
+ Include the Ruby code directly using `-I` as follows:
61
+
62
+ ```shell
63
+ ruby -Ilib script.rb
64
+ ```
65
+
66
+ ## Getting Started
67
+
68
+ Please follow the [installation](#installation) procedure and then run the following code:
69
+
70
+ ```ruby
71
+ # Load the gem
72
+ require 'pnap_bmc_api'
73
+
74
+ # Setup authorization
75
+ BmcApi.configure do |config|
76
+ # Configure OAuth2 access token for authorization: OAuth2
77
+ config.access_token = 'YOUR ACCESS TOKEN'
78
+ end
79
+
80
+ api_instance = BmcApi::QuotasApi.new
81
+
82
+ begin
83
+ #List quotas
84
+ result = api_instance.quotas_get
85
+ p result
86
+ rescue BmcApi::ApiError => e
87
+ puts "Exception when calling QuotasApi->quotas_get: #{e}"
88
+ end
89
+
90
+ ```
91
+
92
+ Authorization can also be setup by using the [`oauth`](https://github.com/oauth-xx/oauth2) library:
93
+
94
+ ```ruby
95
+ # Load the gem
96
+ require 'pnap_bmc_api'
97
+ require 'oauth2'
98
+
99
+ # Setup variables for getting a token.
100
+ client_id = 'YOUR_CLIENT_ID'
101
+ client_secret = 'YOUR_CLIENT_SECRET'
102
+ auth_url = 'https://auth.phoenixnap.com/auth/realms/BMC/protocol/openid-connect/token'
103
+
104
+
105
+ # Setup authorization
106
+ BmcApi.configure do |config|
107
+ # Retrieve the token using OAuth2.
108
+ client = OAuth2::Client.new(client_id, client_secret, token_url: auth_url)
109
+ token = client.client_credentials.get_token
110
+
111
+ # Configure OAuth2 access token for authorization: OAuth2
112
+ config.access_token = token.token
113
+ end
114
+
115
+ ```
116
+
117
+ ## Documentation for API Endpoints
118
+
119
+ All URIs are relative to *https://api.phoenixnap.com/bmc/v1*
120
+
121
+ Class | Method | HTTP request | Description
122
+ ------------ | ------------- | ------------- | -------------
123
+ *BmcApi::QuotasApi* | [**quotas_get**](docs/QuotasApi.md#quotas_get) | **GET** /quotas | List quotas
124
+ *BmcApi::QuotasApi* | [**quotas_quota_id_actions_request_edit_post**](docs/QuotasApi.md#quotas_quota_id_actions_request_edit_post) | **POST** /quotas/{quotaId}/actions/request-edit | Request quota limit change.
125
+ *BmcApi::QuotasApi* | [**quotas_quota_id_get**](docs/QuotasApi.md#quotas_quota_id_get) | **GET** /quotas/{quotaId} | Get a quota.
126
+ *BmcApi::SSHKeysApi* | [**ssh_keys_get**](docs/SSHKeysApi.md#ssh_keys_get) | **GET** /ssh-keys | List SSH Keys.
127
+ *BmcApi::SSHKeysApi* | [**ssh_keys_post**](docs/SSHKeysApi.md#ssh_keys_post) | **POST** /ssh-keys | Create SSH Key.
128
+ *BmcApi::SSHKeysApi* | [**ssh_keys_ssh_key_id_delete**](docs/SSHKeysApi.md#ssh_keys_ssh_key_id_delete) | **DELETE** /ssh-keys/{sshKeyId} | Delete SSH Key.
129
+ *BmcApi::SSHKeysApi* | [**ssh_keys_ssh_key_id_get**](docs/SSHKeysApi.md#ssh_keys_ssh_key_id_get) | **GET** /ssh-keys/{sshKeyId} | Get SSH Key.
130
+ *BmcApi::SSHKeysApi* | [**ssh_keys_ssh_key_id_put**](docs/SSHKeysApi.md#ssh_keys_ssh_key_id_put) | **PUT** /ssh-keys/{sshKeyId} | Edit SSH Key.
131
+ *BmcApi::ServersApi* | [**delete_private_network**](docs/ServersApi.md#delete_private_network) | **DELETE** /servers/{serverId}/network-configuration/private-network-configuration/private-networks/{privateNetworkId} | Removes the server from private network.
132
+ *BmcApi::ServersApi* | [**servers_get**](docs/ServersApi.md#servers_get) | **GET** /servers | List servers.
133
+ *BmcApi::ServersApi* | [**servers_post**](docs/ServersApi.md#servers_post) | **POST** /servers | Create new server.
134
+ *BmcApi::ServersApi* | [**servers_server_id_actions_deprovision_post**](docs/ServersApi.md#servers_server_id_actions_deprovision_post) | **POST** /servers/{serverId}/actions/deprovision | Deprovision a server.
135
+ *BmcApi::ServersApi* | [**servers_server_id_actions_power_off_post**](docs/ServersApi.md#servers_server_id_actions_power_off_post) | **POST** /servers/{serverId}/actions/power-off | Power off server.
136
+ *BmcApi::ServersApi* | [**servers_server_id_actions_power_on_post**](docs/ServersApi.md#servers_server_id_actions_power_on_post) | **POST** /servers/{serverId}/actions/power-on | Power on server.
137
+ *BmcApi::ServersApi* | [**servers_server_id_actions_reboot_post**](docs/ServersApi.md#servers_server_id_actions_reboot_post) | **POST** /servers/{serverId}/actions/reboot | Reboot server.
138
+ *BmcApi::ServersApi* | [**servers_server_id_actions_reserve_post**](docs/ServersApi.md#servers_server_id_actions_reserve_post) | **POST** /servers/{serverId}/actions/reserve | Reserve server.
139
+ *BmcApi::ServersApi* | [**servers_server_id_actions_reset_post**](docs/ServersApi.md#servers_server_id_actions_reset_post) | **POST** /servers/{serverId}/actions/reset | Reset server.
140
+ *BmcApi::ServersApi* | [**servers_server_id_actions_shutdown_post**](docs/ServersApi.md#servers_server_id_actions_shutdown_post) | **POST** /servers/{serverId}/actions/shutdown | Shutdown server.
141
+ *BmcApi::ServersApi* | [**servers_server_id_delete**](docs/ServersApi.md#servers_server_id_delete) | **DELETE** /servers/{serverId} | Delete server.
142
+ *BmcApi::ServersApi* | [**servers_server_id_get**](docs/ServersApi.md#servers_server_id_get) | **GET** /servers/{serverId} | Get server.
143
+ *BmcApi::ServersApi* | [**servers_server_id_ip_blocks_ip_block_id_delete**](docs/ServersApi.md#servers_server_id_ip_blocks_ip_block_id_delete) | **DELETE** /servers/{serverId}/network-configuration/ip-block-configurations/ip-blocks/{ipBlockId} | Unassign IP Block from Server.
144
+ *BmcApi::ServersApi* | [**servers_server_id_ip_blocks_post**](docs/ServersApi.md#servers_server_id_ip_blocks_post) | **POST** /servers/{serverId}/network-configuration/ip-block-configurations/ip-blocks | Assign IP Block to Server.
145
+ *BmcApi::ServersApi* | [**servers_server_id_patch**](docs/ServersApi.md#servers_server_id_patch) | **PATCH** /servers/{serverId} | Patch a Server.
146
+ *BmcApi::ServersApi* | [**servers_server_id_private_networks_post**](docs/ServersApi.md#servers_server_id_private_networks_post) | **POST** /servers/{serverId}/network-configuration/private-network-configuration/private-networks | Adds the server to a private network.
147
+ *BmcApi::ServersApi* | [**servers_server_id_tags_put**](docs/ServersApi.md#servers_server_id_tags_put) | **PUT** /servers/{serverId}/tags | Set server tags.
148
+
149
+
150
+ ## Documentation for Models
151
+
152
+ - [BmcApi::ActionResult](docs/ActionResult.md)
153
+ - [BmcApi::DeleteResult](docs/DeleteResult.md)
154
+ - [BmcApi::DeleteSshKeyResult](docs/DeleteSshKeyResult.md)
155
+ - [BmcApi::Error](docs/Error.md)
156
+ - [BmcApi::IpBlocksConfiguration](docs/IpBlocksConfiguration.md)
157
+ - [BmcApi::NetworkConfiguration](docs/NetworkConfiguration.md)
158
+ - [BmcApi::OsConfiguration](docs/OsConfiguration.md)
159
+ - [BmcApi::OsConfigurationMap](docs/OsConfigurationMap.md)
160
+ - [BmcApi::OsConfigurationMapEsxi](docs/OsConfigurationMapEsxi.md)
161
+ - [BmcApi::OsConfigurationMapProxmox](docs/OsConfigurationMapProxmox.md)
162
+ - [BmcApi::OsConfigurationWindows](docs/OsConfigurationWindows.md)
163
+ - [BmcApi::PrivateNetworkConfiguration](docs/PrivateNetworkConfiguration.md)
164
+ - [BmcApi::Quota](docs/Quota.md)
165
+ - [BmcApi::QuotaEditLimitRequest](docs/QuotaEditLimitRequest.md)
166
+ - [BmcApi::QuotaEditLimitRequestDetails](docs/QuotaEditLimitRequestDetails.md)
167
+ - [BmcApi::QuotaEditLimitRequestDetailsAllOf](docs/QuotaEditLimitRequestDetailsAllOf.md)
168
+ - [BmcApi::RelinquishIpBlock](docs/RelinquishIpBlock.md)
169
+ - [BmcApi::ResetResult](docs/ResetResult.md)
170
+ - [BmcApi::Server](docs/Server.md)
171
+ - [BmcApi::ServerCreate](docs/ServerCreate.md)
172
+ - [BmcApi::ServerIpBlock](docs/ServerIpBlock.md)
173
+ - [BmcApi::ServerPatch](docs/ServerPatch.md)
174
+ - [BmcApi::ServerPrivateNetwork](docs/ServerPrivateNetwork.md)
175
+ - [BmcApi::ServerReserve](docs/ServerReserve.md)
176
+ - [BmcApi::ServerReset](docs/ServerReset.md)
177
+ - [BmcApi::SshKey](docs/SshKey.md)
178
+ - [BmcApi::SshKeyCreate](docs/SshKeyCreate.md)
179
+ - [BmcApi::SshKeyUpdate](docs/SshKeyUpdate.md)
180
+ - [BmcApi::TagAssignment](docs/TagAssignment.md)
181
+ - [BmcApi::TagAssignmentRequest](docs/TagAssignmentRequest.md)
182
+
183
+
184
+ ## Documentation for Authorization
185
+
186
+
187
+ ### OAuth2
188
+
189
+
190
+ - **Type**: OAuth
191
+ - **Flow**: application
192
+ - **Authorization URL**:
193
+ - **Scopes**:
194
+ - bmc: Grants full access to bmc-api.
195
+ - bmc.read: Grants read only access to bmc-api.
196
+
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.0
@@ -0,0 +1,18 @@
1
+ # BmcApi::ActionResult
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **result** | **String** | Message describing the action&#39;s result. | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'pnap_bmc_api'
13
+
14
+ instance = BmcApi::ActionResult.new(
15
+ result: Powering on server.
16
+ )
17
+ ```
18
+
@@ -0,0 +1,20 @@
1
+ # BmcApi::DeleteResult
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **result** | **String** | Server has been deleted. | |
8
+ | **server_id** | **String** | The unique identifier of the server. | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'pnap_bmc_api'
14
+
15
+ instance = BmcApi::DeleteResult.new(
16
+ result: Server has been deleted.,
17
+ server_id: x78sdkjds879sd7cx8
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # BmcApi::DeleteSshKeyResult
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **result** | **String** | Resource has been deleted. | |
8
+ | **ssh_key_id** | **String** | The unique identifier of the deleted resource. | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'pnap_bmc_api'
14
+
15
+ instance = BmcApi::DeleteSshKeyResult.new(
16
+ result: Resource has been deleted.,
17
+ ssh_key_id: 5fa54d1e91867c03a0a7b4a4
18
+ )
19
+ ```
20
+
data/docs/Error.md ADDED
@@ -0,0 +1,20 @@
1
+ # BmcApi::Error
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **message** | **String** | The description detailing the cause of the error code. | [readonly] |
8
+ | **validation_errors** | **Array&lt;String&gt;** | Validation errors, if any. | [optional][readonly] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'pnap_bmc_api'
14
+
15
+ instance = BmcApi::Error.new(
16
+ message: null,
17
+ validation_errors: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # BmcApi::IpBlocksConfiguration
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **configuration_type** | **String** | Determines the approach for configuring IP blocks for the server being provisioned. If PURCHASE_NEW is selected, the smallest supported range, depending on the operating system, is allocated to the server. | [optional][default to &#39;PURCHASE_NEW&#39;] |
8
+ | **ip_blocks** | [**Array&lt;ServerIpBlock&gt;**](ServerIpBlock.md) | Used to specify the previously purchased IP blocks to assign to this server upon provisioning. Used alongside the USER_DEFINED configurationType. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'pnap_bmc_api'
14
+
15
+ instance = BmcApi::IpBlocksConfiguration.new(
16
+ configuration_type: null,
17
+ ip_blocks: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # BmcApi::NetworkConfiguration
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **private_network_configuration** | [**PrivateNetworkConfiguration**](PrivateNetworkConfiguration.md) | | [optional] |
8
+ | **ip_blocks_configuration** | [**IpBlocksConfiguration**](IpBlocksConfiguration.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'pnap_bmc_api'
14
+
15
+ instance = BmcApi::NetworkConfiguration.new(
16
+ private_network_configuration: null,
17
+ ip_blocks_configuration: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,24 @@
1
+ # BmcApi::OsConfiguration
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **windows** | [**OsConfigurationWindows**](OsConfigurationWindows.md) | | [optional] |
8
+ | **root_password** | **String** | Password set for user root on an ESXi server which will only be returned in response to provisioning a server. | [optional][readonly] |
9
+ | **management_ui_url** | **String** | The URL of the management UI which will only be returned in response to provisioning a server. | [optional][readonly] |
10
+ | **management_access_allowed_ips** | **Array&lt;String&gt;** | List of IPs allowed to access the Management UI. Supported in single IP, CIDR and range format. When undefined, Management UI is disabled. This will only be returned in response to provisioning a server. | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'pnap_bmc_api'
16
+
17
+ instance = BmcApi::OsConfiguration.new(
18
+ windows: null,
19
+ root_password: MyP@ssw0rd_01,
20
+ management_ui_url: https://172.217.22.14,
21
+ management_access_allowed_ips: [&quot;172.217.22.14&quot;,&quot;10.111.14.40/29&quot;,&quot;10.111.14.66 - 10.111.14.71&quot;]
22
+ )
23
+ ```
24
+
@@ -0,0 +1,22 @@
1
+ # BmcApi::OsConfigurationMap
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **windows** | [**OsConfigurationWindows**](OsConfigurationWindows.md) | | [optional] |
8
+ | **esxi** | [**OsConfigurationMapEsxi**](OsConfigurationMapEsxi.md) | | [optional] |
9
+ | **proxmox** | [**OsConfigurationMapProxmox**](OsConfigurationMapProxmox.md) | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'pnap_bmc_api'
15
+
16
+ instance = BmcApi::OsConfigurationMap.new(
17
+ windows: null,
18
+ esxi: null,
19
+ proxmox: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # BmcApi::OsConfigurationMapEsxi
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **root_password** | **String** | Password set for user root on an ESXi server which will only be returned in response to provisioning a server. | [optional][readonly] |
8
+ | **management_ui_url** | **String** | The URL of the management UI which will only be returned in response to provisioning a server. | [optional][readonly] |
9
+ | **management_access_allowed_ips** | **Array&lt;String&gt;** | List of IPs allowed to access the Management UI. Supported in single IP, CIDR and range format. When undefined, Management UI is disabled. This will only be returned in response to provisioning a server. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'pnap_bmc_api'
15
+
16
+ instance = BmcApi::OsConfigurationMapEsxi.new(
17
+ root_password: MyP@ssw0rd_01,
18
+ management_ui_url: https://172.217.22.14,
19
+ management_access_allowed_ips: [&quot;172.217.22.14&quot;,&quot;10.111.14.40/29&quot;,&quot;10.111.14.66 - 10.111.14.71&quot;]
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # BmcApi::OsConfigurationMapProxmox
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **root_password** | **String** | Password set for user root on a Proxmox server which will only be returned in response to provisioning a server. | [optional][readonly] |
8
+ | **management_ui_url** | **String** | The URL of the management UI which will only be returned in response to provisioning a server. | [optional][readonly] |
9
+ | **management_access_allowed_ips** | **Array&lt;String&gt;** | List of IPs allowed to access the Management UI. Supported in single IP, CIDR and range format. When undefined, Management UI is disabled. This will only be returned in response to provisioning a server. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'pnap_bmc_api'
15
+
16
+ instance = BmcApi::OsConfigurationMapProxmox.new(
17
+ root_password: MyP@ssw0rd_01,
18
+ management_ui_url: https://172.217.22.14:8006,
19
+ management_access_allowed_ips: [&quot;172.217.22.14&quot;,&quot;10.111.14.40/29&quot;,&quot;10.111.14.66 - 10.111.14.71&quot;]
20
+ )
21
+ ```
22
+
@@ -0,0 +1,18 @@
1
+ # BmcApi::OsConfigurationWindows
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **rdp_allowed_ips** | **Array&lt;String&gt;** | List of IPs allowed for RDP access to Windows OS. Supported in single IP, CIDR and range format. When undefined, RDP is disabled. To allow RDP access from any IP use 0.0.0.0/0. This will only be returned in response to provisioning a server. | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'pnap_bmc_api'
13
+
14
+ instance = BmcApi::OsConfigurationWindows.new(
15
+ rdp_allowed_ips: [&quot;172.217.22.14&quot;,&quot;10.111.14.40/29&quot;,&quot;10.111.14.66 - 10.111.14.71&quot;]
16
+ )
17
+ ```
18
+
@@ -0,0 +1,22 @@
1
+ # BmcApi::PrivateNetworkConfiguration
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **gateway_address** | **String** | The address of the gateway assigned / to assign to the server. It&#39;ll be null and won&#39;t be displayed as part of response body if server is a member of both public and private networks. When used as part of request body, it has to match one of the IP addresses used in the existing assigned private networks for the relevant location. Also, this field can be submitted only when provisioning a server without being a member of any public network. | [optional] |
8
+ | **configuration_type** | **String** | Determines the approach for configuring private network(s) for the server being provisioned. Currently this field should be set to &#x60;USE_OR_CREATE_DEFAULT&#x60; or &#x60;USER_DEFINED&#x60;. | [optional][default to &#39;USE_OR_CREATE_DEFAULT&#39;] |
9
+ | **private_networks** | [**Array&lt;ServerPrivateNetwork&gt;**](ServerPrivateNetwork.md) | The list of private networks this server is member of. When this field is part of request body, it&#39;ll be used to specify the private networks to assign to this server upon provisioning. Used alongside the &#x60;USER_DEFINED&#x60; configurationType. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'pnap_bmc_api'
15
+
16
+ instance = BmcApi::PrivateNetworkConfiguration.new(
17
+ gateway_address: 10.0.0.10,
18
+ configuration_type: USER_DEFINED,
19
+ private_networks: [{&quot;id&quot;:&quot;60f81608e2f4665962b214db&quot;,&quot;ips&quot;:[&quot;10.0.0.11 - 10.0.0.15&quot;],&quot;dhcp&quot;:false},{&quot;id&quot;:&quot;60f93142c5c1d6082d31382a&quot;,&quot;ips&quot;:[&quot;10.0.0.16&quot;,&quot;10.0.0.17&quot;],&quot;dhcp&quot;:false}]
20
+ )
21
+ ```
22
+
data/docs/Quota.md ADDED
@@ -0,0 +1,32 @@
1
+ # BmcApi::Quota
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | The ID of the Quota. | |
8
+ | **name** | **String** | The name of the Quota. | |
9
+ | **description** | **String** | The Quota description. | |
10
+ | **status** | **String** | The status of the quota resource usage. | |
11
+ | **limit** | **Integer** | The limit set for the quota. | |
12
+ | **unit** | **String** | An enum field describing what the limit is measured in. | |
13
+ | **used** | **Integer** | The quota used expressed as a number. | |
14
+ | **quota_edit_limit_request_details** | [**Array&lt;QuotaEditLimitRequestDetails&gt;**](QuotaEditLimitRequestDetails.md) | | [readonly] |
15
+
16
+ ## Example
17
+
18
+ ```ruby
19
+ require 'pnap_bmc_api'
20
+
21
+ instance = BmcApi::Quota.new(
22
+ id: bmc.servers.max_count,
23
+ name: Servers,
24
+ description: Maximum number of BMC servers,
25
+ status: OVER_LIMIT,
26
+ limit: 2,
27
+ unit: null,
28
+ used: 2,
29
+ quota_edit_limit_request_details: null
30
+ )
31
+ ```
32
+
@@ -0,0 +1,20 @@
1
+ # BmcApi::QuotaEditLimitRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **limit** | **Integer** | The new limit that is requested. | |
8
+ | **reason** | **String** | The reason for changing the limit. | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'pnap_bmc_api'
14
+
15
+ instance = BmcApi::QuotaEditLimitRequest.new(
16
+ limit: 10,
17
+ reason: I need more servers for my cluster.
18
+ )
19
+ ```
20
+
@@ -0,0 +1,22 @@
1
+ # BmcApi::QuotaEditLimitRequestDetails
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **limit** | **Integer** | The new limit that is requested. | |
8
+ | **reason** | **String** | The reason for changing the limit. | |
9
+ | **requested_on** | **Time** | The point in time the request was submitted. | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'pnap_bmc_api'
15
+
16
+ instance = BmcApi::QuotaEditLimitRequestDetails.new(
17
+ limit: 10,
18
+ reason: I need more servers for my cluster.,
19
+ requested_on: 2021-09-01T10:10:10Z
20
+ )
21
+ ```
22
+
@@ -0,0 +1,18 @@
1
+ # BmcApi::QuotaEditLimitRequestDetailsAllOf
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **requested_on** | **Time** | The point in time the request was submitted. | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'pnap_bmc_api'
13
+
14
+ instance = BmcApi::QuotaEditLimitRequestDetailsAllOf.new(
15
+ requested_on: 2021-09-01T10:10:10Z
16
+ )
17
+ ```
18
+