cloudstack_ruby_client 0.0.2 → 0.0.3
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.
- data/lib/cloudstack_ruby_client/client.rb +342 -342
- data/lib/cloudstack_ruby_client/version.rb +1 -1
- metadata +3 -3
@@ -25,19 +25,19 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
25
25
|
# tags - the tags for the network offering.
|
26
26
|
|
27
27
|
args.merge!('command' => 'createNetworkOffering')
|
28
|
-
if not args.
|
28
|
+
if not args.has_key?('displaytext')
|
29
29
|
raise ArgumentError, "Missing required argument 'displaytext'"
|
30
30
|
end
|
31
|
-
if not args.
|
31
|
+
if not args.has_key?('guestiptype')
|
32
32
|
raise ArgumentError, "Missing required argument 'guestiptype'"
|
33
33
|
end
|
34
|
-
if not args.
|
34
|
+
if not args.has_key?('name')
|
35
35
|
raise ArgumentError, "Missing required argument 'name'"
|
36
36
|
end
|
37
|
-
if not args.
|
37
|
+
if not args.has_key?('supportedservices')
|
38
38
|
raise ArgumentError, "Missing required argument 'supportedservices'"
|
39
39
|
end
|
40
|
-
if not args.
|
40
|
+
if not args.has_key?('traffictype')
|
41
41
|
raise ArgumentError, "Missing required argument 'traffictype'"
|
42
42
|
end
|
43
43
|
|
@@ -71,7 +71,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
71
71
|
# id - the ID of the network offering
|
72
72
|
|
73
73
|
args.merge!('command' => 'deleteNetworkOffering')
|
74
|
-
if not args.
|
74
|
+
if not args.has_key?('id')
|
75
75
|
raise ArgumentError, "Missing required argument 'id'"
|
76
76
|
end
|
77
77
|
|
@@ -149,16 +149,16 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
149
149
|
# vpcid - the VPC network belongs to
|
150
150
|
|
151
151
|
args.merge!('command' => 'createNetwork')
|
152
|
-
if not args.
|
152
|
+
if not args.has_key?('displaytext')
|
153
153
|
raise ArgumentError, "Missing required argument 'displaytext'"
|
154
154
|
end
|
155
|
-
if not args.
|
155
|
+
if not args.has_key?('name')
|
156
156
|
raise ArgumentError, "Missing required argument 'name'"
|
157
157
|
end
|
158
|
-
if not args.
|
158
|
+
if not args.has_key?('networkofferingid')
|
159
159
|
raise ArgumentError, "Missing required argument 'networkofferingid'"
|
160
160
|
end
|
161
|
-
if not args.
|
161
|
+
if not args.has_key?('zoneid')
|
162
162
|
raise ArgumentError, "Missing required argument 'zoneid'"
|
163
163
|
end
|
164
164
|
|
@@ -173,7 +173,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
173
173
|
# id - the ID of the network
|
174
174
|
|
175
175
|
args.merge!('command' => 'deleteNetwork')
|
176
|
-
if not args.
|
176
|
+
if not args.has_key?('id')
|
177
177
|
raise ArgumentError, "Missing required argument 'id'"
|
178
178
|
end
|
179
179
|
|
@@ -231,7 +231,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
231
231
|
# cleanup - If cleanup old network elements
|
232
232
|
|
233
233
|
args.merge!('command' => 'restartNetwork')
|
234
|
-
if not args.
|
234
|
+
if not args.has_key?('id')
|
235
235
|
raise ArgumentError, "Missing required argument 'id'"
|
236
236
|
end
|
237
237
|
|
@@ -251,7 +251,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
251
251
|
# networkofferingid - network offering ID
|
252
252
|
|
253
253
|
args.merge!('command' => 'updateNetwork')
|
254
|
-
if not args.
|
254
|
+
if not args.has_key?('id')
|
255
255
|
raise ArgumentError, "Missing required argument 'id'"
|
256
256
|
end
|
257
257
|
|
@@ -276,10 +276,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
276
276
|
# vlan - the VLAN for the physical network
|
277
277
|
|
278
278
|
args.merge!('command' => 'createPhysicalNetwork')
|
279
|
-
if not args.
|
279
|
+
if not args.has_key?('name')
|
280
280
|
raise ArgumentError, "Missing required argument 'name'"
|
281
281
|
end
|
282
|
-
if not args.
|
282
|
+
if not args.has_key?('zoneid')
|
283
283
|
raise ArgumentError, "Missing required argument 'zoneid'"
|
284
284
|
end
|
285
285
|
|
@@ -294,7 +294,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
294
294
|
# id - the ID of the Physical network
|
295
295
|
|
296
296
|
args.merge!('command' => 'deletePhysicalNetwork')
|
297
|
-
if not args.
|
297
|
+
if not args.has_key?('id')
|
298
298
|
raise ArgumentError, "Missing required argument 'id'"
|
299
299
|
end
|
300
300
|
|
@@ -331,7 +331,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
331
331
|
# vlan - the VLAN for the physical network
|
332
332
|
|
333
333
|
args.merge!('command' => 'updatePhysicalNetwork')
|
334
|
-
if not args.
|
334
|
+
if not args.has_key?('id')
|
335
335
|
raise ArgumentError, "Missing required argument 'id'"
|
336
336
|
end
|
337
337
|
|
@@ -368,10 +368,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
368
368
|
# ervice provider
|
369
369
|
|
370
370
|
args.merge!('command' => 'addNetworkServiceProvider')
|
371
|
-
if not args.
|
371
|
+
if not args.has_key?('name')
|
372
372
|
raise ArgumentError, "Missing required argument 'name'"
|
373
373
|
end
|
374
|
-
if not args.
|
374
|
+
if not args.has_key?('physicalnetworkid')
|
375
375
|
raise ArgumentError, "Missing required argument 'physicalnetworkid'"
|
376
376
|
end
|
377
377
|
|
@@ -386,7 +386,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
386
386
|
# id - the ID of the network service provider
|
387
387
|
|
388
388
|
args.merge!('command' => 'deleteNetworkServiceProvider')
|
389
|
-
if not args.
|
389
|
+
if not args.has_key?('id')
|
390
390
|
raise ArgumentError, "Missing required argument 'id'"
|
391
391
|
end
|
392
392
|
|
@@ -422,7 +422,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
422
422
|
# state - Enabled/Disabled/Shutdown the physical network service provider
|
423
423
|
|
424
424
|
args.merge!('command' => 'updateNetworkServiceProvider')
|
425
|
-
if not args.
|
425
|
+
if not args.has_key?('id')
|
426
426
|
raise ArgumentError, "Missing required argument 'id'"
|
427
427
|
end
|
428
428
|
|
@@ -445,16 +445,16 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
445
445
|
# fic type table
|
446
446
|
|
447
447
|
args.merge!('command' => 'createStorageNetworkIpRange')
|
448
|
-
if not args.
|
448
|
+
if not args.has_key?('gateway')
|
449
449
|
raise ArgumentError, "Missing required argument 'gateway'"
|
450
450
|
end
|
451
|
-
if not args.
|
451
|
+
if not args.has_key?('netmask')
|
452
452
|
raise ArgumentError, "Missing required argument 'netmask'"
|
453
453
|
end
|
454
|
-
if not args.
|
454
|
+
if not args.has_key?('podid')
|
455
455
|
raise ArgumentError, "Missing required argument 'podid'"
|
456
456
|
end
|
457
|
-
if not args.
|
457
|
+
if not args.has_key?('startip')
|
458
458
|
raise ArgumentError, "Missing required argument 'startip'"
|
459
459
|
end
|
460
460
|
|
@@ -469,7 +469,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
469
469
|
# id - the uuid of the storage network ip range
|
470
470
|
|
471
471
|
args.merge!('command' => 'deleteStorageNetworkIpRange')
|
472
|
-
if not args.
|
472
|
+
if not args.has_key?('id')
|
473
473
|
raise ArgumentError, "Missing required argument 'id'"
|
474
474
|
end
|
475
475
|
|
@@ -510,7 +510,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
510
510
|
# vlan - Optional. the vlan the ip range sits on
|
511
511
|
|
512
512
|
args.merge!('command' => 'updateStorageNetworkIpRange')
|
513
|
-
if not args.
|
513
|
+
if not args.has_key?('id')
|
514
514
|
raise ArgumentError, "Missing required argument 'id'"
|
515
515
|
end
|
516
516
|
|
@@ -560,7 +560,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
560
560
|
# id - Id of network device to delete
|
561
561
|
|
562
562
|
args.merge!('command' => 'deleteNetworkDevice')
|
563
|
-
if not args.
|
563
|
+
if not args.has_key?('id')
|
564
564
|
raise ArgumentError, "Missing required argument 'id'"
|
565
565
|
end
|
566
566
|
|
@@ -583,10 +583,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
583
583
|
# ed to Ingress if not specified
|
584
584
|
|
585
585
|
args.merge!('command' => 'createNetworkACL')
|
586
|
-
if not args.
|
586
|
+
if not args.has_key?('networkid')
|
587
587
|
raise ArgumentError, "Missing required argument 'networkid'"
|
588
588
|
end
|
589
|
-
if not args.
|
589
|
+
if not args.has_key?('protocol')
|
590
590
|
raise ArgumentError, "Missing required argument 'protocol'"
|
591
591
|
end
|
592
592
|
|
@@ -601,7 +601,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
601
601
|
# id - the ID of the network ACL
|
602
602
|
|
603
603
|
args.merge!('command' => 'deleteNetworkACL')
|
604
|
-
if not args.
|
604
|
+
if not args.has_key?('id')
|
605
605
|
raise ArgumentError, "Missing required argument 'id'"
|
606
606
|
end
|
607
607
|
|
@@ -648,7 +648,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
648
648
|
# page - Pagination
|
649
649
|
|
650
650
|
args.merge!('command' => 'listNiciraNvpDeviceNetworks')
|
651
|
-
if not args.
|
651
|
+
if not args.has_key?('nvpdeviceid')
|
652
652
|
raise ArgumentError, "Missing required argument 'nvpdeviceid'"
|
653
653
|
end
|
654
654
|
|
@@ -675,19 +675,19 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
675
675
|
# projectid - create VPC for the project
|
676
676
|
|
677
677
|
args.merge!('command' => 'createVPC')
|
678
|
-
if not args.
|
678
|
+
if not args.has_key?('cidr')
|
679
679
|
raise ArgumentError, "Missing required argument 'cidr'"
|
680
680
|
end
|
681
|
-
if not args.
|
681
|
+
if not args.has_key?('displaytext')
|
682
682
|
raise ArgumentError, "Missing required argument 'displaytext'"
|
683
683
|
end
|
684
|
-
if not args.
|
684
|
+
if not args.has_key?('name')
|
685
685
|
raise ArgumentError, "Missing required argument 'name'"
|
686
686
|
end
|
687
|
-
if not args.
|
687
|
+
if not args.has_key?('vpcofferingid')
|
688
688
|
raise ArgumentError, "Missing required argument 'vpcofferingid'"
|
689
689
|
end
|
690
|
-
if not args.
|
690
|
+
if not args.has_key?('zoneid')
|
691
691
|
raise ArgumentError, "Missing required argument 'zoneid'"
|
692
692
|
end
|
693
693
|
|
@@ -742,7 +742,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
742
742
|
# id - the ID of the VPC
|
743
743
|
|
744
744
|
args.merge!('command' => 'deleteVPC')
|
745
|
-
if not args.
|
745
|
+
if not args.has_key?('id')
|
746
746
|
raise ArgumentError, "Missing required argument 'id'"
|
747
747
|
end
|
748
748
|
|
@@ -785,13 +785,13 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
785
785
|
# supportedservices - services supported by the vpc offering
|
786
786
|
|
787
787
|
args.merge!('command' => 'createVPCOffering')
|
788
|
-
if not args.
|
788
|
+
if not args.has_key?('displaytext')
|
789
789
|
raise ArgumentError, "Missing required argument 'displaytext'"
|
790
790
|
end
|
791
|
-
if not args.
|
791
|
+
if not args.has_key?('name')
|
792
792
|
raise ArgumentError, "Missing required argument 'name'"
|
793
793
|
end
|
794
|
-
if not args.
|
794
|
+
if not args.has_key?('supportedservices')
|
795
795
|
raise ArgumentError, "Missing required argument 'supportedservices'"
|
796
796
|
end
|
797
797
|
|
@@ -822,7 +822,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
822
822
|
# id - the ID of the VPC offering
|
823
823
|
|
824
824
|
args.merge!('command' => 'deleteVPCOffering')
|
825
|
-
if not args.
|
825
|
+
if not args.has_key?('id')
|
826
826
|
raise ArgumentError, "Missing required argument 'id'"
|
827
827
|
end
|
828
828
|
|
@@ -864,19 +864,19 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
864
864
|
# physicalnetworkid - the Physical Network ID the network belongs to
|
865
865
|
|
866
866
|
args.merge!('command' => 'createPrivateGateway')
|
867
|
-
if not args.
|
867
|
+
if not args.has_key?('gateway')
|
868
868
|
raise ArgumentError, "Missing required argument 'gateway'"
|
869
869
|
end
|
870
|
-
if not args.
|
870
|
+
if not args.has_key?('ipaddress')
|
871
871
|
raise ArgumentError, "Missing required argument 'ipaddress'"
|
872
872
|
end
|
873
|
-
if not args.
|
873
|
+
if not args.has_key?('netmask')
|
874
874
|
raise ArgumentError, "Missing required argument 'netmask'"
|
875
875
|
end
|
876
|
-
if not args.
|
876
|
+
if not args.has_key?('vlan')
|
877
877
|
raise ArgumentError, "Missing required argument 'vlan'"
|
878
878
|
end
|
879
|
-
if not args.
|
879
|
+
if not args.has_key?('vpcid')
|
880
880
|
raise ArgumentError, "Missing required argument 'vpcid'"
|
881
881
|
end
|
882
882
|
|
@@ -920,7 +920,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
920
920
|
# id - the ID of the private gateway
|
921
921
|
|
922
922
|
args.merge!('command' => 'deletePrivateGateway')
|
923
|
-
if not args.
|
923
|
+
if not args.has_key?('id')
|
924
924
|
raise ArgumentError, "Missing required argument 'id'"
|
925
925
|
end
|
926
926
|
|
@@ -936,10 +936,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
936
936
|
# gatewayid - the gateway id we are creating static route for
|
937
937
|
|
938
938
|
args.merge!('command' => 'createStaticRoute')
|
939
|
-
if not args.
|
939
|
+
if not args.has_key?('cidr')
|
940
940
|
raise ArgumentError, "Missing required argument 'cidr'"
|
941
941
|
end
|
942
|
-
if not args.
|
942
|
+
if not args.has_key?('gatewayid')
|
943
943
|
raise ArgumentError, "Missing required argument 'gatewayid'"
|
944
944
|
end
|
945
945
|
|
@@ -954,7 +954,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
954
954
|
# id - the ID of the static route
|
955
955
|
|
956
956
|
args.merge!('command' => 'deleteStaticRoute')
|
957
|
-
if not args.
|
957
|
+
if not args.has_key?('id')
|
958
958
|
raise ArgumentError, "Missing required argument 'id'"
|
959
959
|
end
|
960
960
|
|
@@ -1042,13 +1042,13 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1042
1042
|
# querystring), you can send up to 2KB of data after base64 encoding.
|
1043
1043
|
|
1044
1044
|
args.merge!('command' => 'deployVirtualMachine')
|
1045
|
-
if not args.
|
1045
|
+
if not args.has_key?('serviceofferingid')
|
1046
1046
|
raise ArgumentError, "Missing required argument 'serviceofferingid'"
|
1047
1047
|
end
|
1048
|
-
if not args.
|
1048
|
+
if not args.has_key?('templateid')
|
1049
1049
|
raise ArgumentError, "Missing required argument 'templateid'"
|
1050
1050
|
end
|
1051
|
-
if not args.
|
1051
|
+
if not args.has_key?('zoneid')
|
1052
1052
|
raise ArgumentError, "Missing required argument 'zoneid'"
|
1053
1053
|
end
|
1054
1054
|
|
@@ -1064,7 +1064,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1064
1064
|
# id - The ID of the virtual machine
|
1065
1065
|
|
1066
1066
|
args.merge!('command' => 'destroyVirtualMachine')
|
1067
|
-
if not args.
|
1067
|
+
if not args.has_key?('id')
|
1068
1068
|
raise ArgumentError, "Missing required argument 'id'"
|
1069
1069
|
end
|
1070
1070
|
|
@@ -1079,7 +1079,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1079
1079
|
# id - The ID of the virtual machine
|
1080
1080
|
|
1081
1081
|
args.merge!('command' => 'rebootVirtualMachine')
|
1082
|
-
if not args.
|
1082
|
+
if not args.has_key?('id')
|
1083
1083
|
raise ArgumentError, "Missing required argument 'id'"
|
1084
1084
|
end
|
1085
1085
|
|
@@ -1096,7 +1096,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1096
1096
|
# oot admin only
|
1097
1097
|
|
1098
1098
|
args.merge!('command' => 'startVirtualMachine')
|
1099
|
-
if not args.
|
1099
|
+
if not args.has_key?('id')
|
1100
1100
|
raise ArgumentError, "Missing required argument 'id'"
|
1101
1101
|
end
|
1102
1102
|
|
@@ -1113,7 +1113,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1113
1113
|
# to be send to the backend). The caller knows the VM is stopped.
|
1114
1114
|
|
1115
1115
|
args.merge!('command' => 'stopVirtualMachine')
|
1116
|
-
if not args.
|
1116
|
+
if not args.has_key?('id')
|
1117
1117
|
raise ArgumentError, "Missing required argument 'id'"
|
1118
1118
|
end
|
1119
1119
|
|
@@ -1130,7 +1130,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1130
1130
|
# id - The ID of the virtual machine
|
1131
1131
|
|
1132
1132
|
args.merge!('command' => 'resetPasswordForVirtualMachine')
|
1133
|
-
if not args.
|
1133
|
+
if not args.has_key?('id')
|
1134
1134
|
raise ArgumentError, "Missing required argument 'id'"
|
1135
1135
|
end
|
1136
1136
|
|
@@ -1147,10 +1147,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1147
1147
|
# serviceofferingid - the service offering ID to apply to the virtual machine
|
1148
1148
|
|
1149
1149
|
args.merge!('command' => 'changeServiceForVirtualMachine')
|
1150
|
-
if not args.
|
1150
|
+
if not args.has_key?('id')
|
1151
1151
|
raise ArgumentError, "Missing required argument 'id'"
|
1152
1152
|
end
|
1153
|
-
if not args.
|
1153
|
+
if not args.has_key?('serviceofferingid')
|
1154
1154
|
raise ArgumentError, "Missing required argument 'serviceofferingid'"
|
1155
1155
|
end
|
1156
1156
|
|
@@ -1177,7 +1177,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1177
1177
|
# querystring), you can send up to 2KB of data after base64 encoding.
|
1178
1178
|
|
1179
1179
|
args.merge!('command' => 'updateVirtualMachine')
|
1180
|
-
if not args.
|
1180
|
+
if not args.has_key?('id')
|
1181
1181
|
raise ArgumentError, "Missing required argument 'id'"
|
1182
1182
|
end
|
1183
1183
|
|
@@ -1192,7 +1192,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1192
1192
|
# id - The ID of the virtual machine
|
1193
1193
|
|
1194
1194
|
args.merge!('command' => 'recoverVirtualMachine')
|
1195
|
-
if not args.
|
1195
|
+
if not args.has_key?('id')
|
1196
1196
|
raise ArgumentError, "Missing required argument 'id'"
|
1197
1197
|
end
|
1198
1198
|
|
@@ -1250,7 +1250,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1250
1250
|
# id - The ID of the virtual machine
|
1251
1251
|
|
1252
1252
|
args.merge!('command' => 'getVMPassword')
|
1253
|
-
if not args.
|
1253
|
+
if not args.has_key?('id')
|
1254
1254
|
raise ArgumentError, "Missing required argument 'id'"
|
1255
1255
|
end
|
1256
1256
|
|
@@ -1270,7 +1270,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1270
1270
|
# or migrating the root disk volume
|
1271
1271
|
|
1272
1272
|
args.merge!('command' => 'migrateVirtualMachine')
|
1273
|
-
if not args.
|
1273
|
+
if not args.has_key?('virtualmachineid')
|
1274
1274
|
raise ArgumentError, "Missing required argument 'virtualmachineid'"
|
1275
1275
|
end
|
1276
1276
|
|
@@ -1292,13 +1292,13 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1292
1292
|
# one with Basic Network support.
|
1293
1293
|
|
1294
1294
|
args.merge!('command' => 'assignVirtualMachine')
|
1295
|
-
if not args.
|
1295
|
+
if not args.has_key?('account')
|
1296
1296
|
raise ArgumentError, "Missing required argument 'account'"
|
1297
1297
|
end
|
1298
|
-
if not args.
|
1298
|
+
if not args.has_key?('domainid')
|
1299
1299
|
raise ArgumentError, "Missing required argument 'domainid'"
|
1300
1300
|
end
|
1301
|
-
if not args.
|
1301
|
+
if not args.has_key?('virtualmachineid')
|
1302
1302
|
raise ArgumentError, "Missing required argument 'virtualmachineid'"
|
1303
1303
|
end
|
1304
1304
|
|
@@ -1313,7 +1313,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1313
1313
|
# virtualmachineid - Virtual Machine ID
|
1314
1314
|
|
1315
1315
|
args.merge!('command' => 'restoreVirtualMachine')
|
1316
|
-
if not args.
|
1316
|
+
if not args.has_key?('virtualmachineid')
|
1317
1317
|
raise ArgumentError, "Missing required argument 'virtualmachineid'"
|
1318
1318
|
end
|
1319
1319
|
|
@@ -1336,7 +1336,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1336
1336
|
# true by default
|
1337
1337
|
|
1338
1338
|
args.merge!('command' => 'createRemoteAccessVpn')
|
1339
|
-
if not args.
|
1339
|
+
if not args.has_key?('publicipid')
|
1340
1340
|
raise ArgumentError, "Missing required argument 'publicipid'"
|
1341
1341
|
end
|
1342
1342
|
|
@@ -1351,7 +1351,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1351
1351
|
# publicipid - public ip address id of the vpn server
|
1352
1352
|
|
1353
1353
|
args.merge!('command' => 'deleteRemoteAccessVpn')
|
1354
|
-
if not args.
|
1354
|
+
if not args.has_key?('publicipid')
|
1355
1355
|
raise ArgumentError, "Missing required argument 'publicipid'"
|
1356
1356
|
end
|
1357
1357
|
|
@@ -1379,7 +1379,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1379
1379
|
# page - Pagination
|
1380
1380
|
|
1381
1381
|
args.merge!('command' => 'listRemoteAccessVpns')
|
1382
|
-
if not args.
|
1382
|
+
if not args.has_key?('publicipid')
|
1383
1383
|
raise ArgumentError, "Missing required argument 'publicipid'"
|
1384
1384
|
end
|
1385
1385
|
|
@@ -1409,19 +1409,19 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1409
1409
|
# name - name of this customer gateway
|
1410
1410
|
|
1411
1411
|
args.merge!('command' => 'createVpnCustomerGateway')
|
1412
|
-
if not args.
|
1412
|
+
if not args.has_key?('cidrlist')
|
1413
1413
|
raise ArgumentError, "Missing required argument 'cidrlist'"
|
1414
1414
|
end
|
1415
|
-
if not args.
|
1415
|
+
if not args.has_key?('esppolicy')
|
1416
1416
|
raise ArgumentError, "Missing required argument 'esppolicy'"
|
1417
1417
|
end
|
1418
|
-
if not args.
|
1418
|
+
if not args.has_key?('gateway')
|
1419
1419
|
raise ArgumentError, "Missing required argument 'gateway'"
|
1420
1420
|
end
|
1421
|
-
if not args.
|
1421
|
+
if not args.has_key?('ikepolicy')
|
1422
1422
|
raise ArgumentError, "Missing required argument 'ikepolicy'"
|
1423
1423
|
end
|
1424
|
-
if not args.
|
1424
|
+
if not args.has_key?('ipsecpsk')
|
1425
1425
|
raise ArgumentError, "Missing required argument 'ipsecpsk'"
|
1426
1426
|
end
|
1427
1427
|
|
@@ -1436,7 +1436,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1436
1436
|
# vpcid - public ip address id of the vpn gateway
|
1437
1437
|
|
1438
1438
|
args.merge!('command' => 'createVpnGateway')
|
1439
|
-
if not args.
|
1439
|
+
if not args.has_key?('vpcid')
|
1440
1440
|
raise ArgumentError, "Missing required argument 'vpcid'"
|
1441
1441
|
end
|
1442
1442
|
|
@@ -1452,10 +1452,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1452
1452
|
# s2svpngatewayid - id of the vpn gateway
|
1453
1453
|
|
1454
1454
|
args.merge!('command' => 'createVpnConnection')
|
1455
|
-
if not args.
|
1455
|
+
if not args.has_key?('s2scustomergatewayid')
|
1456
1456
|
raise ArgumentError, "Missing required argument 's2scustomergatewayid'"
|
1457
1457
|
end
|
1458
|
-
if not args.
|
1458
|
+
if not args.has_key?('s2svpngatewayid')
|
1459
1459
|
raise ArgumentError, "Missing required argument 's2svpngatewayid'"
|
1460
1460
|
end
|
1461
1461
|
|
@@ -1470,7 +1470,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1470
1470
|
# id - id of customer gateway
|
1471
1471
|
|
1472
1472
|
args.merge!('command' => 'deleteVpnCustomerGateway')
|
1473
|
-
if not args.
|
1473
|
+
if not args.has_key?('id')
|
1474
1474
|
raise ArgumentError, "Missing required argument 'id'"
|
1475
1475
|
end
|
1476
1476
|
|
@@ -1485,7 +1485,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1485
1485
|
# id - id of customer gateway
|
1486
1486
|
|
1487
1487
|
args.merge!('command' => 'deleteVpnGateway')
|
1488
|
-
if not args.
|
1488
|
+
if not args.has_key?('id')
|
1489
1489
|
raise ArgumentError, "Missing required argument 'id'"
|
1490
1490
|
end
|
1491
1491
|
|
@@ -1500,7 +1500,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1500
1500
|
# id - id of vpn connection
|
1501
1501
|
|
1502
1502
|
args.merge!('command' => 'deleteVpnConnection')
|
1503
|
-
if not args.
|
1503
|
+
if not args.has_key?('id')
|
1504
1504
|
raise ArgumentError, "Missing required argument 'id'"
|
1505
1505
|
end
|
1506
1506
|
|
@@ -1531,22 +1531,22 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1531
1531
|
# name - name of this customer gateway
|
1532
1532
|
|
1533
1533
|
args.merge!('command' => 'updateVpnCustomerGateway')
|
1534
|
-
if not args.
|
1534
|
+
if not args.has_key?('id')
|
1535
1535
|
raise ArgumentError, "Missing required argument 'id'"
|
1536
1536
|
end
|
1537
|
-
if not args.
|
1537
|
+
if not args.has_key?('cidrlist')
|
1538
1538
|
raise ArgumentError, "Missing required argument 'cidrlist'"
|
1539
1539
|
end
|
1540
|
-
if not args.
|
1540
|
+
if not args.has_key?('esppolicy')
|
1541
1541
|
raise ArgumentError, "Missing required argument 'esppolicy'"
|
1542
1542
|
end
|
1543
|
-
if not args.
|
1543
|
+
if not args.has_key?('gateway')
|
1544
1544
|
raise ArgumentError, "Missing required argument 'gateway'"
|
1545
1545
|
end
|
1546
|
-
if not args.
|
1546
|
+
if not args.has_key?('ikepolicy')
|
1547
1547
|
raise ArgumentError, "Missing required argument 'ikepolicy'"
|
1548
1548
|
end
|
1549
|
-
if not args.
|
1549
|
+
if not args.has_key?('ipsecpsk')
|
1550
1550
|
raise ArgumentError, "Missing required argument 'ipsecpsk'"
|
1551
1551
|
end
|
1552
1552
|
|
@@ -1564,7 +1564,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1564
1564
|
# used, domainId must also be used.
|
1565
1565
|
|
1566
1566
|
args.merge!('command' => 'resetVpnConnection')
|
1567
|
-
if not args.
|
1567
|
+
if not args.has_key?('id')
|
1568
1568
|
raise ArgumentError, "Missing required argument 'id'"
|
1569
1569
|
end
|
1570
1570
|
|
@@ -1664,10 +1664,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1664
1664
|
# this traffic on a XenServer host
|
1665
1665
|
|
1666
1666
|
args.merge!('command' => 'addTrafficType')
|
1667
|
-
if not args.
|
1667
|
+
if not args.has_key?('physicalnetworkid')
|
1668
1668
|
raise ArgumentError, "Missing required argument 'physicalnetworkid'"
|
1669
1669
|
end
|
1670
|
-
if not args.
|
1670
|
+
if not args.has_key?('traffictype')
|
1671
1671
|
raise ArgumentError, "Missing required argument 'traffictype'"
|
1672
1672
|
end
|
1673
1673
|
|
@@ -1682,7 +1682,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1682
1682
|
# id - traffic type id
|
1683
1683
|
|
1684
1684
|
args.merge!('command' => 'deleteTrafficType')
|
1685
|
-
if not args.
|
1685
|
+
if not args.has_key?('id')
|
1686
1686
|
raise ArgumentError, "Missing required argument 'id'"
|
1687
1687
|
end
|
1688
1688
|
|
@@ -1701,7 +1701,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1701
1701
|
# page - Pagination
|
1702
1702
|
|
1703
1703
|
args.merge!('command' => 'listTrafficTypes')
|
1704
|
-
if not args.
|
1704
|
+
if not args.has_key?('physicalnetworkid')
|
1705
1705
|
raise ArgumentError, "Missing required argument 'physicalnetworkid'"
|
1706
1706
|
end
|
1707
1707
|
|
@@ -1722,7 +1722,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1722
1722
|
# this traffic on a XenServer host
|
1723
1723
|
|
1724
1724
|
args.merge!('command' => 'updateTrafficType')
|
1725
|
-
if not args.
|
1725
|
+
if not args.has_key?('id')
|
1726
1726
|
raise ArgumentError, "Missing required argument 'id'"
|
1727
1727
|
end
|
1728
1728
|
|
@@ -1760,10 +1760,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1760
1760
|
# domainid - List events for the specified domain.
|
1761
1761
|
|
1762
1762
|
args.merge!('command' => 'generateUsageRecords')
|
1763
|
-
if not args.
|
1763
|
+
if not args.has_key?('enddate')
|
1764
1764
|
raise ArgumentError, "Missing required argument 'enddate'"
|
1765
1765
|
end
|
1766
|
-
if not args.
|
1766
|
+
if not args.has_key?('startdate')
|
1767
1767
|
raise ArgumentError, "Missing required argument 'startdate'"
|
1768
1768
|
end
|
1769
1769
|
|
@@ -1790,10 +1790,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1790
1790
|
# page - Pagination
|
1791
1791
|
|
1792
1792
|
args.merge!('command' => 'listUsageRecords')
|
1793
|
-
if not args.
|
1793
|
+
if not args.has_key?('enddate')
|
1794
1794
|
raise ArgumentError, "Missing required argument 'enddate'"
|
1795
1795
|
end
|
1796
|
-
if not args.
|
1796
|
+
if not args.has_key?('startdate')
|
1797
1797
|
raise ArgumentError, "Missing required argument 'startdate'"
|
1798
1798
|
end
|
1799
1799
|
|
@@ -1821,10 +1821,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1821
1821
|
# zoneid - Zone in which to add the external firewall appliance.
|
1822
1822
|
|
1823
1823
|
args.merge!('command' => 'addTrafficMonitor')
|
1824
|
-
if not args.
|
1824
|
+
if not args.has_key?('url')
|
1825
1825
|
raise ArgumentError, "Missing required argument 'url'"
|
1826
1826
|
end
|
1827
|
-
if not args.
|
1827
|
+
if not args.has_key?('zoneid')
|
1828
1828
|
raise ArgumentError, "Missing required argument 'zoneid'"
|
1829
1829
|
end
|
1830
1830
|
|
@@ -1839,7 +1839,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1839
1839
|
# id - Id of the Traffic Monitor Host.
|
1840
1840
|
|
1841
1841
|
args.merge!('command' => 'deleteTrafficMonitor')
|
1842
|
-
if not args.
|
1842
|
+
if not args.has_key?('id')
|
1843
1843
|
raise ArgumentError, "Missing required argument 'id'"
|
1844
1844
|
end
|
1845
1845
|
|
@@ -1858,7 +1858,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1858
1858
|
# page - Pagination
|
1859
1859
|
|
1860
1860
|
args.merge!('command' => 'listTrafficMonitors')
|
1861
|
-
if not args.
|
1861
|
+
if not args.has_key?('zoneid')
|
1862
1862
|
raise ArgumentError, "Missing required argument 'zoneid'"
|
1863
1863
|
end
|
1864
1864
|
|
@@ -1885,22 +1885,22 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1885
1885
|
# e timezone parameter, see Time Zone Format.
|
1886
1886
|
|
1887
1887
|
args.merge!('command' => 'createUser')
|
1888
|
-
if not args.
|
1888
|
+
if not args.has_key?('account')
|
1889
1889
|
raise ArgumentError, "Missing required argument 'account'"
|
1890
1890
|
end
|
1891
|
-
if not args.
|
1891
|
+
if not args.has_key?('email')
|
1892
1892
|
raise ArgumentError, "Missing required argument 'email'"
|
1893
1893
|
end
|
1894
|
-
if not args.
|
1894
|
+
if not args.has_key?('firstname')
|
1895
1895
|
raise ArgumentError, "Missing required argument 'firstname'"
|
1896
1896
|
end
|
1897
|
-
if not args.
|
1897
|
+
if not args.has_key?('lastname')
|
1898
1898
|
raise ArgumentError, "Missing required argument 'lastname'"
|
1899
1899
|
end
|
1900
|
-
if not args.
|
1900
|
+
if not args.has_key?('password')
|
1901
1901
|
raise ArgumentError, "Missing required argument 'password'"
|
1902
1902
|
end
|
1903
|
-
if not args.
|
1903
|
+
if not args.has_key?('username')
|
1904
1904
|
raise ArgumentError, "Missing required argument 'username'"
|
1905
1905
|
end
|
1906
1906
|
|
@@ -1915,7 +1915,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1915
1915
|
# id - Deletes a user
|
1916
1916
|
|
1917
1917
|
args.merge!('command' => 'deleteUser')
|
1918
|
-
if not args.
|
1918
|
+
if not args.has_key?('id')
|
1919
1919
|
raise ArgumentError, "Missing required argument 'id'"
|
1920
1920
|
end
|
1921
1921
|
|
@@ -1941,7 +1941,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1941
1941
|
# ey
|
1942
1942
|
|
1943
1943
|
args.merge!('command' => 'updateUser')
|
1944
|
-
if not args.
|
1944
|
+
if not args.has_key?('id')
|
1945
1945
|
raise ArgumentError, "Missing required argument 'id'"
|
1946
1946
|
end
|
1947
1947
|
|
@@ -1984,7 +1984,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1984
1984
|
# id - Disables user by user ID.
|
1985
1985
|
|
1986
1986
|
args.merge!('command' => 'disableUser')
|
1987
|
-
if not args.
|
1987
|
+
if not args.has_key?('id')
|
1988
1988
|
raise ArgumentError, "Missing required argument 'id'"
|
1989
1989
|
end
|
1990
1990
|
|
@@ -1999,7 +1999,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
1999
1999
|
# id - Enables user by user ID.
|
2000
2000
|
|
2001
2001
|
args.merge!('command' => 'enableUser')
|
2002
|
-
if not args.
|
2002
|
+
if not args.has_key?('id')
|
2003
2003
|
raise ArgumentError, "Missing required argument 'id'"
|
2004
2004
|
end
|
2005
2005
|
|
@@ -2014,7 +2014,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2014
2014
|
# userapikey - API key of the user
|
2015
2015
|
|
2016
2016
|
args.merge!('command' => 'getUser')
|
2017
|
-
if not args.
|
2017
|
+
if not args.has_key?('userapikey')
|
2018
2018
|
raise ArgumentError, "Missing required argument 'userapikey'"
|
2019
2019
|
end
|
2020
2020
|
|
@@ -2034,10 +2034,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2034
2034
|
# projectid - add vpn user to the specific project
|
2035
2035
|
|
2036
2036
|
args.merge!('command' => 'addVpnUser')
|
2037
|
-
if not args.
|
2037
|
+
if not args.has_key?('password')
|
2038
2038
|
raise ArgumentError, "Missing required argument 'password'"
|
2039
2039
|
end
|
2040
|
-
if not args.
|
2040
|
+
if not args.has_key?('username')
|
2041
2041
|
raise ArgumentError, "Missing required argument 'username'"
|
2042
2042
|
end
|
2043
2043
|
|
@@ -2056,7 +2056,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2056
2056
|
# projectid - remove vpn user from the project
|
2057
2057
|
|
2058
2058
|
args.merge!('command' => 'removeVpnUser')
|
2059
|
-
if not args.
|
2059
|
+
if not args.has_key?('username')
|
2060
2060
|
raise ArgumentError, "Missing required argument 'username'"
|
2061
2061
|
end
|
2062
2062
|
|
@@ -2117,16 +2117,16 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2117
2117
|
# is required when LB service provider is ElasticLoadBalancerVm
|
2118
2118
|
|
2119
2119
|
args.merge!('command' => 'createLoadBalancerRule')
|
2120
|
-
if not args.
|
2120
|
+
if not args.has_key?('algorithm')
|
2121
2121
|
raise ArgumentError, "Missing required argument 'algorithm'"
|
2122
2122
|
end
|
2123
|
-
if not args.
|
2123
|
+
if not args.has_key?('name')
|
2124
2124
|
raise ArgumentError, "Missing required argument 'name'"
|
2125
2125
|
end
|
2126
|
-
if not args.
|
2126
|
+
if not args.has_key?('privateport')
|
2127
2127
|
raise ArgumentError, "Missing required argument 'privateport'"
|
2128
2128
|
end
|
2129
|
-
if not args.
|
2129
|
+
if not args.has_key?('publicport')
|
2130
2130
|
raise ArgumentError, "Missing required argument 'publicport'"
|
2131
2131
|
end
|
2132
2132
|
|
@@ -2141,7 +2141,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2141
2141
|
# id - the ID of the load balancer rule
|
2142
2142
|
|
2143
2143
|
args.merge!('command' => 'deleteLoadBalancerRule')
|
2144
|
-
if not args.
|
2144
|
+
if not args.has_key?('id')
|
2145
2145
|
raise ArgumentError, "Missing required argument 'id'"
|
2146
2146
|
end
|
2147
2147
|
|
@@ -2159,10 +2159,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2159
2159
|
# emoved from the load balancer rule (i.e. virtualMachineIds=1,2,3)
|
2160
2160
|
|
2161
2161
|
args.merge!('command' => 'removeFromLoadBalancerRule')
|
2162
|
-
if not args.
|
2162
|
+
if not args.has_key?('id')
|
2163
2163
|
raise ArgumentError, "Missing required argument 'id'"
|
2164
2164
|
end
|
2165
|
-
if not args.
|
2165
|
+
if not args.has_key?('virtualmachineids')
|
2166
2166
|
raise ArgumentError, "Missing required argument 'virtualmachineids'"
|
2167
2167
|
end
|
2168
2168
|
|
@@ -2179,10 +2179,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2179
2179
|
# signed to the load balancer rule(i.e. virtualMachineIds=1,2,3)
|
2180
2180
|
|
2181
2181
|
args.merge!('command' => 'assignToLoadBalancerRule')
|
2182
|
-
if not args.
|
2182
|
+
if not args.has_key?('id')
|
2183
2183
|
raise ArgumentError, "Missing required argument 'id'"
|
2184
2184
|
end
|
2185
|
-
if not args.
|
2185
|
+
if not args.has_key?('virtualmachineids')
|
2186
2186
|
raise ArgumentError, "Missing required argument 'virtualmachineids'"
|
2187
2187
|
end
|
2188
2188
|
|
@@ -2203,13 +2203,13 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2203
2203
|
# e
|
2204
2204
|
|
2205
2205
|
args.merge!('command' => 'createLBStickinessPolicy')
|
2206
|
-
if not args.
|
2206
|
+
if not args.has_key?('lbruleid')
|
2207
2207
|
raise ArgumentError, "Missing required argument 'lbruleid'"
|
2208
2208
|
end
|
2209
|
-
if not args.
|
2209
|
+
if not args.has_key?('methodname')
|
2210
2210
|
raise ArgumentError, "Missing required argument 'methodname'"
|
2211
2211
|
end
|
2212
|
-
if not args.
|
2212
|
+
if not args.has_key?('name')
|
2213
2213
|
raise ArgumentError, "Missing required argument 'name'"
|
2214
2214
|
end
|
2215
2215
|
|
@@ -2224,7 +2224,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2224
2224
|
# id - the ID of the LB stickiness policy
|
2225
2225
|
|
2226
2226
|
args.merge!('command' => 'deleteLBStickinessPolicy')
|
2227
|
-
if not args.
|
2227
|
+
if not args.has_key?('id')
|
2228
2228
|
raise ArgumentError, "Missing required argument 'id'"
|
2229
2229
|
end
|
2230
2230
|
|
@@ -2273,7 +2273,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2273
2273
|
# page - Pagination
|
2274
2274
|
|
2275
2275
|
args.merge!('command' => 'listLBStickinessPolicies')
|
2276
|
-
if not args.
|
2276
|
+
if not args.has_key?('lbruleid')
|
2277
2277
|
raise ArgumentError, "Missing required argument 'lbruleid'"
|
2278
2278
|
end
|
2279
2279
|
|
@@ -2294,7 +2294,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2294
2294
|
# page - Pagination
|
2295
2295
|
|
2296
2296
|
args.merge!('command' => 'listLoadBalancerRuleInstances')
|
2297
|
-
if not args.
|
2297
|
+
if not args.has_key?('id')
|
2298
2298
|
raise ArgumentError, "Missing required argument 'id'"
|
2299
2299
|
end
|
2300
2300
|
|
@@ -2312,7 +2312,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2312
2312
|
# name - the name of the load balancer rule
|
2313
2313
|
|
2314
2314
|
args.merge!('command' => 'updateLoadBalancerRule')
|
2315
|
-
if not args.
|
2315
|
+
if not args.has_key?('id')
|
2316
2316
|
raise ArgumentError, "Missing required argument 'id'"
|
2317
2317
|
end
|
2318
2318
|
|
@@ -2350,13 +2350,13 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2350
2350
|
# her this parameter, or snapshotId has to be passed in
|
2351
2351
|
|
2352
2352
|
args.merge!('command' => 'createTemplate')
|
2353
|
-
if not args.
|
2353
|
+
if not args.has_key?('displaytext')
|
2354
2354
|
raise ArgumentError, "Missing required argument 'displaytext'"
|
2355
2355
|
end
|
2356
|
-
if not args.
|
2356
|
+
if not args.has_key?('name')
|
2357
2357
|
raise ArgumentError, "Missing required argument 'name'"
|
2358
2358
|
end
|
2359
|
-
if not args.
|
2359
|
+
if not args.has_key?('ostypeid')
|
2360
2360
|
raise ArgumentError, "Missing required argument 'ostypeid'"
|
2361
2361
|
end
|
2362
2362
|
|
@@ -2379,7 +2379,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2379
2379
|
# sortkey - sort key of the template, integer
|
2380
2380
|
|
2381
2381
|
args.merge!('command' => 'updateTemplate')
|
2382
|
-
if not args.
|
2382
|
+
if not args.has_key?('id')
|
2383
2383
|
raise ArgumentError, "Missing required argument 'id'"
|
2384
2384
|
end
|
2385
2385
|
|
@@ -2396,13 +2396,13 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2396
2396
|
# sourcezoneid - ID of the zone the template is currently hosted on.
|
2397
2397
|
|
2398
2398
|
args.merge!('command' => 'copyTemplate')
|
2399
|
-
if not args.
|
2399
|
+
if not args.has_key?('id')
|
2400
2400
|
raise ArgumentError, "Missing required argument 'id'"
|
2401
2401
|
end
|
2402
|
-
if not args.
|
2402
|
+
if not args.has_key?('destzoneid')
|
2403
2403
|
raise ArgumentError, "Missing required argument 'destzoneid'"
|
2404
2404
|
end
|
2405
|
-
if not args.
|
2405
|
+
if not args.has_key?('sourcezoneid')
|
2406
2406
|
raise ArgumentError, "Missing required argument 'sourcezoneid'"
|
2407
2407
|
end
|
2408
2408
|
|
@@ -2419,7 +2419,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2419
2419
|
# zoneid - the ID of zone of the template
|
2420
2420
|
|
2421
2421
|
args.merge!('command' => 'deleteTemplate')
|
2422
|
-
if not args.
|
2422
|
+
if not args.has_key?('id')
|
2423
2423
|
raise ArgumentError, "Missing required argument 'id'"
|
2424
2424
|
end
|
2425
2425
|
|
@@ -2457,7 +2457,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2457
2457
|
# page - Pagination
|
2458
2458
|
|
2459
2459
|
args.merge!('command' => 'listTemplates')
|
2460
|
-
if not args.
|
2460
|
+
if not args.has_key?('templatefilter')
|
2461
2461
|
raise ArgumentError, "Missing required argument 'templatefilter'"
|
2462
2462
|
end
|
2463
2463
|
|
@@ -2485,7 +2485,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2485
2485
|
# r has to be passed in.
|
2486
2486
|
|
2487
2487
|
args.merge!('command' => 'updateTemplatePermissions')
|
2488
|
-
if not args.
|
2488
|
+
if not args.has_key?('id')
|
2489
2489
|
raise ArgumentError, "Missing required argument 'id'"
|
2490
2490
|
end
|
2491
2491
|
|
@@ -2502,7 +2502,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2502
2502
|
# page - Pagination
|
2503
2503
|
|
2504
2504
|
args.merge!('command' => 'listTemplatePermissions')
|
2505
|
-
if not args.
|
2505
|
+
if not args.has_key?('id')
|
2506
2506
|
raise ArgumentError, "Missing required argument 'id'"
|
2507
2507
|
end
|
2508
2508
|
|
@@ -2520,10 +2520,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2520
2520
|
# zoneid - the ID of the zone where the ISO is originally located
|
2521
2521
|
|
2522
2522
|
args.merge!('command' => 'extractTemplate')
|
2523
|
-
if not args.
|
2523
|
+
if not args.has_key?('id')
|
2524
2524
|
raise ArgumentError, "Missing required argument 'id'"
|
2525
2525
|
end
|
2526
|
-
if not args.
|
2526
|
+
if not args.has_key?('mode')
|
2527
2527
|
raise ArgumentError, "Missing required argument 'mode'"
|
2528
2528
|
end
|
2529
2529
|
|
@@ -2540,10 +2540,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2540
2540
|
# zoneid - zone ID of the template to be prepared in primary storage(s).
|
2541
2541
|
|
2542
2542
|
args.merge!('command' => 'prepareTemplate')
|
2543
|
-
if not args.
|
2543
|
+
if not args.has_key?('templateid')
|
2544
2544
|
raise ArgumentError, "Missing required argument 'templateid'"
|
2545
2545
|
end
|
2546
|
-
if not args.
|
2546
|
+
if not args.has_key?('zoneid')
|
2547
2547
|
raise ArgumentError, "Missing required argument 'zoneid'"
|
2548
2548
|
end
|
2549
2549
|
|
@@ -2558,7 +2558,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2558
2558
|
# id - the ID of the router
|
2559
2559
|
|
2560
2560
|
args.merge!('command' => 'startRouter')
|
2561
|
-
if not args.
|
2561
|
+
if not args.has_key?('id')
|
2562
2562
|
raise ArgumentError, "Missing required argument 'id'"
|
2563
2563
|
end
|
2564
2564
|
|
@@ -2573,7 +2573,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2573
2573
|
# id - the ID of the router
|
2574
2574
|
|
2575
2575
|
args.merge!('command' => 'rebootRouter')
|
2576
|
-
if not args.
|
2576
|
+
if not args.has_key?('id')
|
2577
2577
|
raise ArgumentError, "Missing required argument 'id'"
|
2578
2578
|
end
|
2579
2579
|
|
@@ -2589,7 +2589,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2589
2589
|
# forced - Force stop the VM. The caller knows the VM is stopped.
|
2590
2590
|
|
2591
2591
|
args.merge!('command' => 'stopRouter')
|
2592
|
-
if not args.
|
2592
|
+
if not args.has_key?('id')
|
2593
2593
|
raise ArgumentError, "Missing required argument 'id'"
|
2594
2594
|
end
|
2595
2595
|
|
@@ -2604,7 +2604,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2604
2604
|
# id - the ID of the router
|
2605
2605
|
|
2606
2606
|
args.merge!('command' => 'destroyRouter')
|
2607
|
-
if not args.
|
2607
|
+
if not args.has_key?('id')
|
2608
2608
|
raise ArgumentError, "Missing required argument 'id'"
|
2609
2609
|
end
|
2610
2610
|
|
@@ -2620,10 +2620,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2620
2620
|
# serviceofferingid - the service offering ID to apply to the domain router
|
2621
2621
|
|
2622
2622
|
args.merge!('command' => 'changeServiceForRouter')
|
2623
|
-
if not args.
|
2623
|
+
if not args.has_key?('id')
|
2624
2624
|
raise ArgumentError, "Missing required argument 'id'"
|
2625
2625
|
end
|
2626
|
-
if not args.
|
2626
|
+
if not args.has_key?('serviceofferingid')
|
2627
2627
|
raise ArgumentError, "Missing required argument 'serviceofferingid'"
|
2628
2628
|
end
|
2629
2629
|
|
@@ -2671,7 +2671,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2671
2671
|
# nspid - the network service provider ID of the virtual router element
|
2672
2672
|
|
2673
2673
|
args.merge!('command' => 'createVirtualRouterElement')
|
2674
|
-
if not args.
|
2674
|
+
if not args.has_key?('nspid')
|
2675
2675
|
raise ArgumentError, "Missing required argument 'nspid'"
|
2676
2676
|
end
|
2677
2677
|
|
@@ -2687,10 +2687,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2687
2687
|
# enabled - Enabled/Disabled the service provider
|
2688
2688
|
|
2689
2689
|
args.merge!('command' => 'configureVirtualRouterElement')
|
2690
|
-
if not args.
|
2690
|
+
if not args.has_key?('id')
|
2691
2691
|
raise ArgumentError, "Missing required argument 'id'"
|
2692
2692
|
end
|
2693
|
-
if not args.
|
2693
|
+
if not args.has_key?('enabled')
|
2694
2694
|
raise ArgumentError, "Missing required argument 'enabled'"
|
2695
2695
|
end
|
2696
2696
|
|
@@ -2726,10 +2726,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2726
2726
|
# domainid - domain ID of the account owning a project
|
2727
2727
|
|
2728
2728
|
args.merge!('command' => 'createProject')
|
2729
|
-
if not args.
|
2729
|
+
if not args.has_key?('displaytext')
|
2730
2730
|
raise ArgumentError, "Missing required argument 'displaytext'"
|
2731
2731
|
end
|
2732
|
-
if not args.
|
2732
|
+
if not args.has_key?('name')
|
2733
2733
|
raise ArgumentError, "Missing required argument 'name'"
|
2734
2734
|
end
|
2735
2735
|
|
@@ -2744,7 +2744,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2744
2744
|
# id - id of the project to be deleted
|
2745
2745
|
|
2746
2746
|
args.merge!('command' => 'deleteProject')
|
2747
|
-
if not args.
|
2747
|
+
if not args.has_key?('id')
|
2748
2748
|
raise ArgumentError, "Missing required argument 'id'"
|
2749
2749
|
end
|
2750
2750
|
|
@@ -2761,7 +2761,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2761
2761
|
# displaytext - display text of the project
|
2762
2762
|
|
2763
2763
|
args.merge!('command' => 'updateProject')
|
2764
|
-
if not args.
|
2764
|
+
if not args.has_key?('id')
|
2765
2765
|
raise ArgumentError, "Missing required argument 'id'"
|
2766
2766
|
end
|
2767
2767
|
|
@@ -2776,7 +2776,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2776
2776
|
# id - id of the project to be modified
|
2777
2777
|
|
2778
2778
|
args.merge!('command' => 'activateProject')
|
2779
|
-
if not args.
|
2779
|
+
if not args.has_key?('id')
|
2780
2780
|
raise ArgumentError, "Missing required argument 'id'"
|
2781
2781
|
end
|
2782
2782
|
|
@@ -2791,7 +2791,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2791
2791
|
# id - id of the project to be suspended
|
2792
2792
|
|
2793
2793
|
args.merge!('command' => 'suspendProject')
|
2794
|
-
if not args.
|
2794
|
+
if not args.has_key?('id')
|
2795
2795
|
raise ArgumentError, "Missing required argument 'id'"
|
2796
2796
|
end
|
2797
2797
|
|
@@ -2866,7 +2866,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2866
2866
|
# cified with domainId
|
2867
2867
|
|
2868
2868
|
args.merge!('command' => 'updateProjectInvitation')
|
2869
|
-
if not args.
|
2869
|
+
if not args.has_key?('projectid')
|
2870
2870
|
raise ArgumentError, "Missing required argument 'projectid'"
|
2871
2871
|
end
|
2872
2872
|
|
@@ -2881,7 +2881,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2881
2881
|
# id - id of the invitation
|
2882
2882
|
|
2883
2883
|
args.merge!('command' => 'deleteProjectInvitation')
|
2884
|
-
if not args.
|
2884
|
+
if not args.has_key?('id')
|
2885
2885
|
raise ArgumentError, "Missing required argument 'id'"
|
2886
2886
|
end
|
2887
2887
|
|
@@ -2897,10 +2897,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2897
2897
|
# virtualmachineid - the ID of the virtual machine
|
2898
2898
|
|
2899
2899
|
args.merge!('command' => 'attachIso')
|
2900
|
-
if not args.
|
2900
|
+
if not args.has_key?('id')
|
2901
2901
|
raise ArgumentError, "Missing required argument 'id'"
|
2902
2902
|
end
|
2903
|
-
if not args.
|
2903
|
+
if not args.has_key?('virtualmachineid')
|
2904
2904
|
raise ArgumentError, "Missing required argument 'virtualmachineid'"
|
2905
2905
|
end
|
2906
2906
|
|
@@ -2915,7 +2915,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2915
2915
|
# virtualmachineid - The ID of the virtual machine
|
2916
2916
|
|
2917
2917
|
args.merge!('command' => 'detachIso')
|
2918
|
-
if not args.
|
2918
|
+
if not args.has_key?('virtualmachineid')
|
2919
2919
|
raise ArgumentError, "Missing required argument 'virtualmachineid'"
|
2920
2920
|
end
|
2921
2921
|
|
@@ -2977,7 +2977,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2977
2977
|
# sortkey - sort key of the template, integer
|
2978
2978
|
|
2979
2979
|
args.merge!('command' => 'updateIso')
|
2980
|
-
if not args.
|
2980
|
+
if not args.has_key?('id')
|
2981
2981
|
raise ArgumentError, "Missing required argument 'id'"
|
2982
2982
|
end
|
2983
2983
|
|
@@ -2994,7 +2994,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
2994
2994
|
# be deleted from all the zones
|
2995
2995
|
|
2996
2996
|
args.merge!('command' => 'deleteIso')
|
2997
|
-
if not args.
|
2997
|
+
if not args.has_key?('id')
|
2998
2998
|
raise ArgumentError, "Missing required argument 'id'"
|
2999
2999
|
end
|
3000
3000
|
|
@@ -3011,13 +3011,13 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3011
3011
|
# sourcezoneid - ID of the zone the template is currently hosted on.
|
3012
3012
|
|
3013
3013
|
args.merge!('command' => 'copyIso')
|
3014
|
-
if not args.
|
3014
|
+
if not args.has_key?('id')
|
3015
3015
|
raise ArgumentError, "Missing required argument 'id'"
|
3016
3016
|
end
|
3017
|
-
if not args.
|
3017
|
+
if not args.has_key?('destzoneid')
|
3018
3018
|
raise ArgumentError, "Missing required argument 'destzoneid'"
|
3019
3019
|
end
|
3020
|
-
if not args.
|
3020
|
+
if not args.has_key?('sourcezoneid')
|
3021
3021
|
raise ArgumentError, "Missing required argument 'sourcezoneid'"
|
3022
3022
|
end
|
3023
3023
|
|
@@ -3041,7 +3041,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3041
3041
|
# r has to be passed in.
|
3042
3042
|
|
3043
3043
|
args.merge!('command' => 'updateIsoPermissions')
|
3044
|
-
if not args.
|
3044
|
+
if not args.has_key?('id')
|
3045
3045
|
raise ArgumentError, "Missing required argument 'id'"
|
3046
3046
|
end
|
3047
3047
|
|
@@ -3058,7 +3058,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3058
3058
|
# page - Pagination
|
3059
3059
|
|
3060
3060
|
args.merge!('command' => 'listIsoPermissions')
|
3061
|
-
if not args.
|
3061
|
+
if not args.has_key?('id')
|
3062
3062
|
raise ArgumentError, "Missing required argument 'id'"
|
3063
3063
|
end
|
3064
3064
|
|
@@ -3076,10 +3076,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3076
3076
|
# zoneid - the ID of the zone where the ISO is originally located
|
3077
3077
|
|
3078
3078
|
args.merge!('command' => 'extractIso')
|
3079
|
-
if not args.
|
3079
|
+
if not args.has_key?('id')
|
3080
3080
|
raise ArgumentError, "Missing required argument 'id'"
|
3081
3081
|
end
|
3082
|
-
if not args.
|
3082
|
+
if not args.has_key?('mode')
|
3083
3083
|
raise ArgumentError, "Missing required argument 'mode'"
|
3084
3084
|
end
|
3085
3085
|
|
@@ -3104,22 +3104,22 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3104
3104
|
# hosttags - list of tags to be added to the host
|
3105
3105
|
|
3106
3106
|
args.merge!('command' => 'addHost')
|
3107
|
-
if not args.
|
3107
|
+
if not args.has_key?('hypervisor')
|
3108
3108
|
raise ArgumentError, "Missing required argument 'hypervisor'"
|
3109
3109
|
end
|
3110
|
-
if not args.
|
3110
|
+
if not args.has_key?('password')
|
3111
3111
|
raise ArgumentError, "Missing required argument 'password'"
|
3112
3112
|
end
|
3113
|
-
if not args.
|
3113
|
+
if not args.has_key?('podid')
|
3114
3114
|
raise ArgumentError, "Missing required argument 'podid'"
|
3115
3115
|
end
|
3116
|
-
if not args.
|
3116
|
+
if not args.has_key?('url')
|
3117
3117
|
raise ArgumentError, "Missing required argument 'url'"
|
3118
3118
|
end
|
3119
|
-
if not args.
|
3119
|
+
if not args.has_key?('username')
|
3120
3120
|
raise ArgumentError, "Missing required argument 'username'"
|
3121
3121
|
end
|
3122
|
-
if not args.
|
3122
|
+
if not args.has_key?('zoneid')
|
3123
3123
|
raise ArgumentError, "Missing required argument 'zoneid'"
|
3124
3124
|
end
|
3125
3125
|
|
@@ -3134,7 +3134,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3134
3134
|
# id - the host ID
|
3135
3135
|
|
3136
3136
|
args.merge!('command' => 'reconnectHost')
|
3137
|
-
if not args.
|
3137
|
+
if not args.has_key?('id')
|
3138
3138
|
raise ArgumentError, "Missing required argument 'id'"
|
3139
3139
|
end
|
3140
3140
|
|
@@ -3154,7 +3154,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3154
3154
|
# url - the new uri for the secondary storage: nfs://host/path
|
3155
3155
|
|
3156
3156
|
args.merge!('command' => 'updateHost')
|
3157
|
-
if not args.
|
3157
|
+
if not args.has_key?('id')
|
3158
3158
|
raise ArgumentError, "Missing required argument 'id'"
|
3159
3159
|
end
|
3160
3160
|
|
@@ -3173,7 +3173,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3173
3173
|
# created on this local storage will be destroyed
|
3174
3174
|
|
3175
3175
|
args.merge!('command' => 'deleteHost')
|
3176
|
-
if not args.
|
3176
|
+
if not args.has_key?('id')
|
3177
3177
|
raise ArgumentError, "Missing required argument 'id'"
|
3178
3178
|
end
|
3179
3179
|
|
@@ -3188,7 +3188,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3188
3188
|
# id - the host ID
|
3189
3189
|
|
3190
3190
|
args.merge!('command' => 'prepareHostForMaintenance')
|
3191
|
-
if not args.
|
3191
|
+
if not args.has_key?('id')
|
3192
3192
|
raise ArgumentError, "Missing required argument 'id'"
|
3193
3193
|
end
|
3194
3194
|
|
@@ -3203,7 +3203,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3203
3203
|
# id - the host ID
|
3204
3204
|
|
3205
3205
|
args.merge!('command' => 'cancelHostMaintenance')
|
3206
|
-
if not args.
|
3206
|
+
if not args.has_key?('id')
|
3207
3207
|
raise ArgumentError, "Missing required argument 'id'"
|
3208
3208
|
end
|
3209
3209
|
|
@@ -3249,7 +3249,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3249
3249
|
# zoneid - the Zone ID for the secondary storage
|
3250
3250
|
|
3251
3251
|
args.merge!('command' => 'addSecondaryStorage')
|
3252
|
-
if not args.
|
3252
|
+
if not args.has_key?('url')
|
3253
3253
|
raise ArgumentError, "Missing required argument 'url'"
|
3254
3254
|
end
|
3255
3255
|
|
@@ -3267,10 +3267,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3267
3267
|
# hostid - the host ID
|
3268
3268
|
|
3269
3269
|
args.merge!('command' => 'updateHostPassword')
|
3270
|
-
if not args.
|
3270
|
+
if not args.has_key?('password')
|
3271
3271
|
raise ArgumentError, "Missing required argument 'password'"
|
3272
3272
|
end
|
3273
|
-
if not args.
|
3273
|
+
if not args.has_key?('username')
|
3274
3274
|
raise ArgumentError, "Missing required argument 'username'"
|
3275
3275
|
end
|
3276
3276
|
|
@@ -3300,22 +3300,22 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3300
3300
|
# e timezone parameter, see Time Zone Format.
|
3301
3301
|
|
3302
3302
|
args.merge!('command' => 'createAccount')
|
3303
|
-
if not args.
|
3303
|
+
if not args.has_key?('accounttype')
|
3304
3304
|
raise ArgumentError, "Missing required argument 'accounttype'"
|
3305
3305
|
end
|
3306
|
-
if not args.
|
3306
|
+
if not args.has_key?('email')
|
3307
3307
|
raise ArgumentError, "Missing required argument 'email'"
|
3308
3308
|
end
|
3309
|
-
if not args.
|
3309
|
+
if not args.has_key?('firstname')
|
3310
3310
|
raise ArgumentError, "Missing required argument 'firstname'"
|
3311
3311
|
end
|
3312
|
-
if not args.
|
3312
|
+
if not args.has_key?('lastname')
|
3313
3313
|
raise ArgumentError, "Missing required argument 'lastname'"
|
3314
3314
|
end
|
3315
|
-
if not args.
|
3315
|
+
if not args.has_key?('password')
|
3316
3316
|
raise ArgumentError, "Missing required argument 'password'"
|
3317
3317
|
end
|
3318
|
-
if not args.
|
3318
|
+
if not args.has_key?('username')
|
3319
3319
|
raise ArgumentError, "Missing required argument 'username'"
|
3320
3320
|
end
|
3321
3321
|
|
@@ -3330,7 +3330,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3330
3330
|
# id - Account id
|
3331
3331
|
|
3332
3332
|
args.merge!('command' => 'deleteAccount')
|
3333
|
-
if not args.
|
3333
|
+
if not args.has_key?('id')
|
3334
3334
|
raise ArgumentError, "Missing required argument 'id'"
|
3335
3335
|
end
|
3336
3336
|
|
@@ -3351,7 +3351,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3351
3351
|
# update domainName with NULL value
|
3352
3352
|
|
3353
3353
|
args.merge!('command' => 'updateAccount')
|
3354
|
-
if not args.
|
3354
|
+
if not args.has_key?('newname')
|
3355
3355
|
raise ArgumentError, "Missing required argument 'newname'"
|
3356
3356
|
end
|
3357
3357
|
|
@@ -3369,7 +3369,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3369
3369
|
# id - Account id
|
3370
3370
|
|
3371
3371
|
args.merge!('command' => 'disableAccount')
|
3372
|
-
if not args.
|
3372
|
+
if not args.has_key?('lock')
|
3373
3373
|
raise ArgumentError, "Missing required argument 'lock'"
|
3374
3374
|
end
|
3375
3375
|
|
@@ -3429,7 +3429,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3429
3429
|
# email - email to which invitation to the project is going to be sent
|
3430
3430
|
|
3431
3431
|
args.merge!('command' => 'addAccountToProject')
|
3432
|
-
if not args.
|
3432
|
+
if not args.has_key?('projectid')
|
3433
3433
|
raise ArgumentError, "Missing required argument 'projectid'"
|
3434
3434
|
end
|
3435
3435
|
|
@@ -3445,10 +3445,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3445
3445
|
# projectid - id of the project to remove the account from
|
3446
3446
|
|
3447
3447
|
args.merge!('command' => 'deleteAccountFromProject')
|
3448
|
-
if not args.
|
3448
|
+
if not args.has_key?('account')
|
3449
3449
|
raise ArgumentError, "Missing required argument 'account'"
|
3450
3450
|
end
|
3451
|
-
if not args.
|
3451
|
+
if not args.has_key?('projectid')
|
3452
3452
|
raise ArgumentError, "Missing required argument 'projectid'"
|
3453
3453
|
end
|
3454
3454
|
|
@@ -3469,7 +3469,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3469
3469
|
# page - Pagination
|
3470
3470
|
|
3471
3471
|
args.merge!('command' => 'listProjectAccounts')
|
3472
|
-
if not args.
|
3472
|
+
if not args.has_key?('projectid')
|
3473
3473
|
raise ArgumentError, "Missing required argument 'projectid'"
|
3474
3474
|
end
|
3475
3475
|
|
@@ -3489,10 +3489,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3489
3489
|
# v/xvdf* 6 - /dev/xvdg* 7 - /dev/xvdh* 8 - /dev/xvdi* 9 - /dev/xvdj
|
3490
3490
|
|
3491
3491
|
args.merge!('command' => 'attachVolume')
|
3492
|
-
if not args.
|
3492
|
+
if not args.has_key?('id')
|
3493
3493
|
raise ArgumentError, "Missing required argument 'id'"
|
3494
3494
|
end
|
3495
|
-
if not args.
|
3495
|
+
if not args.has_key?('virtualmachineid')
|
3496
3496
|
raise ArgumentError, "Missing required argument 'virtualmachineid'"
|
3497
3497
|
end
|
3498
3498
|
|
@@ -3516,16 +3516,16 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3516
3516
|
# must also be used.
|
3517
3517
|
|
3518
3518
|
args.merge!('command' => 'uploadVolume')
|
3519
|
-
if not args.
|
3519
|
+
if not args.has_key?('format')
|
3520
3520
|
raise ArgumentError, "Missing required argument 'format'"
|
3521
3521
|
end
|
3522
|
-
if not args.
|
3522
|
+
if not args.has_key?('name')
|
3523
3523
|
raise ArgumentError, "Missing required argument 'name'"
|
3524
3524
|
end
|
3525
|
-
if not args.
|
3525
|
+
if not args.has_key?('url')
|
3526
3526
|
raise ArgumentError, "Missing required argument 'url'"
|
3527
3527
|
end
|
3528
|
-
if not args.
|
3528
|
+
if not args.has_key?('zoneid')
|
3529
3529
|
raise ArgumentError, "Missing required argument 'zoneid'"
|
3530
3530
|
end
|
3531
3531
|
|
@@ -3570,7 +3570,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3570
3570
|
# zoneid - the ID of the availability zone
|
3571
3571
|
|
3572
3572
|
args.merge!('command' => 'createVolume')
|
3573
|
-
if not args.
|
3573
|
+
if not args.has_key?('name')
|
3574
3574
|
raise ArgumentError, "Missing required argument 'name'"
|
3575
3575
|
end
|
3576
3576
|
|
@@ -3585,7 +3585,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3585
3585
|
# id - The ID of the disk volume
|
3586
3586
|
|
3587
3587
|
args.merge!('command' => 'deleteVolume')
|
3588
|
-
if not args.
|
3588
|
+
if not args.has_key?('id')
|
3589
3589
|
raise ArgumentError, "Missing required argument 'id'"
|
3590
3590
|
end
|
3591
3591
|
|
@@ -3635,13 +3635,13 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3635
3635
|
# url - the url to which the volume would be extracted
|
3636
3636
|
|
3637
3637
|
args.merge!('command' => 'extractVolume')
|
3638
|
-
if not args.
|
3638
|
+
if not args.has_key?('id')
|
3639
3639
|
raise ArgumentError, "Missing required argument 'id'"
|
3640
3640
|
end
|
3641
|
-
if not args.
|
3641
|
+
if not args.has_key?('mode')
|
3642
3642
|
raise ArgumentError, "Missing required argument 'mode'"
|
3643
3643
|
end
|
3644
|
-
if not args.
|
3644
|
+
if not args.has_key?('zoneid')
|
3645
3645
|
raise ArgumentError, "Missing required argument 'zoneid'"
|
3646
3646
|
end
|
3647
3647
|
|
@@ -3657,10 +3657,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3657
3657
|
# volumeid - the ID of the volume
|
3658
3658
|
|
3659
3659
|
args.merge!('command' => 'migrateVolume')
|
3660
|
-
if not args.
|
3660
|
+
if not args.has_key?('storageid')
|
3661
3661
|
raise ArgumentError, "Missing required argument 'storageid'"
|
3662
3662
|
end
|
3663
|
-
if not args.
|
3663
|
+
if not args.has_key?('volumeid')
|
3664
3664
|
raise ArgumentError, "Missing required argument 'volumeid'"
|
3665
3665
|
end
|
3666
3666
|
|
@@ -3675,7 +3675,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3675
3675
|
# id - The ID of the system virtual machine
|
3676
3676
|
|
3677
3677
|
args.merge!('command' => 'startSystemVm')
|
3678
|
-
if not args.
|
3678
|
+
if not args.has_key?('id')
|
3679
3679
|
raise ArgumentError, "Missing required argument 'id'"
|
3680
3680
|
end
|
3681
3681
|
|
@@ -3690,7 +3690,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3690
3690
|
# id - The ID of the system virtual machine
|
3691
3691
|
|
3692
3692
|
args.merge!('command' => 'rebootSystemVm')
|
3693
|
-
if not args.
|
3693
|
+
if not args.has_key?('id')
|
3694
3694
|
raise ArgumentError, "Missing required argument 'id'"
|
3695
3695
|
end
|
3696
3696
|
|
@@ -3706,7 +3706,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3706
3706
|
# forced - Force stop the VM. The caller knows the VM is stopped.
|
3707
3707
|
|
3708
3708
|
args.merge!('command' => 'stopSystemVm')
|
3709
|
-
if not args.
|
3709
|
+
if not args.has_key?('id')
|
3710
3710
|
raise ArgumentError, "Missing required argument 'id'"
|
3711
3711
|
end
|
3712
3712
|
|
@@ -3721,7 +3721,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3721
3721
|
# id - The ID of the system virtual machine
|
3722
3722
|
|
3723
3723
|
args.merge!('command' => 'destroySystemVm')
|
3724
|
-
if not args.
|
3724
|
+
if not args.has_key?('id')
|
3725
3725
|
raise ArgumentError, "Missing required argument 'id'"
|
3726
3726
|
end
|
3727
3727
|
|
@@ -3761,10 +3761,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3761
3761
|
# virtualmachineid - the ID of the virtual machine
|
3762
3762
|
|
3763
3763
|
args.merge!('command' => 'migrateSystemVm')
|
3764
|
-
if not args.
|
3764
|
+
if not args.has_key?('hostid')
|
3765
3765
|
raise ArgumentError, "Missing required argument 'hostid'"
|
3766
3766
|
end
|
3767
|
-
if not args.
|
3767
|
+
if not args.has_key?('virtualmachineid')
|
3768
3768
|
raise ArgumentError, "Missing required argument 'virtualmachineid'"
|
3769
3769
|
end
|
3770
3770
|
|
@@ -3781,10 +3781,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3781
3781
|
# serviceofferingid - the service offering ID to apply to the system vm
|
3782
3782
|
|
3783
3783
|
args.merge!('command' => 'changeServiceForSystemVm')
|
3784
|
-
if not args.
|
3784
|
+
if not args.has_key?('id')
|
3785
3785
|
raise ArgumentError, "Missing required argument 'id'"
|
3786
3786
|
end
|
3787
|
-
if not args.
|
3787
|
+
if not args.has_key?('serviceofferingid')
|
3788
3788
|
raise ArgumentError, "Missing required argument 'serviceofferingid'"
|
3789
3789
|
end
|
3790
3790
|
|
@@ -3805,7 +3805,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3805
3805
|
# projectid - Deploy vm for the project
|
3806
3806
|
|
3807
3807
|
args.merge!('command' => 'createSecurityGroup')
|
3808
|
-
if not args.
|
3808
|
+
if not args.has_key?('name')
|
3809
3809
|
raise ArgumentError, "Missing required argument 'name'"
|
3810
3810
|
end
|
3811
3811
|
|
@@ -3864,7 +3864,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3864
3864
|
# id - The ID of the ingress rule
|
3865
3865
|
|
3866
3866
|
args.merge!('command' => 'revokeSecurityGroupIngress')
|
3867
|
-
if not args.
|
3867
|
+
if not args.has_key?('id')
|
3868
3868
|
raise ArgumentError, "Missing required argument 'id'"
|
3869
3869
|
end
|
3870
3870
|
|
@@ -3906,7 +3906,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3906
3906
|
# id - The ID of the egress rule
|
3907
3907
|
|
3908
3908
|
args.merge!('command' => 'revokeSecurityGroupEgress')
|
3909
|
-
if not args.
|
3909
|
+
if not args.has_key?('id')
|
3910
3910
|
raise ArgumentError, "Missing required argument 'id'"
|
3911
3911
|
end
|
3912
3912
|
|
@@ -3977,13 +3977,13 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3977
3977
|
# tags - the tags for the storage pool
|
3978
3978
|
|
3979
3979
|
args.merge!('command' => 'createStoragePool')
|
3980
|
-
if not args.
|
3980
|
+
if not args.has_key?('name')
|
3981
3981
|
raise ArgumentError, "Missing required argument 'name'"
|
3982
3982
|
end
|
3983
|
-
if not args.
|
3983
|
+
if not args.has_key?('url')
|
3984
3984
|
raise ArgumentError, "Missing required argument 'url'"
|
3985
3985
|
end
|
3986
|
-
if not args.
|
3986
|
+
if not args.has_key?('zoneid')
|
3987
3987
|
raise ArgumentError, "Missing required argument 'zoneid'"
|
3988
3988
|
end
|
3989
3989
|
|
@@ -3999,7 +3999,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
3999
3999
|
# tags - comma-separated list of tags for the storage pool
|
4000
4000
|
|
4001
4001
|
args.merge!('command' => 'updateStoragePool')
|
4002
|
-
if not args.
|
4002
|
+
if not args.has_key?('id')
|
4003
4003
|
raise ArgumentError, "Missing required argument 'id'"
|
4004
4004
|
end
|
4005
4005
|
|
@@ -4016,7 +4016,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4016
4016
|
# e as a part of pool removal)
|
4017
4017
|
|
4018
4018
|
args.merge!('command' => 'deleteStoragePool')
|
4019
|
-
if not args.
|
4019
|
+
if not args.has_key?('id')
|
4020
4020
|
raise ArgumentError, "Missing required argument 'id'"
|
4021
4021
|
end
|
4022
4022
|
|
@@ -4031,7 +4031,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4031
4031
|
# id - Primary storage ID
|
4032
4032
|
|
4033
4033
|
args.merge!('command' => 'enableStorageMaintenance')
|
4034
|
-
if not args.
|
4034
|
+
if not args.has_key?('id')
|
4035
4035
|
raise ArgumentError, "Missing required argument 'id'"
|
4036
4036
|
end
|
4037
4037
|
|
@@ -4046,7 +4046,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4046
4046
|
# id - the primary storage ID
|
4047
4047
|
|
4048
4048
|
args.merge!('command' => 'cancelStorageMaintenance')
|
4049
|
-
if not args.
|
4049
|
+
if not args.has_key?('id')
|
4050
4050
|
raise ArgumentError, "Missing required argument 'id'"
|
4051
4051
|
end
|
4052
4052
|
|
@@ -4067,7 +4067,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4067
4067
|
# Y.
|
4068
4068
|
|
4069
4069
|
args.merge!('command' => 'createSnapshot')
|
4070
|
-
if not args.
|
4070
|
+
if not args.has_key?('volumeid')
|
4071
4071
|
raise ArgumentError, "Missing required argument 'volumeid'"
|
4072
4072
|
end
|
4073
4073
|
|
@@ -4112,7 +4112,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4112
4112
|
# id - The ID of the snapshot
|
4113
4113
|
|
4114
4114
|
args.merge!('command' => 'deleteSnapshot')
|
4115
|
-
if not args.
|
4115
|
+
if not args.has_key?('id')
|
4116
4116
|
raise ArgumentError, "Missing required argument 'id'"
|
4117
4117
|
end
|
4118
4118
|
|
@@ -4133,19 +4133,19 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4133
4133
|
# volumeid - the ID of the disk volume
|
4134
4134
|
|
4135
4135
|
args.merge!('command' => 'createSnapshotPolicy')
|
4136
|
-
if not args.
|
4136
|
+
if not args.has_key?('intervaltype')
|
4137
4137
|
raise ArgumentError, "Missing required argument 'intervaltype'"
|
4138
4138
|
end
|
4139
|
-
if not args.
|
4139
|
+
if not args.has_key?('maxsnaps')
|
4140
4140
|
raise ArgumentError, "Missing required argument 'maxsnaps'"
|
4141
4141
|
end
|
4142
|
-
if not args.
|
4142
|
+
if not args.has_key?('schedule')
|
4143
4143
|
raise ArgumentError, "Missing required argument 'schedule'"
|
4144
4144
|
end
|
4145
|
-
if not args.
|
4145
|
+
if not args.has_key?('timezone')
|
4146
4146
|
raise ArgumentError, "Missing required argument 'timezone'"
|
4147
4147
|
end
|
4148
|
-
if not args.
|
4148
|
+
if not args.has_key?('volumeid')
|
4149
4149
|
raise ArgumentError, "Missing required argument 'volumeid'"
|
4150
4150
|
end
|
4151
4151
|
|
@@ -4177,7 +4177,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4177
4177
|
# page - Pagination
|
4178
4178
|
|
4179
4179
|
args.merge!('command' => 'listSnapshotPolicies')
|
4180
|
-
if not args.
|
4180
|
+
if not args.has_key?('volumeid')
|
4181
4181
|
raise ArgumentError, "Missing required argument 'volumeid'"
|
4182
4182
|
end
|
4183
4183
|
|
@@ -4238,19 +4238,19 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4238
4238
|
#
|
4239
4239
|
|
4240
4240
|
args.merge!('command' => 'createPortForwardingRule')
|
4241
|
-
if not args.
|
4241
|
+
if not args.has_key?('ipaddressid')
|
4242
4242
|
raise ArgumentError, "Missing required argument 'ipaddressid'"
|
4243
4243
|
end
|
4244
|
-
if not args.
|
4244
|
+
if not args.has_key?('privateport')
|
4245
4245
|
raise ArgumentError, "Missing required argument 'privateport'"
|
4246
4246
|
end
|
4247
|
-
if not args.
|
4247
|
+
if not args.has_key?('protocol')
|
4248
4248
|
raise ArgumentError, "Missing required argument 'protocol'"
|
4249
4249
|
end
|
4250
|
-
if not args.
|
4250
|
+
if not args.has_key?('publicport')
|
4251
4251
|
raise ArgumentError, "Missing required argument 'publicport'"
|
4252
4252
|
end
|
4253
|
-
if not args.
|
4253
|
+
if not args.has_key?('virtualmachineid')
|
4254
4254
|
raise ArgumentError, "Missing required argument 'virtualmachineid'"
|
4255
4255
|
end
|
4256
4256
|
|
@@ -4265,7 +4265,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4265
4265
|
# id - the ID of the port forwarding rule
|
4266
4266
|
|
4267
4267
|
args.merge!('command' => 'deletePortForwardingRule')
|
4268
|
-
if not args.
|
4268
|
+
if not args.has_key?('id')
|
4269
4269
|
raise ArgumentError, "Missing required argument 'id'"
|
4270
4270
|
end
|
4271
4271
|
|
@@ -4288,10 +4288,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4288
4288
|
# type - type of firewallrule: system/user
|
4289
4289
|
|
4290
4290
|
args.merge!('command' => 'createFirewallRule')
|
4291
|
-
if not args.
|
4291
|
+
if not args.has_key?('ipaddressid')
|
4292
4292
|
raise ArgumentError, "Missing required argument 'ipaddressid'"
|
4293
4293
|
end
|
4294
|
-
if not args.
|
4294
|
+
if not args.has_key?('protocol')
|
4295
4295
|
raise ArgumentError, "Missing required argument 'protocol'"
|
4296
4296
|
end
|
4297
4297
|
|
@@ -4306,7 +4306,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4306
4306
|
# id - the ID of the firewall rule
|
4307
4307
|
|
4308
4308
|
args.merge!('command' => 'deleteFirewallRule')
|
4309
|
-
if not args.
|
4309
|
+
if not args.has_key?('id')
|
4310
4310
|
raise ArgumentError, "Missing required argument 'id'"
|
4311
4311
|
end
|
4312
4312
|
|
@@ -4350,13 +4350,13 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4350
4350
|
# zoneid - The Zone ID with which the account is to be marked.
|
4351
4351
|
|
4352
4352
|
args.merge!('command' => 'markDefaultZoneForAccount')
|
4353
|
-
if not args.
|
4353
|
+
if not args.has_key?('account')
|
4354
4354
|
raise ArgumentError, "Missing required argument 'account'"
|
4355
4355
|
end
|
4356
|
-
if not args.
|
4356
|
+
if not args.has_key?('domainid')
|
4357
4357
|
raise ArgumentError, "Missing required argument 'domainid'"
|
4358
4358
|
end
|
4359
|
-
if not args.
|
4359
|
+
if not args.has_key?('zoneid')
|
4360
4360
|
raise ArgumentError, "Missing required argument 'zoneid'"
|
4361
4361
|
end
|
4362
4362
|
|
@@ -4385,16 +4385,16 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4385
4385
|
# rwise
|
4386
4386
|
|
4387
4387
|
args.merge!('command' => 'createZone')
|
4388
|
-
if not args.
|
4388
|
+
if not args.has_key?('dns1')
|
4389
4389
|
raise ArgumentError, "Missing required argument 'dns1'"
|
4390
4390
|
end
|
4391
|
-
if not args.
|
4391
|
+
if not args.has_key?('internaldns1')
|
4392
4392
|
raise ArgumentError, "Missing required argument 'internaldns1'"
|
4393
4393
|
end
|
4394
|
-
if not args.
|
4394
|
+
if not args.has_key?('name')
|
4395
4395
|
raise ArgumentError, "Missing required argument 'name'"
|
4396
4396
|
end
|
4397
|
-
if not args.
|
4397
|
+
if not args.has_key?('networktype')
|
4398
4398
|
raise ArgumentError, "Missing required argument 'networktype'"
|
4399
4399
|
end
|
4400
4400
|
|
@@ -4425,7 +4425,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4425
4425
|
# name - the name of the Zone
|
4426
4426
|
|
4427
4427
|
args.merge!('command' => 'updateZone')
|
4428
|
-
if not args.
|
4428
|
+
if not args.has_key?('id')
|
4429
4429
|
raise ArgumentError, "Missing required argument 'id'"
|
4430
4430
|
end
|
4431
4431
|
|
@@ -4440,7 +4440,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4440
4440
|
# id - the ID of the Zone
|
4441
4441
|
|
4442
4442
|
args.merge!('command' => 'deleteZone')
|
4443
|
-
if not args.
|
4443
|
+
if not args.has_key?('id')
|
4444
4444
|
raise ArgumentError, "Missing required argument 'id'"
|
4445
4445
|
end
|
4446
4446
|
|
@@ -4482,10 +4482,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4482
4482
|
# )
|
4483
4483
|
|
4484
4484
|
args.merge!('command' => 'enableStaticNat')
|
4485
|
-
if not args.
|
4485
|
+
if not args.has_key?('ipaddressid')
|
4486
4486
|
raise ArgumentError, "Missing required argument 'ipaddressid'"
|
4487
4487
|
end
|
4488
|
-
if not args.
|
4488
|
+
if not args.has_key?('virtualmachineid')
|
4489
4489
|
raise ArgumentError, "Missing required argument 'virtualmachineid'"
|
4490
4490
|
end
|
4491
4491
|
|
@@ -4508,13 +4508,13 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4508
4508
|
# true by default
|
4509
4509
|
|
4510
4510
|
args.merge!('command' => 'createIpForwardingRule')
|
4511
|
-
if not args.
|
4511
|
+
if not args.has_key?('ipaddressid')
|
4512
4512
|
raise ArgumentError, "Missing required argument 'ipaddressid'"
|
4513
4513
|
end
|
4514
|
-
if not args.
|
4514
|
+
if not args.has_key?('protocol')
|
4515
4515
|
raise ArgumentError, "Missing required argument 'protocol'"
|
4516
4516
|
end
|
4517
|
-
if not args.
|
4517
|
+
if not args.has_key?('startport')
|
4518
4518
|
raise ArgumentError, "Missing required argument 'startport'"
|
4519
4519
|
end
|
4520
4520
|
|
@@ -4529,7 +4529,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4529
4529
|
# id - the id of the forwarding rule
|
4530
4530
|
|
4531
4531
|
args.merge!('command' => 'deleteIpForwardingRule')
|
4532
|
-
if not args.
|
4532
|
+
if not args.has_key?('id')
|
4533
4533
|
raise ArgumentError, "Missing required argument 'id'"
|
4534
4534
|
end
|
4535
4535
|
|
@@ -4572,7 +4572,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4572
4572
|
# disableed
|
4573
4573
|
|
4574
4574
|
args.merge!('command' => 'disableStaticNat')
|
4575
|
-
if not args.
|
4575
|
+
if not args.has_key?('ipaddressid')
|
4576
4576
|
raise ArgumentError, "Missing required argument 'ipaddressid'"
|
4577
4577
|
end
|
4578
4578
|
|
@@ -4590,7 +4590,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4590
4590
|
# nt. If no parent domain is specied, the ROOT domain is assumed.
|
4591
4591
|
|
4592
4592
|
args.merge!('command' => 'createDomain')
|
4593
|
-
if not args.
|
4593
|
+
if not args.has_key?('name')
|
4594
4594
|
raise ArgumentError, "Missing required argument 'name'"
|
4595
4595
|
end
|
4596
4596
|
|
@@ -4608,7 +4608,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4608
4608
|
# update domainName with NULL value
|
4609
4609
|
|
4610
4610
|
args.merge!('command' => 'updateDomain')
|
4611
|
-
if not args.
|
4611
|
+
if not args.has_key?('id')
|
4612
4612
|
raise ArgumentError, "Missing required argument 'id'"
|
4613
4613
|
end
|
4614
4614
|
|
@@ -4625,7 +4625,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4625
4625
|
# cleaned up, false otherwise
|
4626
4626
|
|
4627
4627
|
args.merge!('command' => 'deleteDomain')
|
4628
|
-
if not args.
|
4628
|
+
if not args.has_key?('id')
|
4629
4629
|
raise ArgumentError, "Missing required argument 'id'"
|
4630
4630
|
end
|
4631
4631
|
|
@@ -4684,7 +4684,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4684
4684
|
# value - the value of the configuration
|
4685
4685
|
|
4686
4686
|
args.merge!('command' => 'updateConfiguration')
|
4687
|
-
if not args.
|
4687
|
+
if not args.has_key?('name')
|
4688
4688
|
raise ArgumentError, "Missing required argument 'name'"
|
4689
4689
|
end
|
4690
4690
|
|
@@ -4764,7 +4764,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4764
4764
|
# projectid - The project of the instance group
|
4765
4765
|
|
4766
4766
|
args.merge!('command' => 'createInstanceGroup')
|
4767
|
-
if not args.
|
4767
|
+
if not args.has_key?('name')
|
4768
4768
|
raise ArgumentError, "Missing required argument 'name'"
|
4769
4769
|
end
|
4770
4770
|
|
@@ -4779,7 +4779,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4779
4779
|
# id - the ID of the instance group
|
4780
4780
|
|
4781
4781
|
args.merge!('command' => 'deleteInstanceGroup')
|
4782
|
-
if not args.
|
4782
|
+
if not args.has_key?('id')
|
4783
4783
|
raise ArgumentError, "Missing required argument 'id'"
|
4784
4784
|
end
|
4785
4785
|
|
@@ -4795,7 +4795,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4795
4795
|
# name - new instance group name
|
4796
4796
|
|
4797
4797
|
args.merge!('command' => 'updateInstanceGroup')
|
4798
|
-
if not args.
|
4798
|
+
if not args.has_key?('id')
|
4799
4799
|
raise ArgumentError, "Missing required argument 'id'"
|
4800
4800
|
end
|
4801
4801
|
|
@@ -4853,19 +4853,19 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4853
4853
|
# tags - the tags for this service offering.
|
4854
4854
|
|
4855
4855
|
args.merge!('command' => 'createServiceOffering')
|
4856
|
-
if not args.
|
4856
|
+
if not args.has_key?('cpunumber')
|
4857
4857
|
raise ArgumentError, "Missing required argument 'cpunumber'"
|
4858
4858
|
end
|
4859
|
-
if not args.
|
4859
|
+
if not args.has_key?('cpuspeed')
|
4860
4860
|
raise ArgumentError, "Missing required argument 'cpuspeed'"
|
4861
4861
|
end
|
4862
|
-
if not args.
|
4862
|
+
if not args.has_key?('displaytext')
|
4863
4863
|
raise ArgumentError, "Missing required argument 'displaytext'"
|
4864
4864
|
end
|
4865
|
-
if not args.
|
4865
|
+
if not args.has_key?('memory')
|
4866
4866
|
raise ArgumentError, "Missing required argument 'memory'"
|
4867
4867
|
end
|
4868
|
-
if not args.
|
4868
|
+
if not args.has_key?('name')
|
4869
4869
|
raise ArgumentError, "Missing required argument 'name'"
|
4870
4870
|
end
|
4871
4871
|
|
@@ -4880,7 +4880,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4880
4880
|
# id - the ID of the service offering
|
4881
4881
|
|
4882
4882
|
args.merge!('command' => 'deleteServiceOffering')
|
4883
|
-
if not args.
|
4883
|
+
if not args.has_key?('id')
|
4884
4884
|
raise ArgumentError, "Missing required argument 'id'"
|
4885
4885
|
end
|
4886
4886
|
|
@@ -4898,7 +4898,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4898
4898
|
# sortkey - sort key of the service offering, integer
|
4899
4899
|
|
4900
4900
|
args.merge!('command' => 'updateServiceOffering')
|
4901
|
-
if not args.
|
4901
|
+
if not args.has_key?('id')
|
4902
4902
|
raise ArgumentError, "Missing required argument 'id'"
|
4903
4903
|
end
|
4904
4904
|
|
@@ -4964,25 +4964,25 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
4964
4964
|
# templatetag - the tag for this template.
|
4965
4965
|
|
4966
4966
|
args.merge!('command' => 'registerTemplate')
|
4967
|
-
if not args.
|
4967
|
+
if not args.has_key?('displaytext')
|
4968
4968
|
raise ArgumentError, "Missing required argument 'displaytext'"
|
4969
4969
|
end
|
4970
|
-
if not args.
|
4970
|
+
if not args.has_key?('format')
|
4971
4971
|
raise ArgumentError, "Missing required argument 'format'"
|
4972
4972
|
end
|
4973
|
-
if not args.
|
4973
|
+
if not args.has_key?('hypervisor')
|
4974
4974
|
raise ArgumentError, "Missing required argument 'hypervisor'"
|
4975
4975
|
end
|
4976
|
-
if not args.
|
4976
|
+
if not args.has_key?('name')
|
4977
4977
|
raise ArgumentError, "Missing required argument 'name'"
|
4978
4978
|
end
|
4979
|
-
if not args.
|
4979
|
+
if not args.has_key?('ostypeid')
|
4980
4980
|
raise ArgumentError, "Missing required argument 'ostypeid'"
|
4981
4981
|
end
|
4982
|
-
if not args.
|
4982
|
+
if not args.has_key?('url')
|
4983
4983
|
raise ArgumentError, "Missing required argument 'url'"
|
4984
4984
|
end
|
4985
|
-
if not args.
|
4985
|
+
if not args.has_key?('zoneid')
|
4986
4986
|
raise ArgumentError, "Missing required argument 'zoneid'"
|
4987
4987
|
end
|
4988
4988
|
|
@@ -5015,16 +5015,16 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5015
5015
|
# projectid - Register iso for the project
|
5016
5016
|
|
5017
5017
|
args.merge!('command' => 'registerIso')
|
5018
|
-
if not args.
|
5018
|
+
if not args.has_key?('displaytext')
|
5019
5019
|
raise ArgumentError, "Missing required argument 'displaytext'"
|
5020
5020
|
end
|
5021
|
-
if not args.
|
5021
|
+
if not args.has_key?('name')
|
5022
5022
|
raise ArgumentError, "Missing required argument 'name'"
|
5023
5023
|
end
|
5024
|
-
if not args.
|
5024
|
+
if not args.has_key?('url')
|
5025
5025
|
raise ArgumentError, "Missing required argument 'url'"
|
5026
5026
|
end
|
5027
|
-
if not args.
|
5027
|
+
if not args.has_key?('zoneid')
|
5028
5028
|
raise ArgumentError, "Missing required argument 'zoneid'"
|
5029
5029
|
end
|
5030
5030
|
|
@@ -5044,7 +5044,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5044
5044
|
# id - User id
|
5045
5045
|
|
5046
5046
|
args.merge!('command' => 'registerUserKeys')
|
5047
|
-
if not args.
|
5047
|
+
if not args.has_key?('id')
|
5048
5048
|
raise ArgumentError, "Missing required argument 'id'"
|
5049
5049
|
end
|
5050
5050
|
|
@@ -5064,10 +5064,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5064
5064
|
# projectid - an optional project for the ssh key
|
5065
5065
|
|
5066
5066
|
args.merge!('command' => 'registerSSHKeyPair')
|
5067
|
-
if not args.
|
5067
|
+
if not args.has_key?('name')
|
5068
5068
|
raise ArgumentError, "Missing required argument 'name'"
|
5069
5069
|
end
|
5070
|
-
if not args.
|
5070
|
+
if not args.has_key?('publickey')
|
5071
5071
|
raise ArgumentError, "Missing required argument 'publickey'"
|
5072
5072
|
end
|
5073
5073
|
|
@@ -5089,19 +5089,19 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5089
5089
|
# endip - the ending IP address for the Pod
|
5090
5090
|
|
5091
5091
|
args.merge!('command' => 'createPod')
|
5092
|
-
if not args.
|
5092
|
+
if not args.has_key?('gateway')
|
5093
5093
|
raise ArgumentError, "Missing required argument 'gateway'"
|
5094
5094
|
end
|
5095
|
-
if not args.
|
5095
|
+
if not args.has_key?('name')
|
5096
5096
|
raise ArgumentError, "Missing required argument 'name'"
|
5097
5097
|
end
|
5098
|
-
if not args.
|
5098
|
+
if not args.has_key?('netmask')
|
5099
5099
|
raise ArgumentError, "Missing required argument 'netmask'"
|
5100
5100
|
end
|
5101
|
-
if not args.
|
5101
|
+
if not args.has_key?('startip')
|
5102
5102
|
raise ArgumentError, "Missing required argument 'startip'"
|
5103
5103
|
end
|
5104
|
-
if not args.
|
5104
|
+
if not args.has_key?('zoneid')
|
5105
5105
|
raise ArgumentError, "Missing required argument 'zoneid'"
|
5106
5106
|
end
|
5107
5107
|
|
@@ -5123,7 +5123,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5123
5123
|
# startip - the starting IP address for the Pod
|
5124
5124
|
|
5125
5125
|
args.merge!('command' => 'updatePod')
|
5126
|
-
if not args.
|
5126
|
+
if not args.has_key?('id')
|
5127
5127
|
raise ArgumentError, "Missing required argument 'id'"
|
5128
5128
|
end
|
5129
5129
|
|
@@ -5138,7 +5138,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5138
5138
|
# id - the ID of the Pod
|
5139
5139
|
|
5140
5140
|
args.merge!('command' => 'deletePod')
|
5141
|
-
if not args.
|
5141
|
+
if not args.has_key?('id')
|
5142
5142
|
raise ArgumentError, "Missing required argument 'id'"
|
5143
5143
|
end
|
5144
5144
|
|
@@ -5180,10 +5180,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5180
5180
|
# tags - tags for the disk offering
|
5181
5181
|
|
5182
5182
|
args.merge!('command' => 'createDiskOffering')
|
5183
|
-
if not args.
|
5183
|
+
if not args.has_key?('displaytext')
|
5184
5184
|
raise ArgumentError, "Missing required argument 'displaytext'"
|
5185
5185
|
end
|
5186
|
-
if not args.
|
5186
|
+
if not args.has_key?('name')
|
5187
5187
|
raise ArgumentError, "Missing required argument 'name'"
|
5188
5188
|
end
|
5189
5189
|
|
@@ -5202,7 +5202,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5202
5202
|
# sortkey - sort key of the disk offering, integer
|
5203
5203
|
|
5204
5204
|
args.merge!('command' => 'updateDiskOffering')
|
5205
|
-
if not args.
|
5205
|
+
if not args.has_key?('id')
|
5206
5206
|
raise ArgumentError, "Missing required argument 'id'"
|
5207
5207
|
end
|
5208
5208
|
|
@@ -5217,7 +5217,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5217
5217
|
# id - ID of the disk offering
|
5218
5218
|
|
5219
5219
|
args.merge!('command' => 'deleteDiskOffering')
|
5220
|
-
if not args.
|
5220
|
+
if not args.has_key?('id')
|
5221
5221
|
raise ArgumentError, "Missing required argument 'id'"
|
5222
5222
|
end
|
5223
5223
|
|
@@ -5263,19 +5263,19 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5263
5263
|
# vsmusername - the username for the VSM associated with this cluster
|
5264
5264
|
|
5265
5265
|
args.merge!('command' => 'addCluster')
|
5266
|
-
if not args.
|
5266
|
+
if not args.has_key?('clustername')
|
5267
5267
|
raise ArgumentError, "Missing required argument 'clustername'"
|
5268
5268
|
end
|
5269
|
-
if not args.
|
5269
|
+
if not args.has_key?('clustertype')
|
5270
5270
|
raise ArgumentError, "Missing required argument 'clustertype'"
|
5271
5271
|
end
|
5272
|
-
if not args.
|
5272
|
+
if not args.has_key?('hypervisor')
|
5273
5273
|
raise ArgumentError, "Missing required argument 'hypervisor'"
|
5274
5274
|
end
|
5275
|
-
if not args.
|
5275
|
+
if not args.has_key?('podid')
|
5276
5276
|
raise ArgumentError, "Missing required argument 'podid'"
|
5277
5277
|
end
|
5278
|
-
if not args.
|
5278
|
+
if not args.has_key?('zoneid')
|
5279
5279
|
raise ArgumentError, "Missing required argument 'zoneid'"
|
5280
5280
|
end
|
5281
5281
|
|
@@ -5290,7 +5290,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5290
5290
|
# id - the cluster ID
|
5291
5291
|
|
5292
5292
|
args.merge!('command' => 'deleteCluster')
|
5293
|
-
if not args.
|
5293
|
+
if not args.has_key?('id')
|
5294
5294
|
raise ArgumentError, "Missing required argument 'id'"
|
5295
5295
|
end
|
5296
5296
|
|
@@ -5311,7 +5311,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5311
5311
|
# managedstate - whether this cluster is managed by cloudstack
|
5312
5312
|
|
5313
5313
|
args.merge!('command' => 'updateCluster')
|
5314
|
-
if not args.
|
5314
|
+
if not args.has_key?('id')
|
5315
5315
|
raise ArgumentError, "Missing required argument 'id'"
|
5316
5316
|
end
|
5317
5317
|
|
@@ -5366,7 +5366,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5366
5366
|
# zoneid - the Zone ID of the VLAN IP range
|
5367
5367
|
|
5368
5368
|
args.merge!('command' => 'createVlanIpRange')
|
5369
|
-
if not args.
|
5369
|
+
if not args.has_key?('startip')
|
5370
5370
|
raise ArgumentError, "Missing required argument 'startip'"
|
5371
5371
|
end
|
5372
5372
|
|
@@ -5381,7 +5381,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5381
5381
|
# id - the id of the VLAN IP range
|
5382
5382
|
|
5383
5383
|
args.merge!('command' => 'deleteVlanIpRange')
|
5384
|
-
if not args.
|
5384
|
+
if not args.has_key?('id')
|
5385
5385
|
raise ArgumentError, "Missing required argument 'id'"
|
5386
5386
|
end
|
5387
5387
|
|
@@ -5428,7 +5428,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5428
5428
|
# projectid - an optional project for the ssh key
|
5429
5429
|
|
5430
5430
|
args.merge!('command' => 'createSSHKeyPair')
|
5431
|
-
if not args.
|
5431
|
+
if not args.has_key?('name')
|
5432
5432
|
raise ArgumentError, "Missing required argument 'name'"
|
5433
5433
|
end
|
5434
5434
|
|
@@ -5447,7 +5447,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5447
5447
|
# projectid - the project associated with keypair
|
5448
5448
|
|
5449
5449
|
args.merge!('command' => 'deleteSSHKeyPair')
|
5450
|
-
if not args.
|
5450
|
+
if not args.has_key?('name')
|
5451
5451
|
raise ArgumentError, "Missing required argument 'name'"
|
5452
5452
|
end
|
5453
5453
|
|
@@ -5492,13 +5492,13 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5492
5492
|
# ag can't be used by cloudStack code internally
|
5493
5493
|
|
5494
5494
|
args.merge!('command' => 'createTags')
|
5495
|
-
if not args.
|
5495
|
+
if not args.has_key?('resourceids')
|
5496
5496
|
raise ArgumentError, "Missing required argument 'resourceids'"
|
5497
5497
|
end
|
5498
|
-
if not args.
|
5498
|
+
if not args.has_key?('resourcetype')
|
5499
5499
|
raise ArgumentError, "Missing required argument 'resourcetype'"
|
5500
5500
|
end
|
5501
|
-
if not args.
|
5501
|
+
if not args.has_key?('tags')
|
5502
5502
|
raise ArgumentError, "Missing required argument 'tags'"
|
5503
5503
|
end
|
5504
5504
|
|
@@ -5515,10 +5515,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5515
5515
|
# tags - Delete tags matching key/value pairs
|
5516
5516
|
|
5517
5517
|
args.merge!('command' => 'deleteTags')
|
5518
|
-
if not args.
|
5518
|
+
if not args.has_key?('resourceids')
|
5519
5519
|
raise ArgumentError, "Missing required argument 'resourceids'"
|
5520
5520
|
end
|
5521
|
-
if not args.
|
5521
|
+
if not args.has_key?('resourcetype')
|
5522
5522
|
raise ArgumentError, "Missing required argument 'resourcetype'"
|
5523
5523
|
end
|
5524
5524
|
|
@@ -5567,19 +5567,19 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5567
5567
|
# username - Credentials to access the Nicira Controller API
|
5568
5568
|
|
5569
5569
|
args.merge!('command' => 'addNiciraNvpDevice')
|
5570
|
-
if not args.
|
5570
|
+
if not args.has_key?('hostname')
|
5571
5571
|
raise ArgumentError, "Missing required argument 'hostname'"
|
5572
5572
|
end
|
5573
|
-
if not args.
|
5573
|
+
if not args.has_key?('password')
|
5574
5574
|
raise ArgumentError, "Missing required argument 'password'"
|
5575
5575
|
end
|
5576
|
-
if not args.
|
5576
|
+
if not args.has_key?('physicalnetworkid')
|
5577
5577
|
raise ArgumentError, "Missing required argument 'physicalnetworkid'"
|
5578
5578
|
end
|
5579
|
-
if not args.
|
5579
|
+
if not args.has_key?('transportzoneuuid')
|
5580
5580
|
raise ArgumentError, "Missing required argument 'transportzoneuuid'"
|
5581
5581
|
end
|
5582
|
-
if not args.
|
5582
|
+
if not args.has_key?('username')
|
5583
5583
|
raise ArgumentError, "Missing required argument 'username'"
|
5584
5584
|
end
|
5585
5585
|
|
@@ -5594,7 +5594,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5594
5594
|
# nvpdeviceid - Nicira device ID
|
5595
5595
|
|
5596
5596
|
args.merge!('command' => 'deleteNiciraNvpDevice')
|
5597
|
-
if not args.
|
5597
|
+
if not args.has_key?('nvpdeviceid')
|
5598
5598
|
raise ArgumentError, "Missing required argument 'nvpdeviceid'"
|
5599
5599
|
end
|
5600
5600
|
|
@@ -5637,7 +5637,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5637
5637
|
# projectid - Update resource limits for project
|
5638
5638
|
|
5639
5639
|
args.merge!('command' => 'updateResourceLimit')
|
5640
|
-
if not args.
|
5640
|
+
if not args.has_key?('resourcetype')
|
5641
5641
|
raise ArgumentError, "Missing required argument 'resourcetype'"
|
5642
5642
|
end
|
5643
5643
|
|
@@ -5663,7 +5663,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5663
5663
|
# r can register/create.
|
5664
5664
|
|
5665
5665
|
args.merge!('command' => 'updateResourceCount')
|
5666
|
-
if not args.
|
5666
|
+
if not args.has_key?('domainid')
|
5667
5667
|
raise ArgumentError, "Missing required argument 'domainid'"
|
5668
5668
|
end
|
5669
5669
|
|
@@ -5726,7 +5726,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5726
5726
|
# id - the id of the public ip address to disassociate
|
5727
5727
|
|
5728
5728
|
args.merge!('command' => 'disassociateIpAddress')
|
5729
|
-
if not args.
|
5729
|
+
if not args.has_key?('id')
|
5730
5730
|
raise ArgumentError, "Missing required argument 'id'"
|
5731
5731
|
end
|
5732
5732
|
|
@@ -5782,7 +5782,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5782
5782
|
# username - the username for swift
|
5783
5783
|
|
5784
5784
|
args.merge!('command' => 'addSwift')
|
5785
|
-
if not args.
|
5785
|
+
if not args.has_key?('url')
|
5786
5786
|
raise ArgumentError, "Missing required argument 'url'"
|
5787
5787
|
end
|
5788
5788
|
|
@@ -5825,13 +5825,13 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5825
5825
|
# truststorepass - Enter the password for trust store.
|
5826
5826
|
|
5827
5827
|
args.merge!('command' => 'ldapConfig')
|
5828
|
-
if not args.
|
5828
|
+
if not args.has_key?('hostname')
|
5829
5829
|
raise ArgumentError, "Missing required argument 'hostname'"
|
5830
5830
|
end
|
5831
|
-
if not args.
|
5831
|
+
if not args.has_key?('queryfilter')
|
5832
5832
|
raise ArgumentError, "Missing required argument 'queryfilter'"
|
5833
5833
|
end
|
5834
|
-
if not args.
|
5834
|
+
if not args.has_key?('searchbase')
|
5835
5835
|
raise ArgumentError, "Missing required argument 'searchbase'"
|
5836
5836
|
end
|
5837
5837
|
|
@@ -5937,7 +5937,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
5937
5937
|
# jobid - the ID of the asychronous job
|
5938
5938
|
|
5939
5939
|
args.merge!('command' => 'queryAsyncJobResult')
|
5940
|
-
if not args.
|
5940
|
+
if not args.has_key?('jobid')
|
5941
5941
|
raise ArgumentError, "Missing required argument 'jobid'"
|
5942
5942
|
end
|
5943
5943
|
|
@@ -6021,10 +6021,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
6021
6021
|
# ainId are passed in, "domainId" parameter takes precendence
|
6022
6022
|
|
6023
6023
|
args.merge!('command' => 'login')
|
6024
|
-
if not args.
|
6024
|
+
if not args.has_key?('username')
|
6025
6025
|
raise ArgumentError, "Missing required argument 'username'"
|
6026
6026
|
end
|
6027
|
-
if not args.
|
6027
|
+
if not args.has_key?('password')
|
6028
6028
|
raise ArgumentError, "Missing required argument 'password'"
|
6029
6029
|
end
|
6030
6030
|
|
@@ -6052,7 +6052,7 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
6052
6052
|
# userid - the user ID for the cloud identifier
|
6053
6053
|
|
6054
6054
|
args.merge!('command' => 'getCloudIdentifier')
|
6055
|
-
if not args.
|
6055
|
+
if not args.has_key?('userid')
|
6056
6056
|
raise ArgumentError, "Missing required argument 'userid'"
|
6057
6057
|
end
|
6058
6058
|
|
@@ -6071,10 +6071,10 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
6071
6071
|
# privatekey - the private key for the certificate
|
6072
6072
|
|
6073
6073
|
args.merge!('command' => 'uploadCustomCertificate')
|
6074
|
-
if not args.
|
6074
|
+
if not args.has_key?('certificate')
|
6075
6075
|
raise ArgumentError, "Missing required argument 'certificate'"
|
6076
6076
|
end
|
6077
|
-
if not args.
|
6077
|
+
if not args.has_key?('domainsuffix')
|
6078
6078
|
raise ArgumentError, "Missing required argument 'domainsuffix'"
|
6079
6079
|
end
|
6080
6080
|
|