ibm_cloud_power 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ibm_cloud_power/models/create_image.rb +2 -13
- data/lib/ibm_cloud_power/models/sap_profile.rb +1 -13
- data/lib/ibm_cloud_power/version.rb +1 -1
- metadata +56 -57
- data/Gemfile.lock +0 -68
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60d584506df92dab43317df052af6c3657fbdd572941ef7ff66b5d4d0564c6bb
|
4
|
+
data.tar.gz: faa9a75fef9e13486e67a19f38e1f266d68b97582d1aa314849332656209616b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 560a765c6250568418b77dde0a0cfe292f75ef5043aadebbb5a3ba40966006b518dec60a65d1b53b48e9afd710cf9a9f4c79ad0a1d6be08da66f3d591fe70052
|
7
|
+
data.tar.gz: 2fd1a369c11694697b273eb4bf865eb30f34299b9b2c98775de7aeca5772dfaf701076d9f6e2b8350c221e4321c38c94a238154b41e9ffffd9992cb31a24665b
|
@@ -186,8 +186,7 @@ module IbmCloudPower
|
|
186
186
|
return false if @source.nil?
|
187
187
|
source_validator = EnumAttributeValidator.new('String', ["root-project", "url"])
|
188
188
|
return false unless source_validator.valid?(@source)
|
189
|
-
|
190
|
-
return false unless os_type_validator.valid?(@os_type)
|
189
|
+
return false if @os_type.nil?
|
191
190
|
true
|
192
191
|
end
|
193
192
|
|
@@ -201,16 +200,6 @@ module IbmCloudPower
|
|
201
200
|
@source = source
|
202
201
|
end
|
203
202
|
|
204
|
-
# Custom attribute writer method checking allowed values (enum).
|
205
|
-
# @param [Object] os_type Object to be assigned
|
206
|
-
def os_type=(os_type)
|
207
|
-
validator = EnumAttributeValidator.new('String', ["aix", "ibmi", "redhat", "sles"])
|
208
|
-
unless validator.valid?(os_type)
|
209
|
-
fail ArgumentError, "invalid value for \"os_type\", must be one of #{validator.allowable_values}."
|
210
|
-
end
|
211
|
-
@os_type = os_type
|
212
|
-
end
|
213
|
-
|
214
203
|
# Checks equality by comparing each attribute.
|
215
204
|
# @param [Object] Object to be compared
|
216
205
|
def ==(o)
|
@@ -333,7 +322,7 @@ module IbmCloudPower
|
|
333
322
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
334
323
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
335
324
|
end
|
336
|
-
|
325
|
+
|
337
326
|
hash[param] = _to_hash(value)
|
338
327
|
end
|
339
328
|
hash
|
@@ -149,24 +149,12 @@ module IbmCloudPower
|
|
149
149
|
def valid?
|
150
150
|
return false if @profile_id.nil?
|
151
151
|
return false if @type.nil?
|
152
|
-
type_validator = EnumAttributeValidator.new('String', ["balanced", "compute", "memory", "non-production", "ultra-memory"])
|
153
|
-
return false unless type_validator.valid?(@type)
|
154
152
|
return false if @cores.nil?
|
155
153
|
return false if @memory.nil?
|
156
154
|
return false if @certified.nil?
|
157
155
|
true
|
158
156
|
end
|
159
157
|
|
160
|
-
# Custom attribute writer method checking allowed values (enum).
|
161
|
-
# @param [Object] type Object to be assigned
|
162
|
-
def type=(type)
|
163
|
-
validator = EnumAttributeValidator.new('String', ["balanced", "compute", "memory", "non-production", "ultra-memory"])
|
164
|
-
unless validator.valid?(type)
|
165
|
-
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
166
|
-
end
|
167
|
-
@type = type
|
168
|
-
end
|
169
|
-
|
170
158
|
# Checks equality by comparing each attribute.
|
171
159
|
# @param [Object] Object to be compared
|
172
160
|
def ==(o)
|
@@ -283,7 +271,7 @@ module IbmCloudPower
|
|
283
271
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
284
272
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
285
273
|
end
|
286
|
-
|
274
|
+
|
287
275
|
hash[param] = _to_hash(value)
|
288
276
|
end
|
289
277
|
hash
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ibm_cloud_power
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- IBM Cloud Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -58,7 +58,6 @@ extensions: []
|
|
58
58
|
extra_rdoc_files: []
|
59
59
|
files:
|
60
60
|
- Gemfile
|
61
|
-
- Gemfile.lock
|
62
61
|
- LICENSE.txt
|
63
62
|
- README.md
|
64
63
|
- Rakefile
|
@@ -483,59 +482,84 @@ signing_key:
|
|
483
482
|
specification_version: 4
|
484
483
|
summary: IBM Cloud Power Cloud
|
485
484
|
test_files:
|
485
|
+
- spec/api/p_cloud_cloud_connections_api_spec.rb
|
486
|
+
- spec/api/p_cloud_events_api_spec.rb
|
487
|
+
- spec/api/p_cloud_images_api_spec.rb
|
486
488
|
- spec/api/p_cloud_instances_api_spec.rb
|
487
489
|
- spec/api/p_cloud_networks_api_spec.rb
|
490
|
+
- spec/api/p_cloud_placement_groups_api_spec.rb
|
491
|
+
- spec/api/p_cloud_pvm_instances_api_spec.rb
|
488
492
|
- spec/api/p_cloud_sap_api_spec.rb
|
489
493
|
- spec/api/p_cloud_snapshots_api_spec.rb
|
494
|
+
- spec/api/p_cloud_storage_capacity_api_spec.rb
|
490
495
|
- spec/api/p_cloud_system_pools_api_spec.rb
|
491
496
|
- spec/api/p_cloud_tasks_api_spec.rb
|
492
497
|
- spec/api/p_cloud_tenants_api_spec.rb
|
493
498
|
- spec/api/p_cloud_tenants_ssh_keys_api_spec.rb
|
494
|
-
- spec/api/p_cloud_events_api_spec.rb
|
495
|
-
- spec/api/p_cloud_images_api_spec.rb
|
496
|
-
- spec/api/p_cloud_pvm_instances_api_spec.rb
|
497
499
|
- spec/api/p_cloud_volumes_api_spec.rb
|
498
|
-
- spec/api/p_cloud_cloud_connections_api_spec.rb
|
499
|
-
- spec/api/p_cloud_placement_groups_api_spec.rb
|
500
|
-
- spec/api/p_cloud_storage_capacity_api_spec.rb
|
501
500
|
- spec/api_client_spec.rb
|
502
501
|
- spec/configuration_spec.rb
|
503
502
|
- spec/models/clone_task_reference_spec.rb
|
504
503
|
- spec/models/clone_task_status_spec.rb
|
505
|
-
- spec/models/cloned_volume_spec.rb
|
506
504
|
- spec/models/cloned_volume_detail_spec.rb
|
507
|
-
- spec/models/
|
505
|
+
- spec/models/cloned_volume_spec.rb
|
506
|
+
- spec/models/cloud_connection_create_spec.rb
|
507
|
+
- spec/models/cloud_connection_endpoint_classic_spec.rb
|
508
|
+
- spec/models/cloud_connection_endpoint_gre_spec.rb
|
509
|
+
- spec/models/cloud_connection_endpoint_vpc_spec.rb
|
510
|
+
- spec/models/cloud_connection_gre_tunnel_spec.rb
|
511
|
+
- spec/models/cloud_connection_spec.rb
|
512
|
+
- spec/models/cloud_connection_speed_spec.rb
|
513
|
+
- spec/models/cloud_connection_update_spec.rb
|
514
|
+
- spec/models/cloud_connection_virtual_private_clouds_spec.rb
|
515
|
+
- spec/models/cloud_connection_virtual_private_clouds_virtual_private_clouds_spec.rb
|
516
|
+
- spec/models/cloud_connection_vpc_spec.rb
|
517
|
+
- spec/models/cloud_connections_spec.rb
|
508
518
|
- spec/models/cloud_instance_create_spec.rb
|
509
519
|
- spec/models/cloud_instance_reference_spec.rb
|
520
|
+
- spec/models/cloud_instance_spec.rb
|
510
521
|
- spec/models/cloud_instance_update_spec.rb
|
511
522
|
- spec/models/cloud_instance_usage_limits_spec.rb
|
523
|
+
- spec/models/create_data_volume_spec.rb
|
512
524
|
- spec/models/create_image_spec.rb
|
513
525
|
- spec/models/error_spec.rb
|
514
526
|
- spec/models/event_spec.rb
|
515
527
|
- spec/models/event_user_spec.rb
|
516
528
|
- spec/models/events_spec.rb
|
517
529
|
- spec/models/export_image_spec.rb
|
518
|
-
- spec/models/
|
530
|
+
- spec/models/image_reference_spec.rb
|
531
|
+
- spec/models/image_spec.rb
|
519
532
|
- spec/models/image_specifications_spec.rb
|
520
533
|
- spec/models/image_volume_spec.rb
|
521
534
|
- spec/models/images_spec.rb
|
535
|
+
- spec/models/ip_address_range_spec.rb
|
536
|
+
- spec/models/maximum_storage_allocation_spec.rb
|
522
537
|
- spec/models/min_max_default_spec.rb
|
523
|
-
- spec/models/
|
538
|
+
- spec/models/multi_volumes_create_spec.rb
|
524
539
|
- spec/models/network_create_spec.rb
|
525
540
|
- spec/models/network_ip_address_metrics_spec.rb
|
526
541
|
- spec/models/network_port_create_spec.rb
|
527
542
|
- spec/models/network_port_pvm_instance_spec.rb
|
543
|
+
- spec/models/network_port_spec.rb
|
528
544
|
- spec/models/network_port_update_spec.rb
|
529
545
|
- spec/models/network_ports_spec.rb
|
530
546
|
- spec/models/network_reference_spec.rb
|
547
|
+
- spec/models/network_spec.rb
|
531
548
|
- spec/models/network_update_spec.rb
|
532
549
|
- spec/models/networks_spec.rb
|
533
550
|
- spec/models/operations_spec.rb
|
551
|
+
- spec/models/peering_network_spec.rb
|
552
|
+
- spec/models/pin_policy_spec.rb
|
553
|
+
- spec/models/placement_group_create_spec.rb
|
554
|
+
- spec/models/placement_group_server_spec.rb
|
555
|
+
- spec/models/placement_group_spec.rb
|
556
|
+
- spec/models/placement_groups_spec.rb
|
534
557
|
- spec/models/pvm_instance_action_spec.rb
|
535
558
|
- spec/models/pvm_instance_add_network_spec.rb
|
536
559
|
- spec/models/pvm_instance_capture_spec.rb
|
537
560
|
- spec/models/pvm_instance_clone_spec.rb
|
538
561
|
- spec/models/pvm_instance_console_spec.rb
|
562
|
+
- spec/models/pvm_instance_create_spec.rb
|
539
563
|
- spec/models/pvm_instance_fault_spec.rb
|
540
564
|
- spec/models/pvm_instance_health_spec.rb
|
541
565
|
- spec/models/pvm_instance_multi_create_spec.rb
|
@@ -544,74 +568,49 @@ test_files:
|
|
544
568
|
- spec/models/pvm_instance_operation_spec.rb
|
545
569
|
- spec/models/pvm_instance_reference_spec.rb
|
546
570
|
- spec/models/pvm_instance_remove_network_spec.rb
|
547
|
-
- spec/models/
|
571
|
+
- spec/models/pvm_instance_spec.rb
|
548
572
|
- spec/models/pvm_instance_update_response_spec.rb
|
573
|
+
- spec/models/pvm_instance_update_spec.rb
|
549
574
|
- spec/models/pvm_instance_volume_update_spec.rb
|
550
575
|
- spec/models/pvm_instances_spec.rb
|
551
|
-
- spec/models/peering_network_spec.rb
|
552
|
-
- spec/models/pin_policy_spec.rb
|
553
576
|
- spec/models/sap_create_spec.rb
|
554
|
-
- spec/models/sap_profile_spec.rb
|
555
577
|
- spec/models/sap_profile_reference_spec.rb
|
578
|
+
- spec/models/sap_profile_spec.rb
|
556
579
|
- spec/models/sap_profiles_spec.rb
|
557
|
-
- spec/models/src_spec.rb
|
558
|
-
- spec/models/ssh_key_spec.rb
|
559
|
-
- spec/models/ssh_keys_spec.rb
|
560
|
-
- spec/models/snapshot_spec.rb
|
561
|
-
- spec/models/snapshot_create_spec.rb
|
562
580
|
- spec/models/snapshot_create_response_spec.rb
|
581
|
+
- spec/models/snapshot_create_spec.rb
|
563
582
|
- spec/models/snapshot_restore_spec.rb
|
583
|
+
- spec/models/snapshot_spec.rb
|
564
584
|
- spec/models/snapshot_update_spec.rb
|
565
585
|
- spec/models/snapshots_spec.rb
|
566
586
|
- spec/models/software_licenses_spec.rb
|
587
|
+
- spec/models/src_spec.rb
|
588
|
+
- spec/models/ssh_key_spec.rb
|
589
|
+
- spec/models/ssh_keys_spec.rb
|
567
590
|
- spec/models/stock_image_spec.rb
|
568
|
-
- spec/models/
|
591
|
+
- spec/models/storage_pool_capacity_spec.rb
|
592
|
+
- spec/models/storage_pools_capacity_spec.rb
|
593
|
+
- spec/models/storage_type_capacity_spec.rb
|
594
|
+
- spec/models/storage_types_capacity_spec.rb
|
569
595
|
- spec/models/system_pool_spec.rb
|
570
|
-
- spec/models/
|
596
|
+
- spec/models/system_spec.rb
|
571
597
|
- spec/models/task_reference_spec.rb
|
598
|
+
- spec/models/task_spec.rb
|
572
599
|
- spec/models/tenant_spec.rb
|
573
600
|
- spec/models/tenant_update_spec.rb
|
574
601
|
- spec/models/update_volume_spec.rb
|
575
602
|
- spec/models/virtual_cores_spec.rb
|
576
603
|
- spec/models/volume_info_spec.rb
|
577
|
-
- spec/models/
|
578
|
-
- spec/models/
|
604
|
+
- spec/models/volume_reference_spec.rb
|
605
|
+
- spec/models/volume_spec.rb
|
579
606
|
- spec/models/volumes_clone_async_request_spec.rb
|
580
607
|
- spec/models/volumes_clone_cancel_spec.rb
|
581
608
|
- spec/models/volumes_clone_create_spec.rb
|
582
609
|
- spec/models/volumes_clone_detail_spec.rb
|
583
610
|
- spec/models/volumes_clone_execute_spec.rb
|
584
611
|
- spec/models/volumes_clone_request_spec.rb
|
585
|
-
- spec/models/volumes_clones_spec.rb
|
586
|
-
- spec/models/create_data_volume_spec.rb
|
587
|
-
- spec/models/image_reference_spec.rb
|
588
|
-
- spec/models/image_spec.rb
|
589
|
-
- spec/models/multi_volumes_create_spec.rb
|
590
|
-
- spec/models/network_port_spec.rb
|
591
|
-
- spec/models/pvm_instance_create_spec.rb
|
592
|
-
- spec/models/pvm_instance_spec.rb
|
593
|
-
- spec/models/volume_reference_spec.rb
|
594
|
-
- spec/models/volume_spec.rb
|
595
612
|
- spec/models/volumes_clone_response_spec.rb
|
596
|
-
- spec/models/
|
597
|
-
- spec/models/
|
598
|
-
- spec/models/
|
599
|
-
- spec/models/cloud_connection_endpoint_vpc_spec.rb
|
600
|
-
- spec/models/cloud_connection_gre_tunnel_spec.rb
|
601
|
-
- spec/models/cloud_connection_spec.rb
|
602
|
-
- spec/models/cloud_connection_speed_spec.rb
|
603
|
-
- spec/models/cloud_connection_update_spec.rb
|
604
|
-
- spec/models/cloud_connection_virtual_private_clouds_spec.rb
|
605
|
-
- spec/models/cloud_connection_virtual_private_clouds_virtual_private_clouds_spec.rb
|
606
|
-
- spec/models/cloud_connection_vpc_spec.rb
|
607
|
-
- spec/models/cloud_connections_spec.rb
|
608
|
-
- spec/models/maximum_storage_allocation_spec.rb
|
609
|
-
- spec/models/placement_group_create_spec.rb
|
610
|
-
- spec/models/placement_group_server_spec.rb
|
611
|
-
- spec/models/placement_group_spec.rb
|
612
|
-
- spec/models/placement_groups_spec.rb
|
613
|
-
- spec/models/storage_pool_capacity_spec.rb
|
614
|
-
- spec/models/storage_pools_capacity_spec.rb
|
615
|
-
- spec/models/storage_type_capacity_spec.rb
|
616
|
-
- spec/models/storage_types_capacity_spec.rb
|
613
|
+
- spec/models/volumes_clone_spec.rb
|
614
|
+
- spec/models/volumes_clones_spec.rb
|
615
|
+
- spec/models/volumes_spec.rb
|
617
616
|
- spec/spec_helper.rb
|
data/Gemfile.lock
DELETED
@@ -1,68 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
ibm_cloud_power (1.1.0)
|
5
|
-
typhoeus (~> 1.0, >= 1.0.1)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
ast (2.4.2)
|
11
|
-
byebug (11.1.3)
|
12
|
-
coderay (1.1.3)
|
13
|
-
diff-lcs (1.4.4)
|
14
|
-
ethon (0.14.0)
|
15
|
-
ffi (>= 1.15.0)
|
16
|
-
ffi (1.15.3)
|
17
|
-
jaro_winkler (1.5.4)
|
18
|
-
method_source (1.0.0)
|
19
|
-
parallel (1.20.1)
|
20
|
-
parser (3.0.1.1)
|
21
|
-
ast (~> 2.4.1)
|
22
|
-
pry (0.13.1)
|
23
|
-
coderay (~> 1.1)
|
24
|
-
method_source (~> 1.0)
|
25
|
-
pry-byebug (3.9.0)
|
26
|
-
byebug (~> 11.0)
|
27
|
-
pry (~> 0.13.0)
|
28
|
-
psych (4.0.1)
|
29
|
-
rainbow (3.0.0)
|
30
|
-
rake (13.0.4)
|
31
|
-
rspec (3.10.0)
|
32
|
-
rspec-core (~> 3.10.0)
|
33
|
-
rspec-expectations (~> 3.10.0)
|
34
|
-
rspec-mocks (~> 3.10.0)
|
35
|
-
rspec-core (3.10.1)
|
36
|
-
rspec-support (~> 3.10.0)
|
37
|
-
rspec-expectations (3.10.1)
|
38
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
39
|
-
rspec-support (~> 3.10.0)
|
40
|
-
rspec-mocks (3.10.2)
|
41
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
42
|
-
rspec-support (~> 3.10.0)
|
43
|
-
rspec-support (3.10.2)
|
44
|
-
rubocop (0.66.0)
|
45
|
-
jaro_winkler (~> 1.5.1)
|
46
|
-
parallel (~> 1.10)
|
47
|
-
parser (>= 2.5, != 2.5.1.1)
|
48
|
-
psych (>= 3.1.0)
|
49
|
-
rainbow (>= 2.2.2, < 4.0)
|
50
|
-
ruby-progressbar (~> 1.7)
|
51
|
-
unicode-display_width (>= 1.4.0, < 1.6)
|
52
|
-
ruby-progressbar (1.11.0)
|
53
|
-
typhoeus (1.4.0)
|
54
|
-
ethon (>= 0.9.0)
|
55
|
-
unicode-display_width (1.5.0)
|
56
|
-
|
57
|
-
PLATFORMS
|
58
|
-
x86_64-linux
|
59
|
-
|
60
|
-
DEPENDENCIES
|
61
|
-
ibm_cloud_power!
|
62
|
-
pry-byebug
|
63
|
-
rake (~> 13.0.1)
|
64
|
-
rspec (~> 3.6, >= 3.6.0)
|
65
|
-
rubocop (~> 0.66.0)
|
66
|
-
|
67
|
-
BUNDLED WITH
|
68
|
-
2.2.18
|