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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +196 -0
- data/Rakefile +10 -0
- data/VERSION +1 -0
- data/docs/ActionResult.md +18 -0
- data/docs/DeleteResult.md +20 -0
- data/docs/DeleteSshKeyResult.md +20 -0
- data/docs/Error.md +20 -0
- data/docs/IpBlocksConfiguration.md +20 -0
- data/docs/NetworkConfiguration.md +20 -0
- data/docs/OsConfiguration.md +24 -0
- data/docs/OsConfigurationMap.md +22 -0
- data/docs/OsConfigurationMapEsxi.md +22 -0
- data/docs/OsConfigurationMapProxmox.md +22 -0
- data/docs/OsConfigurationWindows.md +18 -0
- data/docs/PrivateNetworkConfiguration.md +22 -0
- data/docs/Quota.md +32 -0
- data/docs/QuotaEditLimitRequest.md +20 -0
- data/docs/QuotaEditLimitRequestDetails.md +22 -0
- data/docs/QuotaEditLimitRequestDetailsAllOf.md +18 -0
- data/docs/QuotasApi.md +217 -0
- data/docs/RelinquishIpBlock.md +18 -0
- data/docs/ResetResult.md +22 -0
- data/docs/SSHKeysApi.md +360 -0
- data/docs/Server.md +64 -0
- data/docs/ServerCreate.md +44 -0
- data/docs/ServerIpBlock.md +20 -0
- data/docs/ServerPatch.md +20 -0
- data/docs/ServerPrivateNetwork.md +24 -0
- data/docs/ServerReserve.md +18 -0
- data/docs/ServerReset.md +24 -0
- data/docs/ServersApi.md +1237 -0
- data/docs/SshKey.md +30 -0
- data/docs/SshKeyCreate.md +22 -0
- data/docs/SshKeyUpdate.md +20 -0
- data/docs/TagAssignment.md +26 -0
- data/docs/TagAssignmentRequest.md +20 -0
- data/lib/pnap_bmc_api/api/quotas_api.rb +212 -0
- data/lib/pnap_bmc_api/api/servers_api.rb +1159 -0
- data/lib/pnap_bmc_api/api/ssh_keys_api.rb +339 -0
- data/lib/pnap_bmc_api/api_client.rb +392 -0
- data/lib/pnap_bmc_api/api_error.rb +57 -0
- data/lib/pnap_bmc_api/configuration.rb +278 -0
- data/lib/pnap_bmc_api/models/action_result.rb +225 -0
- data/lib/pnap_bmc_api/models/delete_result.rb +240 -0
- data/lib/pnap_bmc_api/models/delete_ssh_key_result.rb +240 -0
- data/lib/pnap_bmc_api/models/error.rb +236 -0
- data/lib/pnap_bmc_api/models/ip_blocks_configuration.rb +283 -0
- data/lib/pnap_bmc_api/models/network_configuration.rb +228 -0
- data/lib/pnap_bmc_api/models/os_configuration.rb +266 -0
- data/lib/pnap_bmc_api/models/os_configuration_map.rb +237 -0
- data/lib/pnap_bmc_api/models/os_configuration_map_esxi.rb +257 -0
- data/lib/pnap_bmc_api/models/os_configuration_map_proxmox.rb +257 -0
- data/lib/pnap_bmc_api/models/os_configuration_windows.rb +237 -0
- data/lib/pnap_bmc_api/models/private_network_configuration.rb +244 -0
- data/lib/pnap_bmc_api/models/quota.rb +415 -0
- data/lib/pnap_bmc_api/models/quota_edit_limit_request.rb +259 -0
- data/lib/pnap_bmc_api/models/quota_edit_limit_request_details.rb +281 -0
- data/lib/pnap_bmc_api/models/quota_edit_limit_request_details_all_of.rb +225 -0
- data/lib/pnap_bmc_api/models/relinquish_ip_block.rb +222 -0
- data/lib/pnap_bmc_api/models/reset_result.rb +244 -0
- data/lib/pnap_bmc_api/models/server.rb +687 -0
- data/lib/pnap_bmc_api/models/server_create.rb +434 -0
- data/lib/pnap_bmc_api/models/server_ip_block.rb +235 -0
- data/lib/pnap_bmc_api/models/server_patch.rb +280 -0
- data/lib/pnap_bmc_api/models/server_private_network.rb +274 -0
- data/lib/pnap_bmc_api/models/server_reserve.rb +225 -0
- data/lib/pnap_bmc_api/models/server_reset.rb +255 -0
- data/lib/pnap_bmc_api/models/ssh_key.rb +315 -0
- data/lib/pnap_bmc_api/models/ssh_key_create.rb +283 -0
- data/lib/pnap_bmc_api/models/ssh_key_update.rb +268 -0
- data/lib/pnap_bmc_api/models/tag_assignment.rb +309 -0
- data/lib/pnap_bmc_api/models/tag_assignment_request.rb +235 -0
- data/lib/pnap_bmc_api/version.rb +19 -0
- data/lib/pnap_bmc_api.rb +72 -0
- data/pnap_bmc_api.gemspec +39 -0
- data/spec/api/quotas_api_spec.rb +71 -0
- data/spec/api/servers_api_spec.rb +249 -0
- data/spec/api/ssh_keys_api_spec.rb +95 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/action_result_spec.rb +34 -0
- data/spec/models/delete_result_spec.rb +40 -0
- data/spec/models/delete_ssh_key_result_spec.rb +40 -0
- data/spec/models/error_spec.rb +40 -0
- data/spec/models/ip_blocks_configuration_spec.rb +44 -0
- data/spec/models/network_configuration_spec.rb +40 -0
- data/spec/models/os_configuration_map_esxi_spec.rb +46 -0
- data/spec/models/os_configuration_map_proxmox_spec.rb +46 -0
- data/spec/models/os_configuration_map_spec.rb +46 -0
- data/spec/models/os_configuration_spec.rb +52 -0
- data/spec/models/os_configuration_windows_spec.rb +34 -0
- data/spec/models/private_network_configuration_spec.rb +46 -0
- data/spec/models/quota_edit_limit_request_details_all_of_spec.rb +34 -0
- data/spec/models/quota_edit_limit_request_details_spec.rb +46 -0
- data/spec/models/quota_edit_limit_request_spec.rb +40 -0
- data/spec/models/quota_spec.rb +84 -0
- data/spec/models/relinquish_ip_block_spec.rb +34 -0
- data/spec/models/reset_result_spec.rb +46 -0
- data/spec/models/server_create_spec.rb +112 -0
- data/spec/models/server_ip_block_spec.rb +40 -0
- data/spec/models/server_patch_spec.rb +40 -0
- data/spec/models/server_private_network_spec.rb +52 -0
- data/spec/models/server_reserve_spec.rb +34 -0
- data/spec/models/server_reset_spec.rb +52 -0
- data/spec/models/server_spec.rb +172 -0
- data/spec/models/ssh_key_create_spec.rb +46 -0
- data/spec/models/ssh_key_spec.rb +70 -0
- data/spec/models/ssh_key_update_spec.rb +40 -0
- data/spec/models/tag_assignment_request_spec.rb +40 -0
- data/spec/models/tag_assignment_spec.rb +62 -0
- data/spec/spec_helper.rb +111 -0
- 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
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
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'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<String>** | 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 'PURCHASE_NEW'] |
|
8
|
+
| **ip_blocks** | [**Array<ServerIpBlock>**](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<String>** | 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: ["172.217.22.14","10.111.14.40/29","10.111.14.66 - 10.111.14.71"]
|
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<String>** | 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: ["172.217.22.14","10.111.14.40/29","10.111.14.66 - 10.111.14.71"]
|
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<String>** | 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: ["172.217.22.14","10.111.14.40/29","10.111.14.66 - 10.111.14.71"]
|
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<String>** | 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: ["172.217.22.14","10.111.14.40/29","10.111.14.66 - 10.111.14.71"]
|
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'll be null and won'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 `USE_OR_CREATE_DEFAULT` or `USER_DEFINED`. | [optional][default to 'USE_OR_CREATE_DEFAULT'] |
|
9
|
+
| **private_networks** | [**Array<ServerPrivateNetwork>**](ServerPrivateNetwork.md) | The list of private networks this server is member of. When this field is part of request body, it'll be used to specify the private networks to assign to this server upon provisioning. Used alongside the `USER_DEFINED` 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: [{"id":"60f81608e2f4665962b214db","ips":["10.0.0.11 - 10.0.0.15"],"dhcp":false},{"id":"60f93142c5c1d6082d31382a","ips":["10.0.0.16","10.0.0.17"],"dhcp":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<QuotaEditLimitRequestDetails>**](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
|
+
|