pnap_bmc_api 2.1.0 → 2.2.1
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 +4 -4
- data/README.md +1 -0
- data/VERSION +1 -1
- data/docs/GpuConfiguration.md +20 -0
- data/docs/OsConfigurationCloudInit.md +2 -2
- data/docs/Quota.md +1 -1
- data/docs/RelinquishIpBlock.md +1 -1
- data/docs/Server.md +4 -2
- data/docs/ServerCreate.md +2 -2
- data/docs/ServerNetworkUpdate.md +2 -2
- data/docs/ServerProvision.md +1 -1
- data/docs/ServerPublicNetwork.md +5 -3
- data/docs/ServersApi.md +1 -1
- data/lib/pnap_bmc_api/api/servers_api.rb +2 -2
- data/lib/pnap_bmc_api/models/gpu_configuration.rb +226 -0
- data/lib/pnap_bmc_api/models/os_configuration_cloud_init.rb +1 -1
- data/lib/pnap_bmc_api/models/quota_edit_limit_request.rb +3 -3
- data/lib/pnap_bmc_api/models/quota_edit_limit_request_details.rb +7 -3
- data/lib/pnap_bmc_api/models/relinquish_ip_block.rb +2 -2
- data/lib/pnap_bmc_api/models/server.rb +12 -3
- data/lib/pnap_bmc_api/models/server_create.rb +2 -2
- data/lib/pnap_bmc_api/models/server_network_update.rb +1 -1
- data/lib/pnap_bmc_api/models/server_provision.rb +1 -1
- data/lib/pnap_bmc_api/models/server_public_network.rb +15 -5
- data/lib/pnap_bmc_api.rb +1 -0
- data/spec/api/servers_api_spec.rb +1 -1
- data/spec/models/gpu_configuration_spec.rb +42 -0
- data/spec/models/server_public_network_spec.rb +6 -0
- data/spec/models/server_spec.rb +6 -0
- metadata +43 -39
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66e9c84703fc8859d72d8f5eec3d50bf3c7ebe61873f7da347f2c509ab0bb758
|
4
|
+
data.tar.gz: f28baca1b35d8416a05610155aed2b8f26926df91df27f69f2f5009e2efed352
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d1e74705879e5f58d032109644888c71b8cf822eccb58e4f556a5149bbdbbd1993ded0150a7c4a6ba457c6a280e1c92bbc51cb0c7e738a82eab191f2e3fc7ff
|
7
|
+
data.tar.gz: a1087161da32c22fd1444371e848e7d92e09889126993373cce5938cb10d7af199662cdbf5939d2e0250844d192f8306b08cad58f4b123d69aee203006d30324
|
data/README.md
CHANGED
@@ -162,6 +162,7 @@ Class | Method | HTTP request | Description
|
|
162
162
|
- [BmcApi::Error](docs/Error.md)
|
163
163
|
- [BmcApi::EsxiDatastoreConfiguration](docs/EsxiDatastoreConfiguration.md)
|
164
164
|
- [BmcApi::EsxiOsConfiguration](docs/EsxiOsConfiguration.md)
|
165
|
+
- [BmcApi::GpuConfiguration](docs/GpuConfiguration.md)
|
165
166
|
- [BmcApi::IpBlocksConfiguration](docs/IpBlocksConfiguration.md)
|
166
167
|
- [BmcApi::NetworkConfiguration](docs/NetworkConfiguration.md)
|
167
168
|
- [BmcApi::OsConfiguration](docs/OsConfiguration.md)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1
|
1
|
+
2.2.1
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# BmcApi::GpuConfiguration
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **long_name** | **String** | The long name of the GPU. | [optional] |
|
8
|
+
| **count** | **Integer** | The number of GPUs. | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'pnap_bmc_api'
|
14
|
+
|
15
|
+
instance = BmcApi::GpuConfiguration.new(
|
16
|
+
long_name: Intel Max 1100 GPU,
|
17
|
+
count: 2
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **user_data** | **String** | (Write-only) User data for the <a href='https://cloudinit.readthedocs.io/en/latest/' target='_blank'>cloud-init</a> configuration in base64 encoding. NoCloud format is supported. Follow the <a href='https://phoenixnap.com/kb/bmc-cloud-init' target='_blank'>instructions</a> on how to provision a server using cloud-init. Only ubuntu/bionic, ubuntu/focal
|
7
|
+
| **user_data** | **String** | (Write-only) User data for the <a href='https://cloudinit.readthedocs.io/en/latest/' target='_blank'>cloud-init</a> configuration in base64 encoding. NoCloud format is supported. Follow the <a href='https://phoenixnap.com/kb/bmc-cloud-init' target='_blank'>instructions</a> on how to provision a server using cloud-init. Only ubuntu/bionic, ubuntu/focal, ubuntu/jammy, debian/bullseye, debian/bookworm, centos/centos7, centos/centos8, almalinux/almalinux8, almalinux/almalinux9, rockylinux/rockylinux8, rockylinux/rockylinux9 and virtuozzo/virtuozzo7 are supported. User data will not be stored and cannot be retrieved once you deploy the server. Copy and save it for future reference. | [optional] |
|
8
8
|
|
9
9
|
## Example
|
10
10
|
|
@@ -12,7 +12,7 @@
|
|
12
12
|
require 'pnap_bmc_api'
|
13
13
|
|
14
14
|
instance = BmcApi::OsConfigurationCloudInit.new(
|
15
|
-
user_data:
|
15
|
+
user_data: [B@59838256
|
16
16
|
)
|
17
17
|
```
|
18
18
|
|
data/docs/Quota.md
CHANGED
data/docs/RelinquishIpBlock.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **delete_ip_blocks** | **Boolean** | Determines whether the
|
7
|
+
| **delete_ip_blocks** | **Boolean** | Determines whether the IPv4 and IPv6 blocks assigned to the server should be deleted or not. | [optional][default to false] |
|
8
8
|
|
9
9
|
## Example
|
10
10
|
|
data/docs/Server.md
CHANGED
@@ -8,8 +8,8 @@
|
|
8
8
|
| **status** | **String** | The status of the server. Can have one of the following values: `creating` , `powered-on` , `powered-off` , `rebooting` , `resetting` , `deleting` , `reserved` , `error` or `reinstating`. | |
|
9
9
|
| **hostname** | **String** | Hostname of server. | |
|
10
10
|
| **description** | **String** | Description of server. | [optional] |
|
11
|
-
| **os** | **String** | The server’s OS ID used when the server was created. Currently this field should be set to either `ubuntu/bionic`, `ubuntu/focal`, `ubuntu/jammy`, `centos/centos7`, `centos/centos8`, `windows/srv2019std`, `windows/srv2019dc`, `windows/srv2022std`, `windows/srv2022dc`, `esxi/esxi70`, `esxi/esxi80`, `almalinux/almalinux8`, `rockylinux/rockylinux8`, `almalinux/almalinux9`, `rockylinux/rockylinux9`, `debian/bullseye`, `debian/bookworm`, `proxmox/bullseye`, `proxmox/proxmox8`, `netris/controller`, `netris/softgate_1g`, `netris/softgate_10g` or `netris/softgate_25g`. | [optional] |
|
12
|
-
| **type** | **String** | Server type ID. Cannot be changed once a server is created. Currently this field should be set to either `s0.d1.small`, `s0.d1.medium`, `s1.c1.small`, `s1.c1.medium`, `s1.c2.medium`, `s1.c2.large`, `s1.e1.small`, `s1.e1.medium`, `s1.e1.large`, `s2.c1.small`, `s2.c1.medium`, `s2.c1.large`, `s2.c2.small`, `s2.c2.medium`, `s2.c2.large`, `d1.c1.small`, `d1.c2.small`, `d1.c3.small`, `d1.c4.small`, `d1.c1.medium`, `d1.c2.medium`, `d1.c3.medium`, `d1.c4.medium`, `d1.c1.large`, `d1.c2.large`, `d1.c3.large`, `d1.c4.large`, `d1.m1.medium`, `d1.m2.medium`, `d1.m3.medium`, `d1.m4.medium`, `d2.c1.medium`, `d2.c2.medium`, `d2.c3.medium`, `d2.c4.medium`, `d2.c5.medium`, `d2.c1.large`, `d2.c2.large`, `d2.c3.large`, `d2.c4.large`, `d2.c5.large`, `d2.m1.xlarge`, `d2.m2.xxlarge`, `d2.m3.xlarge`, `d2.m4.xlarge`, `d2.m5.xlarge`, `d2.c4.db1.pliops1`, `d3.m4.xlarge`, `d3.m5.xlarge`, `d3.m6.xlarge`, `a1.c5.large`, `d3.s5.xlarge`, `d3.m4.xxlarge`, `d3.m5.xxlarge`, `d3.m6.xxlarge`, `s3.c3.medium`, `s3.c3.large`, `d3.c4.medium`, `d3.c5.medium`
|
11
|
+
| **os** | **String** | The server’s OS ID used when the server was created. Currently this field should be set to either `ubuntu/bionic`, `ubuntu/focal`, `ubuntu/jammy`, `ubuntu/jammy+pytorch`, `ubuntu/noble`, `centos/centos7`, `centos/centos8`, `windows/srv2019std`, `windows/srv2019dc`, `windows/srv2022std`, `windows/srv2022dc`, `esxi/esxi70`, `esxi/esxi80`, `almalinux/almalinux8`, `rockylinux/rockylinux8`, `almalinux/almalinux9`, `rockylinux/rockylinux9`, `virtuozzo/virtuozzo7`, `oraclelinux/oraclelinux9`, `debian/bullseye`, `debian/bookworm`, `proxmox/bullseye`, `proxmox/proxmox8`, `netris/controller`, `netris/softgate_1g`, `netris/softgate_10g` or `netris/softgate_25g`. | [optional] |
|
12
|
+
| **type** | **String** | Server type ID. Cannot be changed once a server is created. Currently this field should be set to either `s0.d1.small`, `s0.d1.medium`, `s1.c1.small`, `s1.c1.medium`, `s1.c2.medium`, `s1.c2.large`, `s1.e1.small`, `s1.e1.medium`, `s1.e1.large`, `s2.c1.small`, `s2.c1.medium`, `s2.c1.large`, `s2.c2.small`, `s2.c2.medium`, `s2.c2.large`, `d1.c1.small`, `d1.c2.small`, `d1.c3.small`, `d1.c4.small`, `d1.c1.medium`, `d1.c2.medium`, `d1.c3.medium`, `d1.c4.medium`, `d1.c1.large`, `d1.c2.large`, `d1.c3.large`, `d1.c4.large`, `d1.m1.medium`, `d1.m2.medium`, `d1.m3.medium`, `d1.m4.medium`, `d2.c1.medium`, `d2.c2.medium`, `d2.c3.medium`, `d2.c4.medium`, `d2.c5.medium`, `d2.c1.large`, `d2.c2.large`, `d2.c3.large`, `d2.c4.large`, `d2.c5.large`, `d2.m1.xlarge`, `d2.m2.xxlarge`, `d2.m3.xlarge`, `d2.m4.xlarge`, `d2.m5.xlarge`, `d2.c4.db1.pliops1`, `d3.m4.xlarge`, `d3.m5.xlarge`, `d3.m6.xlarge`, `a1.c5.large`, `a1.c5.xlarge`, `d3.s5.xlarge`, `d3.m4.xxlarge`, `d3.m5.xxlarge`, `d3.m6.xxlarge`, `s3.c3.medium`, `s3.c3.large`, `d3.c4.medium`, `d3.c5.medium`, `d3.c6.medium`, `d3.c1.large`, `d3.c2.large`, `d3.c3.large`, `d3.m1.xlarge`, `d3.m2.xlarge`, `d3.m3.xlarge`, `d3.g2.c1.xlarge`, `d3.g2.c2.xlarge`, `d3.g2.c3.xlarge`, s4.x6.c6.large or s4.x6.m6.xlarge. | |
|
13
13
|
| **location** | **String** | Server location ID. Cannot be changed once a server is created. Currently this field should be set to `PHX`, `ASH`, `SGP`, `NLD`, `CHI`, `SEA` or `AUS`. | |
|
14
14
|
| **cpu** | **String** | A description of the machine CPU. | |
|
15
15
|
| **cpu_count** | **Integer** | The number of CPUs available in the system. | |
|
@@ -29,6 +29,7 @@
|
|
29
29
|
| **os_configuration** | [**OsConfiguration**](OsConfiguration.md) | | [optional] |
|
30
30
|
| **network_configuration** | [**NetworkConfiguration**](NetworkConfiguration.md) | | |
|
31
31
|
| **storage_configuration** | [**StorageConfiguration**](StorageConfiguration.md) | | |
|
32
|
+
| **gpu_configuration** | [**GpuConfiguration**](GpuConfiguration.md) | | [optional] |
|
32
33
|
| **superseded_by** | **String** | Unique identifier of the server to which the reservation has been transferred. | [optional] |
|
33
34
|
| **supersedes** | **String** | Unique identifier of the server from which the reservation has been transferred. | [optional] |
|
34
35
|
|
@@ -63,6 +64,7 @@ instance = BmcApi::Server.new(
|
|
63
64
|
os_configuration: null,
|
64
65
|
network_configuration: null,
|
65
66
|
storage_configuration: null,
|
67
|
+
gpu_configuration: null,
|
66
68
|
superseded_by: 64a539b8d9c2c9ba8424ca31,
|
67
69
|
supersedes: 76915b5c85121d411f26e92f
|
68
70
|
)
|
data/docs/ServerCreate.md
CHANGED
@@ -6,8 +6,8 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **hostname** | **String** | Hostname of server. | |
|
8
8
|
| **description** | **String** | Description of server. | [optional] |
|
9
|
-
| **os** | **String** | The server’s OS ID used when the server was created. Currently this field should be set to either `ubuntu/bionic`, `ubuntu/focal`, `ubuntu/jammy`, `centos/centos7`, `centos/centos8`, `windows/srv2019std`, `windows/srv2019dc`, `windows/srv2022std`, `windows/srv2022dc`, `esxi/esxi70`, `esxi/esxi80`, `almalinux/almalinux8`, `rockylinux/rockylinux8`, `almalinux/almalinux9`, `rockylinux/rockylinux9`, `virtuozzo/virtuozzo7`, `debian/bullseye`, `debian/bookworm`, `proxmox/bullseye`, `proxmox/proxmox8`, `netris/controller`, `netris/softgate_1g`, `netris/softgate_10g` or `netris/softgate_25g`. | |
|
10
|
-
| **type** | **String** | Server type ID. Cannot be changed once a server is created. Currently this field should be set to either `s0.d1.small`, `s0.d1.medium`, `s1.c1.small`, `s1.c1.medium`, `s1.c2.medium`, `s1.c2.large`, `s1.e1.small`, `s1.e1.medium`, `s1.e1.large`, `s2.c1.small`, `s2.c1.medium`, `s2.c1.large`, `s2.c2.small`, `s2.c2.medium`, `s2.c2.large`, `d1.c1.small`, `d1.c2.small`, `d1.c3.small`, `d1.c4.small`, `d1.c1.medium`, `d1.c2.medium`, `d1.c3.medium`, `d1.c4.medium`, `d1.c1.large`, `d1.c2.large`, `d1.c3.large`, `d1.c4.large`, `d1.m1.medium`, `d1.m2.medium`, `d1.m3.medium`, `d1.m4.medium`, `d2.c1.medium`, `d2.c2.medium`, `d2.c3.medium`, `d2.c4.medium`, `d2.c5.medium`, `d2.c1.large`, `d2.c2.large`, `d2.c3.large`, `d2.c4.large`, `d2.c5.large`, `d2.m1.xlarge`, `d2.m2.xxlarge`, `d2.m3.xlarge`, `d2.m4.xlarge`, `d2.m5.xlarge`, `d2.c4.db1.pliops1`, `d3.m4.xlarge`, `d3.m5.xlarge`, `d3.m6.xlarge`, `a1.c5.large`, `d3.s5.xlarge`, `d3.m4.xxlarge`, `d3.m5.xxlarge`, `d3.m6.xxlarge`, `s3.c3.medium`, `s3.c3.large`, `d3.c4.medium`, `d3.c5.medium`
|
9
|
+
| **os** | **String** | The server’s OS ID used when the server was created. Currently this field should be set to either `ubuntu/bionic`, `ubuntu/focal`, `ubuntu/jammy`, `ubuntu/jammy+pytorch`, `ubuntu/noble`, `centos/centos7`, `centos/centos8`, `windows/srv2019std`, `windows/srv2019dc`, `windows/srv2022std`, `windows/srv2022dc`, `esxi/esxi70`, `esxi/esxi80`, `almalinux/almalinux8`, `rockylinux/rockylinux8`, `almalinux/almalinux9`, `rockylinux/rockylinux9`, `virtuozzo/virtuozzo7`, `oraclelinux/oraclelinux9`, `debian/bullseye`, `debian/bookworm`, `proxmox/bullseye`, `proxmox/proxmox8`, `netris/controller`, `netris/softgate_1g`, `netris/softgate_10g` or `netris/softgate_25g`. | |
|
10
|
+
| **type** | **String** | Server type ID. Cannot be changed once a server is created. Currently this field should be set to either `s0.d1.small`, `s0.d1.medium`, `s1.c1.small`, `s1.c1.medium`, `s1.c2.medium`, `s1.c2.large`, `s1.e1.small`, `s1.e1.medium`, `s1.e1.large`, `s2.c1.small`, `s2.c1.medium`, `s2.c1.large`, `s2.c2.small`, `s2.c2.medium`, `s2.c2.large`, `d1.c1.small`, `d1.c2.small`, `d1.c3.small`, `d1.c4.small`, `d1.c1.medium`, `d1.c2.medium`, `d1.c3.medium`, `d1.c4.medium`, `d1.c1.large`, `d1.c2.large`, `d1.c3.large`, `d1.c4.large`, `d1.m1.medium`, `d1.m2.medium`, `d1.m3.medium`, `d1.m4.medium`, `d2.c1.medium`, `d2.c2.medium`, `d2.c3.medium`, `d2.c4.medium`, `d2.c5.medium`, `d2.c1.large`, `d2.c2.large`, `d2.c3.large`, `d2.c4.large`, `d2.c5.large`, `d2.m1.xlarge`, `d2.m2.xxlarge`, `d2.m3.xlarge`, `d2.m4.xlarge`, `d2.m5.xlarge`, `d2.c4.db1.pliops1`, `d3.m4.xlarge`, `d3.m5.xlarge`, `d3.m6.xlarge`, `a1.c5.large`, `a1.c5.xlarge`, `d3.s5.xlarge`, `d3.m4.xxlarge`, `d3.m5.xxlarge`, `d3.m6.xxlarge`, `s3.c3.medium`, `s3.c3.large`, `d3.c4.medium`, `d3.c5.medium`, `d3.c6.medium`, `d3.c1.large`, `d3.c2.large`, `d3.c3.large`, `d3.m1.xlarge`, `d3.m2.xlarge`, `d3.m3.xlarge`, `d3.g2.c1.xlarge`, `d3.g2.c2.xlarge`, `d3.g2.c3.xlarge`, s4.x6.c6.large or s4.x6.m6.xlarge. | |
|
11
11
|
| **location** | **String** | Server location ID. Cannot be changed once a server is created. Currently this field should be set to `PHX`, `ASH`, `SGP`, `NLD`, `CHI`, `SEA` or `AUS`. | |
|
12
12
|
| **install_default_ssh_keys** | **Boolean** | Whether or not to install SSH keys marked as default in addition to any SSH keys specified in this request. | [optional][default to true] |
|
13
13
|
| **ssh_keys** | **Array<String>** | A list of SSH keys that will be installed on the server. | [optional] |
|
data/docs/ServerNetworkUpdate.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **ips** | **Array<String>** | List of IPs to be associated to the server.<br> Valid IP formats
|
7
|
+
| **ips** | **Array<String>** | List of IPs to be associated to the server.<br> Valid IP formats include single IP addresses or IP ranges (IPv4 or IPv6). IPs must be within the network's range.<br> Setting the `force` query parameter to `true` allows you to:<ul> <li> Assign no specific IP addresses by designating an empty array of IPs. <li> Assign one or more IP addresses which are already configured on other resource(s) in network. <li> Assign IP addresses which are considered as reserved in network.</ul> | [optional] |
|
8
8
|
|
9
9
|
## Example
|
10
10
|
|
@@ -12,7 +12,7 @@
|
|
12
12
|
require 'pnap_bmc_api'
|
13
13
|
|
14
14
|
instance = BmcApi::ServerNetworkUpdate.new(
|
15
|
-
ips: ["10.1.1.1","10.1.1.20 - 10.1.1.25"]
|
15
|
+
ips: ["10.1.1.1","10.1.1.20 - 10.1.1.25","2001:db8::f","2001:db8::b - 2001:db8::d"]
|
16
16
|
)
|
17
17
|
```
|
18
18
|
|
data/docs/ServerProvision.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **hostname** | **String** | Hostname of server. | |
|
8
8
|
| **description** | **String** | Description of server. | [optional] |
|
9
|
-
| **os** | **String** | The server’s OS ID used when the server was created. Currently this field should be set to either `ubuntu/bionic`, `ubuntu/focal`, `ubuntu/jammy`, `centos/centos7`, `centos/centos8`, `windows/srv2019std`, `windows/srv2019dc`, `windows/srv2022std`, `windows/srv2022dc`, `esxi/esxi70`, `esxi/esxi80`, `almalinux/almalinux8`, `rockylinux/rockylinux8`, `debian/bullseye`, `debian/bookworm`, `proxmox/bullseye`, `proxmox/proxmox8`, `netris/controller`, `netris/softgate_1g`, `netris/softgate_10g` or `netris/softgate_25g`. | |
|
9
|
+
| **os** | **String** | The server’s OS ID used when the server was created. Currently this field should be set to either `ubuntu/bionic`, `ubuntu/focal`, `ubuntu/jammy`, `ubuntu/jammy+pytorch`, `ubuntu/noble`, `centos/centos7`, `centos/centos8`, `windows/srv2019std`, `windows/srv2019dc`, `windows/srv2022std`, `windows/srv2022dc`, `esxi/esxi70`, `esxi/esxi80`, `almalinux/almalinux8`, `almalinux/almalinux9`, `rockylinux/rockylinux8`, `rockylinux/rockylinux9`, `virtuozzo/virtuozzo7`, `oraclelinux/oraclelinux9`, `debian/bullseye`, `debian/bookworm`, `proxmox/bullseye`, `proxmox/proxmox8`, `netris/controller`, `netris/softgate_1g`, `netris/softgate_10g` or `netris/softgate_25g`. | |
|
10
10
|
| **install_default_ssh_keys** | **Boolean** | Whether or not to install SSH keys marked as default in addition to any SSH keys specified in this request. | [optional][default to true] |
|
11
11
|
| **ssh_keys** | **Array<String>** | A list of SSH keys that will be installed on the server. | [optional] |
|
12
12
|
| **ssh_key_ids** | **Array<String>** | A list of SSH key IDs that will be installed on the server in addition to any SSH keys specified in this request. | [optional] |
|
data/docs/ServerPublicNetwork.md
CHANGED
@@ -5,8 +5,9 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **id** | **String** | The network identifier. | |
|
8
|
-
| **ips** | **Array<String>** | Configurable/configured IPs on the server.<br> At least 1 IP address is required. Valid IP
|
8
|
+
| **ips** | **Array<String>** | Configurable/configured IPs on the server.<br> At least 1 IP address is required. Valid IP format is single IP addresses. All IPs must be within the network's range.<br> Setting the `computeSlaacIp` field to `true` allows you to provide an empty array of IPs.<br> Additionally, setting the `force` query parameter to `true` allows you to:<ul> <li> Assign no specific IP addresses by designating an empty array of IPs. Note that at least one IP is required for the gateway address to be selected from this network. <li> Assign one or more IP addresses which are already configured on other resource(s) in network.</ul> | [optional] |
|
9
9
|
| **status_description** | **String** | (Read-only) The status of the assignment to the network. | [optional][readonly] |
|
10
|
+
| **compute_slaac_ip** | **Boolean** | (Write-only) Requests Stateless Address Autoconfiguration (SLAAC). Applicable for Network which contains IPv6 block(s). | [optional] |
|
10
11
|
|
11
12
|
## Example
|
12
13
|
|
@@ -15,8 +16,9 @@ require 'pnap_bmc_api'
|
|
15
16
|
|
16
17
|
instance = BmcApi::ServerPublicNetwork.new(
|
17
18
|
id: 60473c2509268bc77fd06d29,
|
18
|
-
ips: ["182.16.0.146","
|
19
|
-
status_description: assigned
|
19
|
+
ips: ["182.16.0.146","2001:db8::b"],
|
20
|
+
status_description: assigned,
|
21
|
+
compute_slaac_ip: true
|
20
22
|
)
|
21
23
|
```
|
22
24
|
|
data/docs/ServersApi.md
CHANGED
@@ -1024,7 +1024,7 @@ end
|
|
1024
1024
|
|
1025
1025
|
Assign IP Block to Server.
|
1026
1026
|
|
1027
|
-
Adds an IP block to this server. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/configure-server-with-public-ip-block#ftoc-heading-2' target='_blank'>here</a>.
|
1027
|
+
Adds an IP block to this server. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. A server can have at most one IPv4 block and one IPv6 block assigned simultaneously. Assigning IPv6 to server is only supported post-provision. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/configure-server-with-public-ip-block#ftoc-heading-2' target='_blank'>here</a>.
|
1028
1028
|
|
1029
1029
|
### Examples
|
1030
1030
|
|
@@ -977,7 +977,7 @@ module BmcApi
|
|
977
977
|
end
|
978
978
|
|
979
979
|
# Assign IP Block to Server.
|
980
|
-
# Adds an IP block to this server. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/configure-server-with-public-ip-block#ftoc-heading-2' target='_blank'>here</a>.
|
980
|
+
# Adds an IP block to this server. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. A server can have at most one IPv4 block and one IPv6 block assigned simultaneously. Assigning IPv6 to server is only supported post-provision. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/configure-server-with-public-ip-block#ftoc-heading-2' target='_blank'>here</a>.
|
981
981
|
# @param server_id [String] The server's ID.
|
982
982
|
# @param server_ip_block [ServerIpBlock]
|
983
983
|
# @param [Hash] opts the optional parameters
|
@@ -988,7 +988,7 @@ module BmcApi
|
|
988
988
|
end
|
989
989
|
|
990
990
|
# Assign IP Block to Server.
|
991
|
-
# Adds an IP block to this server. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/configure-server-with-public-ip-block#ftoc-heading-2' target='_blank'>here</a>.
|
991
|
+
# Adds an IP block to this server. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. A server can have at most one IPv4 block and one IPv6 block assigned simultaneously. Assigning IPv6 to server is only supported post-provision. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/configure-server-with-public-ip-block#ftoc-heading-2' target='_blank'>here</a>.
|
992
992
|
# @param server_id [String] The server's ID.
|
993
993
|
# @param server_ip_block [ServerIpBlock]
|
994
994
|
# @param [Hash] opts the optional parameters
|
@@ -0,0 +1,226 @@
|
|
1
|
+
=begin
|
2
|
+
#Bare Metal Cloud API
|
3
|
+
|
4
|
+
#Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API. Deprovision servers, get or edit SSH key details, assign public IPs, assign servers to networks and a lot more. Manage your infrastructure more efficiently using just a few simple API calls.<br> <br> <span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/how-to-deploy-bare-metal-cloud-server' target='_blank'>here</a> </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/bmc/v1/)</b>
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.1
|
7
|
+
Contact: support@phoenixnap.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module BmcApi
|
17
|
+
# The GPU configuration.
|
18
|
+
class GpuConfiguration
|
19
|
+
# The long name of the GPU.
|
20
|
+
attr_accessor :long_name
|
21
|
+
|
22
|
+
# The number of GPUs.
|
23
|
+
attr_accessor :count
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'long_name' => :'longName',
|
29
|
+
:'count' => :'count'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# Returns all the JSON keys this model knows about
|
34
|
+
def self.acceptable_attributes
|
35
|
+
attribute_map.values
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.openapi_types
|
40
|
+
{
|
41
|
+
:'long_name' => :'String',
|
42
|
+
:'count' => :'Integer'
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
# List of attributes with nullable: true
|
47
|
+
def self.openapi_nullable
|
48
|
+
Set.new([
|
49
|
+
])
|
50
|
+
end
|
51
|
+
|
52
|
+
# Initializes the object
|
53
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
54
|
+
def initialize(attributes = {})
|
55
|
+
if (!attributes.is_a?(Hash))
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `BmcApi::GpuConfiguration` initialize method"
|
57
|
+
end
|
58
|
+
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `BmcApi::GpuConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
|
+
end
|
64
|
+
h[k.to_sym] = v
|
65
|
+
}
|
66
|
+
|
67
|
+
if attributes.key?(:'long_name')
|
68
|
+
self.long_name = attributes[:'long_name']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.key?(:'count')
|
72
|
+
self.count = attributes[:'count']
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
77
|
+
# @return Array for valid properties with the reasons
|
78
|
+
def list_invalid_properties
|
79
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
80
|
+
invalid_properties = Array.new
|
81
|
+
invalid_properties
|
82
|
+
end
|
83
|
+
|
84
|
+
# Check to see if the all the properties in the model are valid
|
85
|
+
# @return true if the model is valid
|
86
|
+
def valid?
|
87
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
88
|
+
true
|
89
|
+
end
|
90
|
+
|
91
|
+
# Checks equality by comparing each attribute.
|
92
|
+
# @param [Object] Object to be compared
|
93
|
+
def ==(o)
|
94
|
+
return true if self.equal?(o)
|
95
|
+
self.class == o.class &&
|
96
|
+
long_name == o.long_name &&
|
97
|
+
count == o.count
|
98
|
+
end
|
99
|
+
|
100
|
+
# @see the `==` method
|
101
|
+
# @param [Object] Object to be compared
|
102
|
+
def eql?(o)
|
103
|
+
self == o
|
104
|
+
end
|
105
|
+
|
106
|
+
# Calculates hash code according to all attributes.
|
107
|
+
# @return [Integer] Hash code
|
108
|
+
def hash
|
109
|
+
[long_name, count].hash
|
110
|
+
end
|
111
|
+
|
112
|
+
# Builds the object from hash
|
113
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
114
|
+
# @return [Object] Returns the model itself
|
115
|
+
def self.build_from_hash(attributes)
|
116
|
+
return nil unless attributes.is_a?(Hash)
|
117
|
+
attributes = attributes.transform_keys(&:to_sym)
|
118
|
+
transformed_hash = {}
|
119
|
+
openapi_types.each_pair do |key, type|
|
120
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
121
|
+
transformed_hash["#{key}"] = nil
|
122
|
+
elsif type =~ /\AArray<(.*)>/i
|
123
|
+
# check to ensure the input is an array given that the attribute
|
124
|
+
# is documented as an array but the input is not
|
125
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
126
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
127
|
+
end
|
128
|
+
elsif !attributes[attribute_map[key]].nil?
|
129
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
130
|
+
end
|
131
|
+
end
|
132
|
+
new(transformed_hash)
|
133
|
+
end
|
134
|
+
|
135
|
+
# Deserializes the data based on type
|
136
|
+
# @param string type Data type
|
137
|
+
# @param string value Value to be deserialized
|
138
|
+
# @return [Object] Deserialized data
|
139
|
+
def self._deserialize(type, value)
|
140
|
+
case type.to_sym
|
141
|
+
when :Time
|
142
|
+
Time.parse(value)
|
143
|
+
when :Date
|
144
|
+
Date.parse(value)
|
145
|
+
when :String
|
146
|
+
value.to_s
|
147
|
+
when :Integer
|
148
|
+
value.to_i
|
149
|
+
when :Float
|
150
|
+
value.to_f
|
151
|
+
when :Boolean
|
152
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
153
|
+
true
|
154
|
+
else
|
155
|
+
false
|
156
|
+
end
|
157
|
+
when :Object
|
158
|
+
# generic object (usually a Hash), return directly
|
159
|
+
value
|
160
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
161
|
+
inner_type = Regexp.last_match[:inner_type]
|
162
|
+
value.map { |v| _deserialize(inner_type, v) }
|
163
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
164
|
+
k_type = Regexp.last_match[:k_type]
|
165
|
+
v_type = Regexp.last_match[:v_type]
|
166
|
+
{}.tap do |hash|
|
167
|
+
value.each do |k, v|
|
168
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
169
|
+
end
|
170
|
+
end
|
171
|
+
else # model
|
172
|
+
# models (e.g. Pet) or oneOf
|
173
|
+
klass = BmcApi.const_get(type)
|
174
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
# Returns the string representation of the object
|
179
|
+
# @return [String] String presentation of the object
|
180
|
+
def to_s
|
181
|
+
to_hash.to_s
|
182
|
+
end
|
183
|
+
|
184
|
+
# to_body is an alias to to_hash (backward compatibility)
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
186
|
+
def to_body
|
187
|
+
to_hash
|
188
|
+
end
|
189
|
+
|
190
|
+
# Returns the object in the form of hash
|
191
|
+
# @return [Hash] Returns the object in the form of hash
|
192
|
+
def to_hash
|
193
|
+
hash = {}
|
194
|
+
self.class.attribute_map.each_pair do |attr, param|
|
195
|
+
value = self.send(attr)
|
196
|
+
if value.nil?
|
197
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
198
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
199
|
+
end
|
200
|
+
|
201
|
+
hash[param] = _to_hash(value)
|
202
|
+
end
|
203
|
+
hash
|
204
|
+
end
|
205
|
+
|
206
|
+
# Outputs non-array value in the form of hash
|
207
|
+
# For object, use to_hash. Otherwise, just return the value
|
208
|
+
# @param [Object] value Any valid value
|
209
|
+
# @return [Hash] Returns the value in the form of hash
|
210
|
+
def _to_hash(value)
|
211
|
+
if value.is_a?(Array)
|
212
|
+
value.compact.map { |v| _to_hash(v) }
|
213
|
+
elsif value.is_a?(Hash)
|
214
|
+
{}.tap do |hash|
|
215
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
216
|
+
end
|
217
|
+
elsif value.respond_to? :to_hash
|
218
|
+
value.to_hash
|
219
|
+
else
|
220
|
+
value
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
end
|
225
|
+
|
226
|
+
end
|
@@ -16,7 +16,7 @@ require 'time'
|
|
16
16
|
module BmcApi
|
17
17
|
# Cloud-init configuration details.
|
18
18
|
class OsConfigurationCloudInit
|
19
|
-
# (Write-only) User data for the <a href='https://cloudinit.readthedocs.io/en/latest/' target='_blank'>cloud-init</a> configuration in base64 encoding. NoCloud format is supported. Follow the <a href='https://phoenixnap.com/kb/bmc-cloud-init' target='_blank'>instructions</a> on how to provision a server using cloud-init. Only ubuntu/bionic, ubuntu/focal
|
19
|
+
# (Write-only) User data for the <a href='https://cloudinit.readthedocs.io/en/latest/' target='_blank'>cloud-init</a> configuration in base64 encoding. NoCloud format is supported. Follow the <a href='https://phoenixnap.com/kb/bmc-cloud-init' target='_blank'>instructions</a> on how to provision a server using cloud-init. Only ubuntu/bionic, ubuntu/focal, ubuntu/jammy, debian/bullseye, debian/bookworm, centos/centos7, centos/centos8, almalinux/almalinux8, almalinux/almalinux9, rockylinux/rockylinux8, rockylinux/rockylinux9 and virtuozzo/virtuozzo7 are supported. User data will not be stored and cannot be retrieved once you deploy the server. Copy and save it for future reference.
|
20
20
|
attr_accessor :user_data
|
21
21
|
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -94,7 +94,7 @@ module BmcApi
|
|
94
94
|
invalid_properties.push('invalid value for "reason", reason cannot be nil.')
|
95
95
|
end
|
96
96
|
|
97
|
-
pattern = Regexp.new(/^(?!\s*$).+/)
|
97
|
+
pattern = Regexp.new(/^(?m)(?!\s*$).+/)
|
98
98
|
if @reason !~ pattern
|
99
99
|
invalid_properties.push("invalid value for \"reason\", must conform to the pattern #{pattern}.")
|
100
100
|
end
|
@@ -109,7 +109,7 @@ module BmcApi
|
|
109
109
|
return false if @limit.nil?
|
110
110
|
return false if @limit < 0
|
111
111
|
return false if @reason.nil?
|
112
|
-
return false if @reason !~ Regexp.new(/^(?!\s*$).+/)
|
112
|
+
return false if @reason !~ Regexp.new(/^(?m)(?!\s*$).+/)
|
113
113
|
true
|
114
114
|
end
|
115
115
|
|
@@ -134,7 +134,7 @@ module BmcApi
|
|
134
134
|
fail ArgumentError, 'reason cannot be nil'
|
135
135
|
end
|
136
136
|
|
137
|
-
pattern = Regexp.new(/^(?!\s*$).+/)
|
137
|
+
pattern = Regexp.new(/^(?m)(?!\s*$).+/)
|
138
138
|
if reason !~ pattern
|
139
139
|
fail ArgumentError, "invalid value for \"reason\", must conform to the pattern #{pattern}."
|
140
140
|
end
|
@@ -111,7 +111,11 @@ module BmcApi
|
|
111
111
|
invalid_properties.push('invalid value for "reason", reason cannot be nil.')
|
112
112
|
end
|
113
113
|
|
114
|
-
pattern
|
114
|
+
# This pattern is being manually modified.
|
115
|
+
# (?m) was originally (?s) -- it functions the same, except Ruby doesn't understand (?s)
|
116
|
+
# Information here:
|
117
|
+
# - https://www.rexegg.com/regex-ruby.php
|
118
|
+
pattern = Regexp.new(/^(?m)(?!\s*$).+/)
|
115
119
|
if @reason !~ pattern
|
116
120
|
invalid_properties.push("invalid value for \"reason\", must conform to the pattern #{pattern}.")
|
117
121
|
end
|
@@ -130,7 +134,7 @@ module BmcApi
|
|
130
134
|
return false if @limit.nil?
|
131
135
|
return false if @limit < 0
|
132
136
|
return false if @reason.nil?
|
133
|
-
return false if @reason !~ Regexp.new(/^(?!\s*$).+/)
|
137
|
+
return false if @reason !~ Regexp.new(/^(?m)(?!\s*$).+/)
|
134
138
|
return false if @requested_on.nil?
|
135
139
|
true
|
136
140
|
end
|
@@ -156,7 +160,7 @@ module BmcApi
|
|
156
160
|
fail ArgumentError, 'reason cannot be nil'
|
157
161
|
end
|
158
162
|
|
159
|
-
pattern = Regexp.new(/^(?!\s*$).+/)
|
163
|
+
pattern = Regexp.new(/^(?m)(?!\s*$).+/)
|
160
164
|
if reason !~ pattern
|
161
165
|
fail ArgumentError, "invalid value for \"reason\", must conform to the pattern #{pattern}."
|
162
166
|
end
|
@@ -14,9 +14,9 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module BmcApi
|
17
|
-
# Object used to determine whether to relinquish ownership of the IP
|
17
|
+
# Object used to determine whether to relinquish ownership of the IP blocks upon unassignment from server or server deletion.
|
18
18
|
class RelinquishIpBlock
|
19
|
-
# Determines whether the
|
19
|
+
# Determines whether the IPv4 and IPv6 blocks assigned to the server should be deleted or not.
|
20
20
|
attr_accessor :delete_ip_blocks
|
21
21
|
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -28,10 +28,10 @@ module BmcApi
|
|
28
28
|
# Description of server.
|
29
29
|
attr_accessor :description
|
30
30
|
|
31
|
-
# The server’s OS ID used when the server was created. Currently this field should be set to either `ubuntu/bionic`, `ubuntu/focal`, `ubuntu/jammy`, `centos/centos7`, `centos/centos8`, `windows/srv2019std`, `windows/srv2019dc`, `windows/srv2022std`, `windows/srv2022dc`, `esxi/esxi70`, `esxi/esxi80`, `almalinux/almalinux8`, `rockylinux/rockylinux8`, `almalinux/almalinux9`, `rockylinux/rockylinux9`, `debian/bullseye`, `debian/bookworm`, `proxmox/bullseye`, `proxmox/proxmox8`, `netris/controller`, `netris/softgate_1g`, `netris/softgate_10g` or `netris/softgate_25g`.
|
31
|
+
# The server’s OS ID used when the server was created. Currently this field should be set to either `ubuntu/bionic`, `ubuntu/focal`, `ubuntu/jammy`, `ubuntu/jammy+pytorch`, `ubuntu/noble`, `centos/centos7`, `centos/centos8`, `windows/srv2019std`, `windows/srv2019dc`, `windows/srv2022std`, `windows/srv2022dc`, `esxi/esxi70`, `esxi/esxi80`, `almalinux/almalinux8`, `rockylinux/rockylinux8`, `almalinux/almalinux9`, `rockylinux/rockylinux9`, `virtuozzo/virtuozzo7`, `oraclelinux/oraclelinux9`, `debian/bullseye`, `debian/bookworm`, `proxmox/bullseye`, `proxmox/proxmox8`, `netris/controller`, `netris/softgate_1g`, `netris/softgate_10g` or `netris/softgate_25g`.
|
32
32
|
attr_accessor :os
|
33
33
|
|
34
|
-
# Server type ID. Cannot be changed once a server is created. Currently this field should be set to either `s0.d1.small`, `s0.d1.medium`, `s1.c1.small`, `s1.c1.medium`, `s1.c2.medium`, `s1.c2.large`, `s1.e1.small`, `s1.e1.medium`, `s1.e1.large`, `s2.c1.small`, `s2.c1.medium`, `s2.c1.large`, `s2.c2.small`, `s2.c2.medium`, `s2.c2.large`, `d1.c1.small`, `d1.c2.small`, `d1.c3.small`, `d1.c4.small`, `d1.c1.medium`, `d1.c2.medium`, `d1.c3.medium`, `d1.c4.medium`, `d1.c1.large`, `d1.c2.large`, `d1.c3.large`, `d1.c4.large`, `d1.m1.medium`, `d1.m2.medium`, `d1.m3.medium`, `d1.m4.medium`, `d2.c1.medium`, `d2.c2.medium`, `d2.c3.medium`, `d2.c4.medium`, `d2.c5.medium`, `d2.c1.large`, `d2.c2.large`, `d2.c3.large`, `d2.c4.large`, `d2.c5.large`, `d2.m1.xlarge`, `d2.m2.xxlarge`, `d2.m3.xlarge`, `d2.m4.xlarge`, `d2.m5.xlarge`, `d2.c4.db1.pliops1`, `d3.m4.xlarge`, `d3.m5.xlarge`, `d3.m6.xlarge`, `a1.c5.large`, `d3.s5.xlarge`, `d3.m4.xxlarge`, `d3.m5.xxlarge`, `d3.m6.xxlarge`, `s3.c3.medium`, `s3.c3.large`, `d3.c4.medium`, `d3.c5.medium`
|
34
|
+
# Server type ID. Cannot be changed once a server is created. Currently this field should be set to either `s0.d1.small`, `s0.d1.medium`, `s1.c1.small`, `s1.c1.medium`, `s1.c2.medium`, `s1.c2.large`, `s1.e1.small`, `s1.e1.medium`, `s1.e1.large`, `s2.c1.small`, `s2.c1.medium`, `s2.c1.large`, `s2.c2.small`, `s2.c2.medium`, `s2.c2.large`, `d1.c1.small`, `d1.c2.small`, `d1.c3.small`, `d1.c4.small`, `d1.c1.medium`, `d1.c2.medium`, `d1.c3.medium`, `d1.c4.medium`, `d1.c1.large`, `d1.c2.large`, `d1.c3.large`, `d1.c4.large`, `d1.m1.medium`, `d1.m2.medium`, `d1.m3.medium`, `d1.m4.medium`, `d2.c1.medium`, `d2.c2.medium`, `d2.c3.medium`, `d2.c4.medium`, `d2.c5.medium`, `d2.c1.large`, `d2.c2.large`, `d2.c3.large`, `d2.c4.large`, `d2.c5.large`, `d2.m1.xlarge`, `d2.m2.xxlarge`, `d2.m3.xlarge`, `d2.m4.xlarge`, `d2.m5.xlarge`, `d2.c4.db1.pliops1`, `d3.m4.xlarge`, `d3.m5.xlarge`, `d3.m6.xlarge`, `a1.c5.large`, `a1.c5.xlarge`, `d3.s5.xlarge`, `d3.m4.xxlarge`, `d3.m5.xxlarge`, `d3.m6.xxlarge`, `s3.c3.medium`, `s3.c3.large`, `d3.c4.medium`, `d3.c5.medium`, `d3.c6.medium`, `d3.c1.large`, `d3.c2.large`, `d3.c3.large`, `d3.m1.xlarge`, `d3.m2.xlarge`, `d3.m3.xlarge`, `d3.g2.c1.xlarge`, `d3.g2.c2.xlarge`, `d3.g2.c3.xlarge`, s4.x6.c6.large or s4.x6.m6.xlarge.
|
35
35
|
attr_accessor :type
|
36
36
|
|
37
37
|
# Server location ID. Cannot be changed once a server is created. Currently this field should be set to `PHX`, `ASH`, `SGP`, `NLD`, `CHI`, `SEA` or `AUS`.
|
@@ -88,6 +88,8 @@ module BmcApi
|
|
88
88
|
|
89
89
|
attr_accessor :storage_configuration
|
90
90
|
|
91
|
+
attr_accessor :gpu_configuration
|
92
|
+
|
91
93
|
# Unique identifier of the server to which the reservation has been transferred.
|
92
94
|
attr_accessor :superseded_by
|
93
95
|
|
@@ -122,6 +124,7 @@ module BmcApi
|
|
122
124
|
:'os_configuration' => :'osConfiguration',
|
123
125
|
:'network_configuration' => :'networkConfiguration',
|
124
126
|
:'storage_configuration' => :'storageConfiguration',
|
127
|
+
:'gpu_configuration' => :'gpuConfiguration',
|
125
128
|
:'superseded_by' => :'supersededBy',
|
126
129
|
:'supersedes' => :'supersedes'
|
127
130
|
}
|
@@ -160,6 +163,7 @@ module BmcApi
|
|
160
163
|
:'os_configuration' => :'OsConfiguration',
|
161
164
|
:'network_configuration' => :'NetworkConfiguration',
|
162
165
|
:'storage_configuration' => :'StorageConfiguration',
|
166
|
+
:'gpu_configuration' => :'GpuConfiguration',
|
163
167
|
:'superseded_by' => :'String',
|
164
168
|
:'supersedes' => :'String'
|
165
169
|
}
|
@@ -324,6 +328,10 @@ module BmcApi
|
|
324
328
|
self.storage_configuration = nil
|
325
329
|
end
|
326
330
|
|
331
|
+
if attributes.key?(:'gpu_configuration')
|
332
|
+
self.gpu_configuration = attributes[:'gpu_configuration']
|
333
|
+
end
|
334
|
+
|
327
335
|
if attributes.key?(:'superseded_by')
|
328
336
|
self.superseded_by = attributes[:'superseded_by']
|
329
337
|
end
|
@@ -606,6 +614,7 @@ module BmcApi
|
|
606
614
|
os_configuration == o.os_configuration &&
|
607
615
|
network_configuration == o.network_configuration &&
|
608
616
|
storage_configuration == o.storage_configuration &&
|
617
|
+
gpu_configuration == o.gpu_configuration &&
|
609
618
|
superseded_by == o.superseded_by &&
|
610
619
|
supersedes == o.supersedes
|
611
620
|
end
|
@@ -619,7 +628,7 @@ module BmcApi
|
|
619
628
|
# Calculates hash code according to all attributes.
|
620
629
|
# @return [Integer] Hash code
|
621
630
|
def hash
|
622
|
-
[id, status, hostname, description, os, type, location, cpu, cpu_count, cores_per_cpu, cpu_frequency, ram, storage, private_ip_addresses, public_ip_addresses, reservation_id, pricing_model, password, network_type, cluster_id, tags, provisioned_on, os_configuration, network_configuration, storage_configuration, superseded_by, supersedes].hash
|
631
|
+
[id, status, hostname, description, os, type, location, cpu, cpu_count, cores_per_cpu, cpu_frequency, ram, storage, private_ip_addresses, public_ip_addresses, reservation_id, pricing_model, password, network_type, cluster_id, tags, provisioned_on, os_configuration, network_configuration, storage_configuration, gpu_configuration, superseded_by, supersedes].hash
|
623
632
|
end
|
624
633
|
|
625
634
|
# Builds the object from hash
|
@@ -22,10 +22,10 @@ module BmcApi
|
|
22
22
|
# Description of server.
|
23
23
|
attr_accessor :description
|
24
24
|
|
25
|
-
# The server’s OS ID used when the server was created. Currently this field should be set to either `ubuntu/bionic`, `ubuntu/focal`, `ubuntu/jammy`, `centos/centos7`, `centos/centos8`, `windows/srv2019std`, `windows/srv2019dc`, `windows/srv2022std`, `windows/srv2022dc`, `esxi/esxi70`, `esxi/esxi80`, `almalinux/almalinux8`, `rockylinux/rockylinux8`, `almalinux/almalinux9`, `rockylinux/rockylinux9`, `virtuozzo/virtuozzo7`, `debian/bullseye`, `debian/bookworm`, `proxmox/bullseye`, `proxmox/proxmox8`, `netris/controller`, `netris/softgate_1g`, `netris/softgate_10g` or `netris/softgate_25g`.
|
25
|
+
# The server’s OS ID used when the server was created. Currently this field should be set to either `ubuntu/bionic`, `ubuntu/focal`, `ubuntu/jammy`, `ubuntu/jammy+pytorch`, `ubuntu/noble`, `centos/centos7`, `centos/centos8`, `windows/srv2019std`, `windows/srv2019dc`, `windows/srv2022std`, `windows/srv2022dc`, `esxi/esxi70`, `esxi/esxi80`, `almalinux/almalinux8`, `rockylinux/rockylinux8`, `almalinux/almalinux9`, `rockylinux/rockylinux9`, `virtuozzo/virtuozzo7`, `oraclelinux/oraclelinux9`, `debian/bullseye`, `debian/bookworm`, `proxmox/bullseye`, `proxmox/proxmox8`, `netris/controller`, `netris/softgate_1g`, `netris/softgate_10g` or `netris/softgate_25g`.
|
26
26
|
attr_accessor :os
|
27
27
|
|
28
|
-
# Server type ID. Cannot be changed once a server is created. Currently this field should be set to either `s0.d1.small`, `s0.d1.medium`, `s1.c1.small`, `s1.c1.medium`, `s1.c2.medium`, `s1.c2.large`, `s1.e1.small`, `s1.e1.medium`, `s1.e1.large`, `s2.c1.small`, `s2.c1.medium`, `s2.c1.large`, `s2.c2.small`, `s2.c2.medium`, `s2.c2.large`, `d1.c1.small`, `d1.c2.small`, `d1.c3.small`, `d1.c4.small`, `d1.c1.medium`, `d1.c2.medium`, `d1.c3.medium`, `d1.c4.medium`, `d1.c1.large`, `d1.c2.large`, `d1.c3.large`, `d1.c4.large`, `d1.m1.medium`, `d1.m2.medium`, `d1.m3.medium`, `d1.m4.medium`, `d2.c1.medium`, `d2.c2.medium`, `d2.c3.medium`, `d2.c4.medium`, `d2.c5.medium`, `d2.c1.large`, `d2.c2.large`, `d2.c3.large`, `d2.c4.large`, `d2.c5.large`, `d2.m1.xlarge`, `d2.m2.xxlarge`, `d2.m3.xlarge`, `d2.m4.xlarge`, `d2.m5.xlarge`, `d2.c4.db1.pliops1`, `d3.m4.xlarge`, `d3.m5.xlarge`, `d3.m6.xlarge`, `a1.c5.large`, `d3.s5.xlarge`, `d3.m4.xxlarge`, `d3.m5.xxlarge`, `d3.m6.xxlarge`, `s3.c3.medium`, `s3.c3.large`, `d3.c4.medium`, `d3.c5.medium`
|
28
|
+
# Server type ID. Cannot be changed once a server is created. Currently this field should be set to either `s0.d1.small`, `s0.d1.medium`, `s1.c1.small`, `s1.c1.medium`, `s1.c2.medium`, `s1.c2.large`, `s1.e1.small`, `s1.e1.medium`, `s1.e1.large`, `s2.c1.small`, `s2.c1.medium`, `s2.c1.large`, `s2.c2.small`, `s2.c2.medium`, `s2.c2.large`, `d1.c1.small`, `d1.c2.small`, `d1.c3.small`, `d1.c4.small`, `d1.c1.medium`, `d1.c2.medium`, `d1.c3.medium`, `d1.c4.medium`, `d1.c1.large`, `d1.c2.large`, `d1.c3.large`, `d1.c4.large`, `d1.m1.medium`, `d1.m2.medium`, `d1.m3.medium`, `d1.m4.medium`, `d2.c1.medium`, `d2.c2.medium`, `d2.c3.medium`, `d2.c4.medium`, `d2.c5.medium`, `d2.c1.large`, `d2.c2.large`, `d2.c3.large`, `d2.c4.large`, `d2.c5.large`, `d2.m1.xlarge`, `d2.m2.xxlarge`, `d2.m3.xlarge`, `d2.m4.xlarge`, `d2.m5.xlarge`, `d2.c4.db1.pliops1`, `d3.m4.xlarge`, `d3.m5.xlarge`, `d3.m6.xlarge`, `a1.c5.large`, `a1.c5.xlarge`, `d3.s5.xlarge`, `d3.m4.xxlarge`, `d3.m5.xxlarge`, `d3.m6.xxlarge`, `s3.c3.medium`, `s3.c3.large`, `d3.c4.medium`, `d3.c5.medium`, `d3.c6.medium`, `d3.c1.large`, `d3.c2.large`, `d3.c3.large`, `d3.m1.xlarge`, `d3.m2.xlarge`, `d3.m3.xlarge`, `d3.g2.c1.xlarge`, `d3.g2.c2.xlarge`, `d3.g2.c3.xlarge`, s4.x6.c6.large or s4.x6.m6.xlarge.
|
29
29
|
attr_accessor :type
|
30
30
|
|
31
31
|
# Server location ID. Cannot be changed once a server is created. Currently this field should be set to `PHX`, `ASH`, `SGP`, `NLD`, `CHI`, `SEA` or `AUS`.
|
@@ -16,7 +16,7 @@ require 'time'
|
|
16
16
|
module BmcApi
|
17
17
|
# Update network details of bare metal server.
|
18
18
|
class ServerNetworkUpdate
|
19
|
-
# List of IPs to be associated to the server.<br> Valid IP formats
|
19
|
+
# List of IPs to be associated to the server.<br> Valid IP formats include single IP addresses or IP ranges (IPv4 or IPv6). IPs must be within the network's range.<br> Setting the `force` query parameter to `true` allows you to:<ul> <li> Assign no specific IP addresses by designating an empty array of IPs. <li> Assign one or more IP addresses which are already configured on other resource(s) in network. <li> Assign IP addresses which are considered as reserved in network.</ul>
|
20
20
|
attr_accessor :ips
|
21
21
|
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -22,7 +22,7 @@ module BmcApi
|
|
22
22
|
# Description of server.
|
23
23
|
attr_accessor :description
|
24
24
|
|
25
|
-
# The server’s OS ID used when the server was created. Currently this field should be set to either `ubuntu/bionic`, `ubuntu/focal`, `ubuntu/jammy`, `centos/centos7`, `centos/centos8`, `windows/srv2019std`, `windows/srv2019dc`, `windows/srv2022std`, `windows/srv2022dc`, `esxi/esxi70`, `esxi/esxi80`, `almalinux/almalinux8`, `rockylinux/rockylinux8`, `debian/bullseye`, `debian/bookworm`, `proxmox/bullseye`, `proxmox/proxmox8`, `netris/controller`, `netris/softgate_1g`, `netris/softgate_10g` or `netris/softgate_25g`.
|
25
|
+
# The server’s OS ID used when the server was created. Currently this field should be set to either `ubuntu/bionic`, `ubuntu/focal`, `ubuntu/jammy`, `ubuntu/jammy+pytorch`, `ubuntu/noble`, `centos/centos7`, `centos/centos8`, `windows/srv2019std`, `windows/srv2019dc`, `windows/srv2022std`, `windows/srv2022dc`, `esxi/esxi70`, `esxi/esxi80`, `almalinux/almalinux8`, `almalinux/almalinux9`, `rockylinux/rockylinux8`, `rockylinux/rockylinux9`, `virtuozzo/virtuozzo7`, `oraclelinux/oraclelinux9`, `debian/bullseye`, `debian/bookworm`, `proxmox/bullseye`, `proxmox/proxmox8`, `netris/controller`, `netris/softgate_1g`, `netris/softgate_10g` or `netris/softgate_25g`.
|
26
26
|
attr_accessor :os
|
27
27
|
|
28
28
|
# Whether or not to install SSH keys marked as default in addition to any SSH keys specified in this request.
|
@@ -19,18 +19,22 @@ module BmcApi
|
|
19
19
|
# The network identifier.
|
20
20
|
attr_accessor :id
|
21
21
|
|
22
|
-
# Configurable/configured IPs on the server.<br> At least 1 IP address is required. Valid IP
|
22
|
+
# Configurable/configured IPs on the server.<br> At least 1 IP address is required. Valid IP format is single IP addresses. All IPs must be within the network's range.<br> Setting the `computeSlaacIp` field to `true` allows you to provide an empty array of IPs.<br> Additionally, setting the `force` query parameter to `true` allows you to:<ul> <li> Assign no specific IP addresses by designating an empty array of IPs. Note that at least one IP is required for the gateway address to be selected from this network. <li> Assign one or more IP addresses which are already configured on other resource(s) in network.</ul>
|
23
23
|
attr_accessor :ips
|
24
24
|
|
25
25
|
# (Read-only) The status of the assignment to the network.
|
26
26
|
attr_accessor :status_description
|
27
27
|
|
28
|
+
# (Write-only) Requests Stateless Address Autoconfiguration (SLAAC). Applicable for Network which contains IPv6 block(s).
|
29
|
+
attr_accessor :compute_slaac_ip
|
30
|
+
|
28
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
32
|
def self.attribute_map
|
30
33
|
{
|
31
34
|
:'id' => :'id',
|
32
35
|
:'ips' => :'ips',
|
33
|
-
:'status_description' => :'statusDescription'
|
36
|
+
:'status_description' => :'statusDescription',
|
37
|
+
:'compute_slaac_ip' => :'computeSlaacIp'
|
34
38
|
}
|
35
39
|
end
|
36
40
|
|
@@ -44,7 +48,8 @@ module BmcApi
|
|
44
48
|
{
|
45
49
|
:'id' => :'String',
|
46
50
|
:'ips' => :'Array<String>',
|
47
|
-
:'status_description' => :'String'
|
51
|
+
:'status_description' => :'String',
|
52
|
+
:'compute_slaac_ip' => :'Boolean'
|
48
53
|
}
|
49
54
|
end
|
50
55
|
|
@@ -84,6 +89,10 @@ module BmcApi
|
|
84
89
|
if attributes.key?(:'status_description')
|
85
90
|
self.status_description = attributes[:'status_description']
|
86
91
|
end
|
92
|
+
|
93
|
+
if attributes.key?(:'compute_slaac_ip')
|
94
|
+
self.compute_slaac_ip = attributes[:'compute_slaac_ip']
|
95
|
+
end
|
87
96
|
end
|
88
97
|
|
89
98
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -113,7 +122,8 @@ module BmcApi
|
|
113
122
|
self.class == o.class &&
|
114
123
|
id == o.id &&
|
115
124
|
ips == o.ips &&
|
116
|
-
status_description == o.status_description
|
125
|
+
status_description == o.status_description &&
|
126
|
+
compute_slaac_ip == o.compute_slaac_ip
|
117
127
|
end
|
118
128
|
|
119
129
|
# @see the `==` method
|
@@ -125,7 +135,7 @@ module BmcApi
|
|
125
135
|
# Calculates hash code according to all attributes.
|
126
136
|
# @return [Integer] Hash code
|
127
137
|
def hash
|
128
|
-
[id, ips, status_description].hash
|
138
|
+
[id, ips, status_description, compute_slaac_ip].hash
|
129
139
|
end
|
130
140
|
|
131
141
|
# Builds the object from hash
|
data/lib/pnap_bmc_api.rb
CHANGED
@@ -23,6 +23,7 @@ require 'pnap_bmc_api/models/delete_ssh_key_result'
|
|
23
23
|
require 'pnap_bmc_api/models/error'
|
24
24
|
require 'pnap_bmc_api/models/esxi_datastore_configuration'
|
25
25
|
require 'pnap_bmc_api/models/esxi_os_configuration'
|
26
|
+
require 'pnap_bmc_api/models/gpu_configuration'
|
26
27
|
require 'pnap_bmc_api/models/ip_blocks_configuration'
|
27
28
|
require 'pnap_bmc_api/models/network_configuration'
|
28
29
|
require 'pnap_bmc_api/models/os_configuration'
|
@@ -211,7 +211,7 @@ describe 'ServersApi' do
|
|
211
211
|
|
212
212
|
# unit tests for servers_server_id_ip_blocks_post
|
213
213
|
# Assign IP Block to Server.
|
214
|
-
# Adds an IP block to this server. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/configure-server-with-public-ip-block#ftoc-heading-2' target='_blank'>here</a>.
|
214
|
+
# Adds an IP block to this server. <b>No actual configuration is performed on the operating system.</b> BMC configures exclusively the networking devices in the datacenter infrastructure. Manual network configuration changes in the operating system of this server are required. A server can have at most one IPv4 block and one IPv6 block assigned simultaneously. Assigning IPv6 to server is only supported post-provision. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/configure-server-with-public-ip-block#ftoc-heading-2' target='_blank'>here</a>.
|
215
215
|
# @param server_id The server's ID.
|
216
216
|
# @param server_ip_block
|
217
217
|
# @param [Hash] opts the optional parameters
|
@@ -0,0 +1,42 @@
|
|
1
|
+
=begin
|
2
|
+
#Bare Metal Cloud API
|
3
|
+
|
4
|
+
#Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API. Deprovision servers, get or edit SSH key details, assign public IPs, assign servers to networks and a lot more. Manage your infrastructure more efficiently using just a few simple API calls.<br> <br> <span class='pnap-api-knowledge-base-link'> Knowledge base articles to help you can be found <a href='https://phoenixnap.com/kb/how-to-deploy-bare-metal-cloud-server' target='_blank'>here</a> </span><br> <br> <b>All URLs are relative to (https://api.phoenixnap.com/bmc/v1/)</b>
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.1
|
7
|
+
Contact: support@phoenixnap.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for BmcApi::GpuConfiguration
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe BmcApi::GpuConfiguration do
|
21
|
+
let(:instance) { BmcApi::GpuConfiguration.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GpuConfiguration' do
|
24
|
+
it 'should create an instance of GpuConfiguration' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(BmcApi::GpuConfiguration)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "long_name"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "count"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
data/spec/models/server_spec.rb
CHANGED
@@ -177,6 +177,12 @@ describe BmcApi::Server do
|
|
177
177
|
end
|
178
178
|
end
|
179
179
|
|
180
|
+
describe 'test attribute "gpu_configuration"' do
|
181
|
+
it 'should work' do
|
182
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
180
186
|
describe 'test attribute "superseded_by"' do
|
181
187
|
it 'should work' do
|
182
188
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pnap_bmc_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PhoenixNAP
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -67,6 +67,7 @@ files:
|
|
67
67
|
- docs/Error.md
|
68
68
|
- docs/EsxiDatastoreConfiguration.md
|
69
69
|
- docs/EsxiOsConfiguration.md
|
70
|
+
- docs/GpuConfiguration.md
|
70
71
|
- docs/IpBlocksConfiguration.md
|
71
72
|
- docs/NetworkConfiguration.md
|
72
73
|
- docs/OsConfiguration.md
|
@@ -117,6 +118,7 @@ files:
|
|
117
118
|
- lib/pnap_bmc_api/models/error.rb
|
118
119
|
- lib/pnap_bmc_api/models/esxi_datastore_configuration.rb
|
119
120
|
- lib/pnap_bmc_api/models/esxi_os_configuration.rb
|
121
|
+
- lib/pnap_bmc_api/models/gpu_configuration.rb
|
120
122
|
- lib/pnap_bmc_api/models/ip_blocks_configuration.rb
|
121
123
|
- lib/pnap_bmc_api/models/network_configuration.rb
|
122
124
|
- lib/pnap_bmc_api/models/os_configuration.rb
|
@@ -162,6 +164,7 @@ files:
|
|
162
164
|
- spec/models/error_spec.rb
|
163
165
|
- spec/models/esxi_datastore_configuration_spec.rb
|
164
166
|
- spec/models/esxi_os_configuration_spec.rb
|
167
|
+
- spec/models/gpu_configuration_spec.rb
|
165
168
|
- spec/models/ip_blocks_configuration_spec.rb
|
166
169
|
- spec/models/network_configuration_spec.rb
|
167
170
|
- spec/models/os_configuration_cloud_init_spec.rb
|
@@ -202,7 +205,7 @@ licenses:
|
|
202
205
|
- MPL-2.0
|
203
206
|
metadata:
|
204
207
|
source_code_uri: https://github.com/phoenixnap/ruby-sdk-bmc
|
205
|
-
post_install_message:
|
208
|
+
post_install_message:
|
206
209
|
rdoc_options: []
|
207
210
|
require_paths:
|
208
211
|
- lib
|
@@ -217,52 +220,53 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
220
|
- !ruby/object:Gem::Version
|
218
221
|
version: '0'
|
219
222
|
requirements: []
|
220
|
-
rubygems_version: 3.
|
221
|
-
signing_key:
|
223
|
+
rubygems_version: 3.4.20
|
224
|
+
signing_key:
|
222
225
|
specification_version: 4
|
223
226
|
summary: Bare Metal Cloud API Ruby Gem
|
224
227
|
test_files:
|
228
|
+
- spec/api/quotas_api_spec.rb
|
225
229
|
- spec/api/servers_api_spec.rb
|
226
230
|
- spec/api/ssh_keys_api_spec.rb
|
227
|
-
- spec/
|
228
|
-
- spec/models/
|
229
|
-
- spec/models/os_configuration_map_esxi_spec.rb
|
230
|
-
- spec/models/quota_edit_limit_request_details_spec.rb
|
231
|
-
- spec/models/quota_spec.rb
|
232
|
-
- spec/models/ssh_key_update_spec.rb
|
233
|
-
- spec/models/ssh_key_create_spec.rb
|
234
|
-
- spec/models/os_configuration_cloud_init_spec.rb
|
235
|
-
- spec/models/ip_blocks_configuration_spec.rb
|
231
|
+
- spec/models/private_network_configuration_spec.rb
|
232
|
+
- spec/models/os_configuration_spec.rb
|
236
233
|
- spec/models/error_spec.rb
|
237
|
-
- spec/models/
|
234
|
+
- spec/models/ssh_key_create_spec.rb
|
235
|
+
- spec/models/server_public_network_spec.rb
|
236
|
+
- spec/models/quota_edit_limit_request_spec.rb
|
238
237
|
- spec/models/tag_assignment_request_spec.rb
|
239
|
-
- spec/models/
|
240
|
-
- spec/models/
|
241
|
-
- spec/models/storage_configuration_root_partition_spec.rb
|
242
|
-
- spec/models/os_configuration_map_proxmox_spec.rb
|
243
|
-
- spec/models/private_network_configuration_spec.rb
|
244
|
-
- spec/models/os_configuration_windows_spec.rb
|
245
|
-
- spec/models/esxi_os_configuration_spec.rb
|
246
|
-
- spec/models/os_configuration_map_spec.rb
|
247
|
-
- spec/models/server_patch_spec.rb
|
248
|
-
- spec/models/server_spec.rb
|
238
|
+
- spec/models/delete_ssh_key_result_spec.rb
|
239
|
+
- spec/models/ssh_key_spec.rb
|
249
240
|
- spec/models/server_reserve_spec.rb
|
250
|
-
- spec/models/
|
251
|
-
- spec/models/
|
252
|
-
- spec/models/server_reset_spec.rb
|
253
|
-
- spec/models/server_provision_spec.rb
|
241
|
+
- spec/models/server_ip_block_spec.rb
|
242
|
+
- spec/models/gpu_configuration_spec.rb
|
254
243
|
- spec/models/relinquish_ip_block_spec.rb
|
255
|
-
- spec/models/
|
256
|
-
- spec/models/
|
244
|
+
- spec/models/quota_spec.rb
|
245
|
+
- spec/models/server_reset_spec.rb
|
246
|
+
- spec/models/storage_configuration_root_partition_spec.rb
|
247
|
+
- spec/models/server_patch_spec.rb
|
248
|
+
- spec/models/storage_configuration_spec.rb
|
249
|
+
- spec/models/os_configuration_map_spec.rb
|
250
|
+
- spec/models/ssh_key_update_spec.rb
|
251
|
+
- spec/models/public_network_configuration_spec.rb
|
252
|
+
- spec/models/os_configuration_windows_spec.rb
|
257
253
|
- spec/models/tag_assignment_spec.rb
|
254
|
+
- spec/models/os_configuration_map_esxi_spec.rb
|
255
|
+
- spec/models/action_result_spec.rb
|
256
|
+
- spec/models/reset_result_spec.rb
|
258
257
|
- spec/models/os_configuration_netris_controller_spec.rb
|
259
|
-
- spec/models/
|
258
|
+
- spec/models/server_create_spec.rb
|
259
|
+
- spec/models/server_private_network_spec.rb
|
260
|
+
- spec/models/ip_blocks_configuration_spec.rb
|
261
|
+
- spec/models/esxi_os_configuration_spec.rb
|
260
262
|
- spec/models/delete_result_spec.rb
|
261
|
-
- spec/models/os_configuration_spec.rb
|
262
263
|
- spec/models/esxi_datastore_configuration_spec.rb
|
263
|
-
- spec/models/
|
264
|
-
- spec/models/
|
265
|
-
- spec/models/
|
266
|
-
- spec/models/
|
267
|
-
- spec/models/
|
264
|
+
- spec/models/server_spec.rb
|
265
|
+
- spec/models/os_configuration_map_proxmox_spec.rb
|
266
|
+
- spec/models/server_provision_spec.rb
|
267
|
+
- spec/models/server_network_update_spec.rb
|
268
|
+
- spec/models/network_configuration_spec.rb
|
269
|
+
- spec/models/os_configuration_netris_softgate_spec.rb
|
270
|
+
- spec/models/quota_edit_limit_request_details_spec.rb
|
271
|
+
- spec/models/os_configuration_cloud_init_spec.rb
|
268
272
|
- spec/spec_helper.rb
|