pnap_bmc_api 1.5.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/VERSION +1 -1
- data/docs/DeleteResult.md +1 -1
- data/docs/OsConfigurationCloudInit.md +1 -1
- data/docs/QuotasApi.md +6 -8
- data/docs/SSHKeysApi.md +12 -16
- data/docs/Server.md +11 -7
- data/docs/ServerCreate.md +3 -3
- data/docs/ServerNetworkUpdate.md +2 -2
- data/docs/ServerPrivateNetwork.md +3 -3
- data/docs/ServerProvision.md +38 -0
- data/docs/ServerPublicNetwork.md +2 -2
- data/docs/ServersApi.md +173 -111
- data/docs/StorageConfigurationRootPartition.md +2 -2
- data/lib/pnap_bmc_api/api/quotas_api.rb +11 -7
- data/lib/pnap_bmc_api/api/servers_api.rb +200 -75
- data/lib/pnap_bmc_api/api/ssh_keys_api.rb +21 -13
- data/lib/pnap_bmc_api/api_client.rb +24 -21
- data/lib/pnap_bmc_api/api_error.rb +2 -1
- data/lib/pnap_bmc_api/configuration.rb +28 -9
- data/lib/pnap_bmc_api/models/action_result.rb +16 -19
- data/lib/pnap_bmc_api/models/delete_result.rb +18 -19
- data/lib/pnap_bmc_api/models/delete_ssh_key_result.rb +18 -19
- data/lib/pnap_bmc_api/models/error.rb +16 -19
- data/lib/pnap_bmc_api/models/ip_blocks_configuration.rb +19 -20
- data/lib/pnap_bmc_api/models/network_configuration.rb +14 -19
- data/lib/pnap_bmc_api/models/os_configuration.rb +19 -20
- data/lib/pnap_bmc_api/models/os_configuration_cloud_init.rb +15 -20
- data/lib/pnap_bmc_api/models/os_configuration_map.rb +14 -19
- data/lib/pnap_bmc_api/models/os_configuration_map_esxi.rb +19 -20
- data/lib/pnap_bmc_api/models/os_configuration_map_proxmox.rb +19 -20
- data/lib/pnap_bmc_api/models/os_configuration_netris_controller.rb +14 -19
- data/lib/pnap_bmc_api/models/os_configuration_netris_softgate.rb +25 -22
- data/lib/pnap_bmc_api/models/os_configuration_windows.rb +19 -20
- data/lib/pnap_bmc_api/models/private_network_configuration.rb +14 -19
- data/lib/pnap_bmc_api/models/public_network_configuration.rb +14 -19
- data/lib/pnap_bmc_api/models/quota.rb +30 -19
- data/lib/pnap_bmc_api/models/quota_edit_limit_request.rb +39 -19
- data/lib/pnap_bmc_api/models/quota_edit_limit_request_details.rb +42 -21
- data/lib/pnap_bmc_api/models/relinquish_ip_block.rb +14 -19
- data/lib/pnap_bmc_api/models/reset_result.rb +16 -19
- data/lib/pnap_bmc_api/models/server.rb +79 -33
- data/lib/pnap_bmc_api/models/server_create.rb +29 -22
- data/lib/pnap_bmc_api/models/server_ip_block.rb +16 -19
- data/lib/pnap_bmc_api/models/server_network_update.rb +15 -20
- data/lib/pnap_bmc_api/models/server_patch.rb +27 -24
- data/lib/pnap_bmc_api/models/server_private_network.rb +23 -22
- data/lib/pnap_bmc_api/models/server_provision.rb +395 -0
- data/lib/pnap_bmc_api/models/server_public_network.rb +17 -20
- data/lib/pnap_bmc_api/models/server_reserve.rb +16 -19
- data/lib/pnap_bmc_api/models/server_reset.rb +14 -19
- data/lib/pnap_bmc_api/models/ssh_key.rb +28 -19
- data/lib/pnap_bmc_api/models/ssh_key_create.rb +52 -19
- data/lib/pnap_bmc_api/models/ssh_key_update.rb +29 -19
- data/lib/pnap_bmc_api/models/storage_configuration.rb +14 -19
- data/lib/pnap_bmc_api/models/storage_configuration_root_partition.rb +14 -19
- data/lib/pnap_bmc_api/models/tag_assignment.rb +20 -19
- data/lib/pnap_bmc_api/models/tag_assignment_request.rb +16 -19
- data/lib/pnap_bmc_api/version.rb +1 -1
- data/lib/pnap_bmc_api.rb +2 -2
- data/pnap_bmc_api.gemspec +2 -2
- data/spec/api/quotas_api_spec.rb +6 -6
- data/spec/api/servers_api_spec.rb +109 -36
- data/spec/api/ssh_keys_api_spec.rb +9 -9
- data/spec/models/action_result_spec.rb +6 -4
- data/spec/models/delete_result_spec.rb +7 -5
- data/spec/models/delete_ssh_key_result_spec.rb +7 -5
- data/spec/models/error_spec.rb +7 -5
- data/spec/models/ip_blocks_configuration_spec.rb +7 -5
- data/spec/models/network_configuration_spec.rb +19 -5
- data/spec/models/os_configuration_cloud_init_spec.rb +5 -3
- data/spec/models/os_configuration_map_esxi_spec.rb +8 -6
- data/spec/models/os_configuration_map_proxmox_spec.rb +8 -6
- data/spec/models/os_configuration_map_spec.rb +8 -6
- data/spec/models/os_configuration_netris_controller_spec.rb +7 -5
- data/spec/models/os_configuration_netris_softgate_spec.rb +8 -6
- data/spec/models/os_configuration_spec.rb +33 -7
- data/spec/models/os_configuration_windows_spec.rb +6 -4
- data/spec/models/private_network_configuration_spec.rb +8 -6
- data/spec/models/public_network_configuration_spec.rb +6 -4
- data/spec/models/quota_edit_limit_request_details_spec.rb +8 -6
- data/spec/models/quota_edit_limit_request_spec.rb +7 -5
- data/spec/models/quota_spec.rb +13 -15
- data/spec/models/relinquish_ip_block_spec.rb +6 -4
- data/spec/models/reset_result_spec.rb +8 -6
- data/spec/models/server_create_spec.rb +25 -17
- data/spec/models/server_ip_block_spec.rb +7 -5
- data/spec/models/server_network_update_spec.rb +5 -3
- data/spec/models/server_patch_spec.rb +7 -5
- data/spec/models/server_private_network_spec.rb +9 -7
- data/spec/models/server_provision_spec.rb +96 -0
- data/spec/models/server_public_network_spec.rb +8 -6
- data/spec/models/server_reserve_spec.rb +6 -4
- data/spec/models/server_reset_spec.rb +9 -7
- data/spec/models/server_spec.rb +47 -27
- data/spec/models/ssh_key_create_spec.rb +8 -6
- data/spec/models/ssh_key_spec.rb +12 -10
- data/spec/models/ssh_key_update_spec.rb +7 -5
- data/spec/models/storage_configuration_root_partition_spec.rb +6 -4
- data/spec/models/storage_configuration_spec.rb +5 -3
- data/spec/models/tag_assignment_request_spec.rb +7 -5
- data/spec/models/tag_assignment_spec.rb +10 -8
- data/spec/spec_helper.rb +1 -1
- metadata +38 -42
- data/docs/QuotaEditLimitRequestDetailsAllOf.md +0 -18
- data/lib/pnap_bmc_api/models/quota_edit_limit_request_details_all_of.rb +0 -226
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/quota_edit_limit_request_details_all_of_spec.rb +0 -34
data/spec/models/server_spec.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Bare Metal Cloud API
|
3
3
|
|
4
|
-
#Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API.
|
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
5
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,150 +22,170 @@ describe BmcApi::Server do
|
|
22
22
|
|
23
23
|
describe 'test an instance of Server' do
|
24
24
|
it 'should create an instance of Server' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(BmcApi::Server)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "id"' do
|
29
31
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
34
36
|
describe 'test attribute "status"' do
|
35
37
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
40
42
|
describe 'test attribute "hostname"' do
|
41
43
|
it 'should work' do
|
42
|
-
# assertion here. ref: https://
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
45
|
end
|
44
46
|
end
|
45
47
|
|
46
48
|
describe 'test attribute "description"' do
|
47
49
|
it 'should work' do
|
48
|
-
# assertion here. ref: https://
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
51
|
end
|
50
52
|
end
|
51
53
|
|
52
54
|
describe 'test attribute "os"' do
|
53
55
|
it 'should work' do
|
54
|
-
# assertion here. ref: https://
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
55
57
|
end
|
56
58
|
end
|
57
59
|
|
58
60
|
describe 'test attribute "type"' do
|
59
61
|
it 'should work' do
|
60
|
-
# assertion here. ref: https://
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
61
63
|
end
|
62
64
|
end
|
63
65
|
|
64
66
|
describe 'test attribute "location"' do
|
65
67
|
it 'should work' do
|
66
|
-
# assertion here. ref: https://
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
67
69
|
end
|
68
70
|
end
|
69
71
|
|
70
72
|
describe 'test attribute "cpu"' do
|
71
73
|
it 'should work' do
|
72
|
-
# assertion here. ref: https://
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
73
75
|
end
|
74
76
|
end
|
75
77
|
|
76
78
|
describe 'test attribute "cpu_count"' do
|
77
79
|
it 'should work' do
|
78
|
-
# assertion here. ref: https://
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
79
81
|
end
|
80
82
|
end
|
81
83
|
|
82
84
|
describe 'test attribute "cores_per_cpu"' do
|
83
85
|
it 'should work' do
|
84
|
-
# assertion here. ref: https://
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
85
87
|
end
|
86
88
|
end
|
87
89
|
|
88
90
|
describe 'test attribute "cpu_frequency"' do
|
89
91
|
it 'should work' do
|
90
|
-
# assertion here. ref: https://
|
92
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
91
93
|
end
|
92
94
|
end
|
93
95
|
|
94
96
|
describe 'test attribute "ram"' do
|
95
97
|
it 'should work' do
|
96
|
-
# assertion here. ref: https://
|
98
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
97
99
|
end
|
98
100
|
end
|
99
101
|
|
100
102
|
describe 'test attribute "storage"' do
|
101
103
|
it 'should work' do
|
102
|
-
# assertion here. ref: https://
|
104
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
103
105
|
end
|
104
106
|
end
|
105
107
|
|
106
108
|
describe 'test attribute "private_ip_addresses"' do
|
107
109
|
it 'should work' do
|
108
|
-
# assertion here. ref: https://
|
110
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
109
111
|
end
|
110
112
|
end
|
111
113
|
|
112
114
|
describe 'test attribute "public_ip_addresses"' do
|
113
115
|
it 'should work' do
|
114
|
-
# assertion here. ref: https://
|
116
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
115
117
|
end
|
116
118
|
end
|
117
119
|
|
118
120
|
describe 'test attribute "reservation_id"' do
|
119
121
|
it 'should work' do
|
120
|
-
# assertion here. ref: https://
|
122
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
121
123
|
end
|
122
124
|
end
|
123
125
|
|
124
126
|
describe 'test attribute "pricing_model"' do
|
125
127
|
it 'should work' do
|
126
|
-
# assertion here. ref: https://
|
128
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
127
129
|
end
|
128
130
|
end
|
129
131
|
|
130
132
|
describe 'test attribute "password"' do
|
131
133
|
it 'should work' do
|
132
|
-
# assertion here. ref: https://
|
134
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
133
135
|
end
|
134
136
|
end
|
135
137
|
|
136
138
|
describe 'test attribute "network_type"' do
|
137
139
|
it 'should work' do
|
138
|
-
# assertion here. ref: https://
|
140
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
139
141
|
end
|
140
142
|
end
|
141
143
|
|
142
144
|
describe 'test attribute "cluster_id"' do
|
143
145
|
it 'should work' do
|
144
|
-
# assertion here. ref: https://
|
146
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
145
147
|
end
|
146
148
|
end
|
147
149
|
|
148
150
|
describe 'test attribute "tags"' do
|
149
151
|
it 'should work' do
|
150
|
-
# assertion here. ref: https://
|
152
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
151
153
|
end
|
152
154
|
end
|
153
155
|
|
154
156
|
describe 'test attribute "provisioned_on"' do
|
155
157
|
it 'should work' do
|
156
|
-
# assertion here. ref: https://
|
158
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
157
159
|
end
|
158
160
|
end
|
159
161
|
|
160
162
|
describe 'test attribute "os_configuration"' do
|
161
163
|
it 'should work' do
|
162
|
-
# assertion here. ref: https://
|
164
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
163
165
|
end
|
164
166
|
end
|
165
167
|
|
166
168
|
describe 'test attribute "network_configuration"' do
|
167
169
|
it 'should work' do
|
168
|
-
# assertion here. ref: https://
|
170
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
describe 'test attribute "storage_configuration"' do
|
175
|
+
it 'should work' do
|
176
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
describe 'test attribute "superseded_by"' 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
|
+
|
186
|
+
describe 'test attribute "supersedes"' do
|
187
|
+
it 'should work' do
|
188
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
169
189
|
end
|
170
190
|
end
|
171
191
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Bare Metal Cloud API
|
3
3
|
|
4
|
-
#Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API.
|
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
5
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,24 +22,26 @@ describe BmcApi::SshKeyCreate do
|
|
22
22
|
|
23
23
|
describe 'test an instance of SshKeyCreate' do
|
24
24
|
it 'should create an instance of SshKeyCreate' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(BmcApi::SshKeyCreate)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "default"' do
|
29
31
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
34
36
|
describe 'test attribute "name"' do
|
35
37
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
40
42
|
describe 'test attribute "key"' do
|
41
43
|
it 'should work' do
|
42
|
-
# assertion here. ref: https://
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
45
|
end
|
44
46
|
end
|
45
47
|
|
data/spec/models/ssh_key_spec.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Bare Metal Cloud API
|
3
3
|
|
4
|
-
#Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API.
|
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
5
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,48 +22,50 @@ describe BmcApi::SshKey do
|
|
22
22
|
|
23
23
|
describe 'test an instance of SshKey' do
|
24
24
|
it 'should create an instance of SshKey' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(BmcApi::SshKey)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "id"' do
|
29
31
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
34
36
|
describe 'test attribute "default"' do
|
35
37
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
40
42
|
describe 'test attribute "name"' do
|
41
43
|
it 'should work' do
|
42
|
-
# assertion here. ref: https://
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
45
|
end
|
44
46
|
end
|
45
47
|
|
46
48
|
describe 'test attribute "key"' do
|
47
49
|
it 'should work' do
|
48
|
-
# assertion here. ref: https://
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
51
|
end
|
50
52
|
end
|
51
53
|
|
52
54
|
describe 'test attribute "fingerprint"' do
|
53
55
|
it 'should work' do
|
54
|
-
# assertion here. ref: https://
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
55
57
|
end
|
56
58
|
end
|
57
59
|
|
58
60
|
describe 'test attribute "created_on"' do
|
59
61
|
it 'should work' do
|
60
|
-
# assertion here. ref: https://
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
61
63
|
end
|
62
64
|
end
|
63
65
|
|
64
66
|
describe 'test attribute "last_updated_on"' do
|
65
67
|
it 'should work' do
|
66
|
-
# assertion here. ref: https://
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
67
69
|
end
|
68
70
|
end
|
69
71
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Bare Metal Cloud API
|
3
3
|
|
4
|
-
#Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API.
|
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
5
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,18 +22,20 @@ describe BmcApi::SshKeyUpdate do
|
|
22
22
|
|
23
23
|
describe 'test an instance of SshKeyUpdate' do
|
24
24
|
it 'should create an instance of SshKeyUpdate' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(BmcApi::SshKeyUpdate)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "default"' do
|
29
31
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
34
36
|
describe 'test attribute "name"' do
|
35
37
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,18 +22,20 @@ describe BmcApi::StorageConfigurationRootPartition do
|
|
22
22
|
|
23
23
|
describe 'test an instance of StorageConfigurationRootPartition' do
|
24
24
|
it 'should create an instance of StorageConfigurationRootPartition' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(BmcApi::StorageConfigurationRootPartition)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "raid"' do
|
29
31
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
34
36
|
describe 'test attribute "size"' do
|
35
37
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,12 +22,14 @@ describe BmcApi::StorageConfiguration do
|
|
22
22
|
|
23
23
|
describe 'test an instance of StorageConfiguration' do
|
24
24
|
it 'should create an instance of StorageConfiguration' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(BmcApi::StorageConfiguration)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "root_partition"' do
|
29
31
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Bare Metal Cloud API
|
3
3
|
|
4
|
-
#Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API.
|
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
5
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,18 +22,20 @@ describe BmcApi::TagAssignmentRequest do
|
|
22
22
|
|
23
23
|
describe 'test an instance of TagAssignmentRequest' do
|
24
24
|
it 'should create an instance of TagAssignmentRequest' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(BmcApi::TagAssignmentRequest)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "name"' do
|
29
31
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
34
36
|
describe 'test attribute "value"' do
|
35
37
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Bare Metal Cloud API
|
3
3
|
|
4
|
-
#Create, power off, power on, reset, reboot, or shut down your server with the Bare Metal Cloud API.
|
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
5
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,36 +22,38 @@ describe BmcApi::TagAssignment do
|
|
22
22
|
|
23
23
|
describe 'test an instance of TagAssignment' do
|
24
24
|
it 'should create an instance of TagAssignment' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(BmcApi::TagAssignment)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "id"' do
|
29
31
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
34
36
|
describe 'test attribute "name"' do
|
35
37
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
40
42
|
describe 'test attribute "value"' do
|
41
43
|
it 'should work' do
|
42
|
-
# assertion here. ref: https://
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
45
|
end
|
44
46
|
end
|
45
47
|
|
46
48
|
describe 'test attribute "is_billing_tag"' do
|
47
49
|
it 'should work' do
|
48
|
-
# assertion here. ref: https://
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
51
|
end
|
50
52
|
end
|
51
53
|
|
52
54
|
describe 'test attribute "created_by"' do
|
53
55
|
it 'should work' do
|
54
|
-
# assertion here. ref: https://
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
55
57
|
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["USER", "SYSTEM"])
|
56
58
|
# validator.allowable_values.each do |value|
|
57
59
|
# expect { instance.created_by = value }.not_to raise_error
|