ibm_cloud_power 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +68 -0
- data/LICENSE.txt +202 -0
- data/README.md +56 -10
- data/docs/CloudConnection.md +41 -0
- data/docs/CloudConnectionCreate.md +23 -0
- data/docs/CloudConnectionEndpointClassic.md +19 -0
- data/docs/CloudConnectionEndpointGRE.md +19 -0
- data/docs/CloudConnectionEndpointVPC.md +19 -0
- data/docs/CloudConnectionGRETunnel.md +21 -0
- data/docs/CloudConnectionSpeed.md +16 -0
- data/docs/CloudConnectionUpdate.md +27 -0
- data/docs/CloudConnectionVPC.md +19 -0
- data/docs/CloudConnectionVirtualPrivateClouds.md +17 -0
- data/docs/CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds.md +23 -0
- data/docs/CloudConnections.md +17 -0
- data/docs/CreateDataVolume.md +6 -6
- data/docs/CreateImage.md +3 -3
- data/docs/Image.md +2 -0
- data/docs/ImageReference.md +2 -0
- data/docs/MaximumStorageAllocation.md +21 -0
- data/docs/MultiVolumesCreate.md +6 -4
- data/docs/Network.md +1 -1
- data/docs/NetworkPort.md +2 -0
- data/docs/NetworkReference.md +1 -1
- data/docs/PCloudCloudConnectionsApi.md +394 -0
- data/docs/PCloudEventsApi.md +2 -2
- data/docs/PCloudImagesApi.md +104 -6
- data/docs/PCloudPVMInstancesApi.md +60 -5
- data/docs/PCloudPlacementGroupsApi.md +298 -0
- data/docs/PCloudStorageCapacityApi.md +196 -0
- data/docs/PCloudVolumesApi.md +344 -0
- data/docs/PVMInstance.md +3 -1
- data/docs/PVMInstanceCreate.md +5 -3
- data/docs/PlacementGroup.md +23 -0
- data/docs/PlacementGroupCreate.md +19 -0
- data/docs/PlacementGroupServer.md +17 -0
- data/docs/PlacementGroups.md +17 -0
- data/docs/SAPCreate.md +1 -1
- data/docs/StoragePoolCapacity.md +23 -0
- data/docs/StoragePoolsCapacity.md +19 -0
- data/docs/StorageTypeCapacity.md +21 -0
- data/docs/StorageTypesCapacity.md +19 -0
- data/docs/Volume.md +2 -0
- data/docs/VolumeReference.md +2 -0
- data/docs/VolumesCloneAsyncRequest.md +1 -1
- data/docs/VolumesCloneCancel.md +1 -1
- data/docs/VolumesCloneDetail.md +1 -1
- data/docs/VolumesCloneExecute.md +1 -1
- data/lib/ibm_cloud_power.rb +24 -0
- data/lib/ibm_cloud_power/api/p_cloud_cloud_connections_api.rb +560 -0
- data/lib/ibm_cloud_power/api/p_cloud_events_api.rb +2 -2
- data/lib/ibm_cloud_power/api/p_cloud_images_api.rb +133 -4
- data/lib/ibm_cloud_power/api/p_cloud_placement_groups_api.rb +430 -0
- data/lib/ibm_cloud_power/api/p_cloud_pvm_instances_api.rb +82 -5
- data/lib/ibm_cloud_power/api/p_cloud_storage_capacity_api.rb +274 -0
- data/lib/ibm_cloud_power/api/p_cloud_volumes_api.rb +477 -0
- data/lib/ibm_cloud_power/models/cloud_connection.rb +379 -0
- data/lib/ibm_cloud_power/models/cloud_connection_create.rb +249 -0
- data/lib/ibm_cloud_power/models/cloud_connection_endpoint_classic.rb +218 -0
- data/lib/ibm_cloud_power/models/cloud_connection_endpoint_gre.rb +221 -0
- data/lib/ibm_cloud_power/models/cloud_connection_endpoint_vpc.rb +221 -0
- data/lib/ibm_cloud_power/models/cloud_connection_gre_tunnel.rb +239 -0
- data/lib/ibm_cloud_power/models/cloud_connection_speed.rb +42 -0
- data/lib/ibm_cloud_power/models/cloud_connection_update.rb +257 -0
- data/lib/ibm_cloud_power/models/cloud_connection_virtual_private_clouds.rb +216 -0
- data/lib/ibm_cloud_power/models/cloud_connection_virtual_private_clouds_virtual_private_clouds.rb +259 -0
- data/lib/ibm_cloud_power/models/cloud_connection_vpc.rb +224 -0
- data/lib/ibm_cloud_power/models/cloud_connections.rb +216 -0
- data/lib/ibm_cloud_power/models/create_data_volume.rb +17 -17
- data/lib/ibm_cloud_power/models/create_image.rb +3 -3
- data/lib/ibm_cloud_power/models/image.rb +16 -1
- data/lib/ibm_cloud_power/models/image_reference.rb +16 -1
- data/lib/ibm_cloud_power/models/maximum_storage_allocation.rb +245 -0
- data/lib/ibm_cloud_power/models/multi_volumes_create.rb +17 -7
- data/lib/ibm_cloud_power/models/network.rb +1 -1
- data/lib/ibm_cloud_power/models/network_port.rb +11 -1
- data/lib/ibm_cloud_power/models/network_reference.rb +1 -1
- data/lib/ibm_cloud_power/models/placement_group.rb +295 -0
- data/lib/ibm_cloud_power/models/placement_group_create.rb +263 -0
- data/lib/ibm_cloud_power/models/placement_group_server.rb +214 -0
- data/lib/ibm_cloud_power/models/placement_groups.rb +216 -0
- data/lib/ibm_cloud_power/models/pvm_instance.rb +17 -5
- data/lib/ibm_cloud_power/models/pvm_instance_create.rb +16 -6
- data/lib/ibm_cloud_power/models/pvm_instance_reference.rb +2 -2
- data/lib/ibm_cloud_power/models/sap_create.rb +1 -1
- data/lib/ibm_cloud_power/models/storage_pool_capacity.rb +245 -0
- data/lib/ibm_cloud_power/models/storage_pools_capacity.rb +220 -0
- data/lib/ibm_cloud_power/models/storage_type_capacity.rb +231 -0
- data/lib/ibm_cloud_power/models/storage_types_capacity.rb +220 -0
- data/lib/ibm_cloud_power/models/volume.rb +11 -1
- data/lib/ibm_cloud_power/models/volume_reference.rb +11 -1
- data/lib/ibm_cloud_power/models/volumes_clone_async_request.rb +1 -1
- data/lib/ibm_cloud_power/models/volumes_clone_cancel.rb +1 -1
- data/lib/ibm_cloud_power/models/volumes_clone_detail.rb +1 -1
- data/lib/ibm_cloud_power/models/volumes_clone_execute.rb +1 -1
- data/lib/ibm_cloud_power/version.rb +1 -1
- data/spec/api/p_cloud_cloud_connections_api_spec.rb +132 -0
- data/spec/api/p_cloud_placement_groups_api_spec.rb +108 -0
- data/spec/api/p_cloud_storage_capacity_api_spec.rb +81 -0
- data/spec/models/cloud_connection_create_spec.rb +59 -0
- data/spec/models/cloud_connection_endpoint_classic_spec.rb +47 -0
- data/spec/models/cloud_connection_endpoint_gre_spec.rb +47 -0
- data/spec/models/cloud_connection_endpoint_vpc_spec.rb +47 -0
- data/spec/models/cloud_connection_gre_tunnel_spec.rb +53 -0
- data/spec/models/cloud_connection_spec.rb +113 -0
- data/spec/models/cloud_connection_speed_spec.rb +35 -0
- data/spec/models/cloud_connection_update_spec.rb +71 -0
- data/spec/models/cloud_connection_virtual_private_clouds_spec.rb +41 -0
- data/spec/models/cloud_connection_virtual_private_clouds_virtual_private_clouds_spec.rb +59 -0
- data/spec/models/cloud_connection_vpc_spec.rb +47 -0
- data/spec/models/cloud_connections_spec.rb +41 -0
- data/spec/models/maximum_storage_allocation_spec.rb +53 -0
- data/spec/models/placement_group_create_spec.rb +51 -0
- data/spec/models/placement_group_server_spec.rb +41 -0
- data/spec/models/placement_group_spec.rb +63 -0
- data/spec/models/placement_groups_spec.rb +41 -0
- data/spec/models/storage_pool_capacity_spec.rb +59 -0
- data/spec/models/storage_pools_capacity_spec.rb +47 -0
- data/spec/models/storage_type_capacity_spec.rb +53 -0
- data/spec/models/storage_types_capacity_spec.rb +47 -0
- metadata +130 -32
@@ -0,0 +1,41 @@
|
|
1
|
+
=begin
|
2
|
+
#Power Cloud API
|
3
|
+
|
4
|
+
#IBM Power Cloud API for Power Hardware / Infrastructure
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: kylej@us.ibm.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0-beta2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for IbmCloudPower::CloudConnectionVirtualPrivateClouds
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'CloudConnectionVirtualPrivateClouds' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = IbmCloudPower::CloudConnectionVirtualPrivateClouds.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of CloudConnectionVirtualPrivateClouds' do
|
31
|
+
it 'should create an instance of CloudConnectionVirtualPrivateClouds' do
|
32
|
+
expect(@instance).to be_instance_of(IbmCloudPower::CloudConnectionVirtualPrivateClouds)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "virtual_private_clouds"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
=begin
|
2
|
+
#Power Cloud API
|
3
|
+
|
4
|
+
#IBM Power Cloud API for Power Hardware / Infrastructure
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: kylej@us.ibm.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0-beta2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for IbmCloudPower::CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = IbmCloudPower::CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds' do
|
31
|
+
it 'should create an instance of CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds' do
|
32
|
+
expect(@instance).to be_instance_of(IbmCloudPower::CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "classic_access"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "vpc_id"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "name"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "status"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
=begin
|
2
|
+
#Power Cloud API
|
3
|
+
|
4
|
+
#IBM Power Cloud API for Power Hardware / Infrastructure
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: kylej@us.ibm.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0-beta2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for IbmCloudPower::CloudConnectionVPC
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'CloudConnectionVPC' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = IbmCloudPower::CloudConnectionVPC.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of CloudConnectionVPC' do
|
31
|
+
it 'should create an instance of CloudConnectionVPC' do
|
32
|
+
expect(@instance).to be_instance_of(IbmCloudPower::CloudConnectionVPC)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "vpc_id"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "name"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
=begin
|
2
|
+
#Power Cloud API
|
3
|
+
|
4
|
+
#IBM Power Cloud API for Power Hardware / Infrastructure
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: kylej@us.ibm.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0-beta2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for IbmCloudPower::CloudConnections
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'CloudConnections' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = IbmCloudPower::CloudConnections.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of CloudConnections' do
|
31
|
+
it 'should create an instance of CloudConnections' do
|
32
|
+
expect(@instance).to be_instance_of(IbmCloudPower::CloudConnections)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "cloud_connections"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
=begin
|
2
|
+
#Power Cloud API
|
3
|
+
|
4
|
+
#IBM Power Cloud API for Power Hardware / Infrastructure
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: kylej@us.ibm.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0-beta2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for IbmCloudPower::MaximumStorageAllocation
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'MaximumStorageAllocation' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = IbmCloudPower::MaximumStorageAllocation.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of MaximumStorageAllocation' do
|
31
|
+
it 'should create an instance of MaximumStorageAllocation' do
|
32
|
+
expect(@instance).to be_instance_of(IbmCloudPower::MaximumStorageAllocation)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "storage_type"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "storage_pool"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "max_allocation_size"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
=begin
|
2
|
+
#Power Cloud API
|
3
|
+
|
4
|
+
#IBM Power Cloud API for Power Hardware / Infrastructure
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: kylej@us.ibm.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0-beta2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for IbmCloudPower::PlacementGroupCreate
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'PlacementGroupCreate' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = IbmCloudPower::PlacementGroupCreate.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of PlacementGroupCreate' do
|
31
|
+
it 'should create an instance of PlacementGroupCreate' do
|
32
|
+
expect(@instance).to be_instance_of(IbmCloudPower::PlacementGroupCreate)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "name"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "policy"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["affinity", "anti-affinity"])
|
45
|
+
# validator.allowable_values.each do |value|
|
46
|
+
# expect { @instance.policy = value }.not_to raise_error
|
47
|
+
# end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
=begin
|
2
|
+
#Power Cloud API
|
3
|
+
|
4
|
+
#IBM Power Cloud API for Power Hardware / Infrastructure
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: kylej@us.ibm.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0-beta2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for IbmCloudPower::PlacementGroupServer
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'PlacementGroupServer' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = IbmCloudPower::PlacementGroupServer.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of PlacementGroupServer' do
|
31
|
+
it 'should create an instance of PlacementGroupServer' do
|
32
|
+
expect(@instance).to be_instance_of(IbmCloudPower::PlacementGroupServer)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "id"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
=begin
|
2
|
+
#Power Cloud API
|
3
|
+
|
4
|
+
#IBM Power Cloud API for Power Hardware / Infrastructure
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: kylej@us.ibm.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0-beta2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for IbmCloudPower::PlacementGroup
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'PlacementGroup' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = IbmCloudPower::PlacementGroup.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of PlacementGroup' do
|
31
|
+
it 'should create an instance of PlacementGroup' do
|
32
|
+
expect(@instance).to be_instance_of(IbmCloudPower::PlacementGroup)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "id"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "name"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "policy"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["affinity", "anti-affinity"])
|
51
|
+
# validator.allowable_values.each do |value|
|
52
|
+
# expect { @instance.policy = value }.not_to raise_error
|
53
|
+
# end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
describe 'test attribute "members"' do
|
58
|
+
it 'should work' do
|
59
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
=begin
|
2
|
+
#Power Cloud API
|
3
|
+
|
4
|
+
#IBM Power Cloud API for Power Hardware / Infrastructure
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: kylej@us.ibm.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0-beta2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for IbmCloudPower::PlacementGroups
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'PlacementGroups' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = IbmCloudPower::PlacementGroups.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of PlacementGroups' do
|
31
|
+
it 'should create an instance of PlacementGroups' do
|
32
|
+
expect(@instance).to be_instance_of(IbmCloudPower::PlacementGroups)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "placement_groups"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|