qingcloud-sdk 0.2.3 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3091981c96446e6c9a7bea36c63a8113803f72a
4
- data.tar.gz: 03e8d1bea479f0812b366cb9b6bae259930f813b
3
+ metadata.gz: 36d7ef3495827d9095ae9a2529fed2ae9ab481f3
4
+ data.tar.gz: 40af3e9ac21acbf4ac2b8a822698bfcd1b824198
5
5
  SHA512:
6
- metadata.gz: a9e2274fc53027e829fd7fd4b91e3939ce08c5786676ed3ebf02963b3548a7926383a7ef9e580986bdb98b03b2d95248aede563268c68c234b9d9a8b5866cc6a
7
- data.tar.gz: acf9ae94411b692406d7bb30306abe59f91a15441651c529e5d05b4709a5c79a8aa60b673bcd07127ea2daa3447db0b8e006dde62f29e7bcd258bea6653c5972
6
+ metadata.gz: 7dfac45ecfe0758c0cee26b723487b30eb88bae99fc3f1c89189ee9c8335c3b158d6de370e667ccadbb8dd3f852d50b407d0860a54206a0d0e69b415019b230d
7
+ data.tar.gz: bc505eb0882721801e3aa545f6099ff012dcac108d75be86bfdf6ca9ec0f2cd4ebef99740d3339a250f88b4c2b5ce5a4aa612ce89490e26963dff63f24edef45
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  SDK for QingCloud
4
4
 
5
+ [![Gem Version](https://badge.fury.io/rb/qingcloud-sdk.svg)](http://badge.fury.io/rb/qingcloud-sdk)
6
+
5
7
  ## Install from RubyGems
6
8
 
7
9
  $ gem install qingcloud-sdk
@@ -35,14 +37,25 @@ Using gem to remove this package:
35
37
 
36
38
  $ gem uninstall qingcloud-sdk
37
39
 
40
+ ## Notice
41
+ * All QingCloud API actions are available now.
42
+ * API action name is mapped to ruby method.
43
+ * API parameter name is mapped to ruby method parameter.
44
+ * API optional parameter can be ignored when call ruby method.
45
+
46
+ Example:
47
+
48
+ Action: "DescribeInstances" -> "describe_instances"
49
+ Parameter: "zone" -> "zone"
50
+ Array Parameter: "instances.n" -> "instances_N"
51
+ Array Parameter: "statics.n.static_type" -> "statics_N_static_type"
52
+
38
53
  ## Getting Started
39
54
 
40
55
  Before your start, please go to [QingCloud Console](https://console.qingcloud.com/access_keys/) to create a pair of QingCloud API keys.
41
56
 
42
57
  ## Code Example
43
58
 
44
- ### Create Connection and Service
45
-
46
59
  ```ruby
47
60
  require 'qingcloud/sdk'
48
61
 
@@ -62,26 +75,21 @@ puts service.response
62
75
 
63
76
  # Run Instances
64
77
 
65
- service.run_instances(
66
- image_id: 'centos7x64b',
67
- cpu: 1,
68
- memory: 1024,
69
- login_mode: 'keypair',
70
- login_keypair: 'keypair-id',
71
- zone: 'ap1'
72
- )
73
-
78
+ service.run_instances image_id: 'centos7x64b',
79
+ cpu: 1,
80
+ memory: 1024,
81
+ login_mode: 'keypair',
82
+ login_keypair: 'keypair-id',
83
+ zone: 'ap1'
84
+
74
85
  puts service.response
75
86
 
76
87
  # Terminate Instances
77
88
 
78
- service.describe_instances instances: ['instance-id'], zone: 'ap1'
89
+ service.describe_instances instances_N: ['instance-id'], zone: 'ap1'
79
90
 
80
91
  puts service.response
81
92
  ```
82
- ### Describe Zones
83
-
84
-
85
93
 
86
94
  ## Contributing
87
95
 
@@ -45,9 +45,16 @@ module QingCloud
45
45
 
46
46
  request_body = params.sort.map { |key, value|
47
47
  if value.is_a? Array
48
- value.map { |v|
49
- "#{CGI.escape key.to_s}.#{value.index(v)+1}=#{CGI.escape v.to_s}"
50
- }.join('&')
48
+ if key.to_s.include? '_N_'
49
+ parts = key.to_s.split '_N_'
50
+ value.map { |v|
51
+ "#{CGI.escape parts[0].to_s}.#{value.index(v)+1}.#{CGI.escape parts[1].to_s}=#{CGI.escape v.to_s}"
52
+ }.join('&')
53
+ elsif key.to_s.include? '_N'
54
+ value.map { |v|
55
+ "#{CGI.escape key.to_s.gsub('_N', '').to_s}.#{value.index(v)+1}=#{CGI.escape v.to_s}"
56
+ }.join('&')
57
+ end
51
58
  else
52
59
  "#{CGI.escape key.to_s}=#{CGI.escape value.to_s}"
53
60
  end
@@ -16,10 +16,10 @@ module QingCloud
16
16
  # Instance
17
17
 
18
18
  def describe_instances(
19
- instances: [],
20
- image_id: [],
21
- instance_type: [],
22
- status: [],
19
+ instances_N: [],
20
+ image_id_N: [],
21
+ instance_type_N: [],
22
+ status_N: [],
23
23
  search_word: nil,
24
24
  verbose: nil,
25
25
  offset: nil,
@@ -37,9 +37,9 @@ module QingCloud
37
37
  login_mode:,
38
38
  login_keypair: nil,
39
39
  login_passwd: nil,
40
- vxnets: [],
40
+ vxnets_N: [],
41
41
  security_group: nil,
42
- volumes: [],
42
+ volumes_N: [],
43
43
  need_newsid: nil,
44
44
  need_userdata: nil,
45
45
  userdata_type: nil,
@@ -49,28 +49,28 @@ module QingCloud
49
49
  end
50
50
 
51
51
  def terminate_instances(
52
- instances:,
52
+ instances_N:,
53
53
  zone:)eval(build_fetch_match)
54
54
  end
55
55
 
56
56
  def start_instances(
57
- instances:,
57
+ instances_N:,
58
58
  zone:)eval(build_fetch_match)
59
59
  end
60
60
 
61
61
  def stop_instances(
62
- instances:,
62
+ instances_N:,
63
63
  force: nil,
64
64
  zone:)eval(build_fetch_match)
65
65
  end
66
66
 
67
67
  def restart_instances(
68
- instances:,
68
+ instances_N:,
69
69
  zone:)eval(build_fetch_match)
70
70
  end
71
71
 
72
72
  def reset_instances(
73
- instances:,
73
+ instances_N:,
74
74
  login_mode:,
75
75
  login_keypair: nil,
76
76
  login_passwd: nil,
@@ -79,7 +79,7 @@ module QingCloud
79
79
  end
80
80
 
81
81
  def resize_instances(
82
- instances:,
82
+ instances_N:,
83
83
  instance_type: nil,
84
84
  cpu: nil,
85
85
  memory: nil,
@@ -96,9 +96,9 @@ module QingCloud
96
96
  # Volume
97
97
 
98
98
  def describe_volumes(
99
- volumes: [],
99
+ volumes_N: [],
100
100
  volume_type: nil,
101
- status: [],
101
+ status_N: [],
102
102
  search_word: nil,
103
103
  verbose: nil,
104
104
  offset: nil,
@@ -115,24 +115,24 @@ module QingCloud
115
115
  end
116
116
 
117
117
  def delete_volumes(
118
- volumes:,
118
+ volumes_N:,
119
119
  zone:)eval(build_fetch_match)
120
120
  end
121
121
 
122
122
  def attach_volumes(
123
- volumes:,
123
+ volumes_N:,
124
124
  instance:,
125
125
  zone:)eval(build_fetch_match)
126
126
  end
127
127
 
128
128
  def detach_volumes(
129
- volumes:,
129
+ volumes_N:,
130
130
  instance:,
131
131
  zone:)eval(build_fetch_match)
132
132
  end
133
133
 
134
134
  def resize_volumes(
135
- volumes:,
135
+ volumes_N:,
136
136
  size:,
137
137
  zone:)eval(build_fetch_match)
138
138
  end
@@ -147,7 +147,7 @@ module QingCloud
147
147
  # VXNet
148
148
 
149
149
  def describe_vxnets(
150
- vxnets: [],
150
+ vxnets_N: [],
151
151
  vxnet_type: nil,
152
152
  search_word: nil,
153
153
  verbose: nil,
@@ -164,19 +164,19 @@ module QingCloud
164
164
  end
165
165
 
166
166
  def delete_vxnets(
167
- vxnets:,
167
+ vxnets_N:,
168
168
  zone:)eval(build_fetch_match)
169
169
  end
170
170
 
171
171
  def join_vxnets(
172
172
  vxnet:,
173
- instances:,
173
+ instances_N:,
174
174
  zone:)eval(build_fetch_match)
175
175
  end
176
176
 
177
177
  def leave_vxnets(
178
178
  vxnet:,
179
- instances:,
179
+ instances_N:,
180
180
  zone:)eval(build_fetch_match)
181
181
  end
182
182
 
@@ -189,7 +189,7 @@ module QingCloud
189
189
 
190
190
  def describe_vxnet_instances(
191
191
  vxnet:,
192
- instances: [],
192
+ instances_N: [],
193
193
  instance_type: nil,
194
194
  status: nil,
195
195
  image: nil,
@@ -201,8 +201,8 @@ module QingCloud
201
201
  # Router
202
202
 
203
203
  def describe_routers(
204
- routers: [],
205
- status: [],
204
+ routers_N: [],
205
+ status_N: [],
206
206
  search_word: nil,
207
207
  verbose: nil,
208
208
  offset: nil,
@@ -219,22 +219,22 @@ module QingCloud
219
219
  end
220
220
 
221
221
  def delete_routers(
222
- routers:,
222
+ routers_N:,
223
223
  zone:)eval(build_fetch_match)
224
224
  end
225
225
 
226
226
  def update_routers(
227
- routers:,
227
+ routers_N:,
228
228
  zone:)eval(build_fetch_match)
229
229
  end
230
230
 
231
231
  def power_off_routers(
232
- routers:,
232
+ routers_N:,
233
233
  zone:)eval(build_fetch_match)
234
234
  end
235
235
 
236
236
  def power_on_routers(
237
- routers:,
237
+ routers_N:,
238
238
  zone:)eval(build_fetch_match)
239
239
  end
240
240
 
@@ -247,7 +247,7 @@ module QingCloud
247
247
  end
248
248
 
249
249
  def leave_routers(
250
- vxnets:,
250
+ vxnets_N:,
251
251
  router:,
252
252
  zone:)eval(build_fetch_match)
253
253
  end
@@ -261,6 +261,44 @@ module QingCloud
261
261
  zone:)eval(build_fetch_match)
262
262
  end
263
263
 
264
+ def describe_router_statics(
265
+ router_statics_N: [],
266
+ router: nil,
267
+ static_type: nil,
268
+ verbose: nil,
269
+ offset: nil,
270
+ limit: nil,
271
+ zone:)eval(build_fetch_match)
272
+ end
273
+
274
+ def add_router_statics(
275
+ router:,
276
+ statics_N_router_static_name: [],
277
+ statics_N_static_type:,
278
+ statics_N_val1:,
279
+ statics_N_val2: nil,
280
+ statics_N_val3: nil,
281
+ statics_N_val4: nil,
282
+ zone:)eval(build_fetch_match)
283
+ end
284
+
285
+ def modify_router_static_attributes(
286
+ router_static:,
287
+ router_static_name: nil,
288
+ val1: nil,
289
+ val2: nil,
290
+ val3: nil,
291
+ val4: nil,
292
+ val5: nil,
293
+ val6: nil,
294
+ zone:)eval(build_fetch_match)
295
+ end
296
+
297
+ def delete_router_statics(
298
+ router_statics_N:,
299
+ zone:)eval(build_fetch_match)
300
+ end
301
+
264
302
  def describe_router_vxnets(
265
303
  router: nil,
266
304
  vxnet: nil,
@@ -273,9 +311,9 @@ module QingCloud
273
311
  # Eip
274
312
 
275
313
  def describe_eips(
276
- eips: [],
314
+ eips_N: [],
277
315
  instance_id: nil,
278
- status: [],
316
+ status_N: [],
279
317
  search_word: nil,
280
318
  offset: nil,
281
319
  limit: nil,
@@ -292,7 +330,7 @@ module QingCloud
292
330
  end
293
331
 
294
332
  def release_eips(
295
- eips: [],
333
+ eips_N: [],
296
334
  zone:)eval(build_fetch_match)
297
335
  end
298
336
 
@@ -303,18 +341,18 @@ module QingCloud
303
341
  end
304
342
 
305
343
  def dssociate_eips(
306
- eip:,
344
+ eips_N:,
307
345
  zone:)eval(build_fetch_match)
308
346
  end
309
347
 
310
348
  def change_eips_bandwidth(
311
- eips:,
349
+ eips_N:,
312
350
  bandwidth:,
313
351
  zone:)eval(build_fetch_match)
314
352
  end
315
353
 
316
354
  def change_eips_billing_mode(
317
- eips:,
355
+ eips_N:,
318
356
  billing_mode:,
319
357
  zone:)eval(build_fetch_match)
320
358
  end
@@ -329,7 +367,7 @@ module QingCloud
329
367
  # SecurityGroup
330
368
 
331
369
  def describe_security_groups(
332
- security_groups: [],
370
+ security_groups_N: [],
333
371
  search_word: nil,
334
372
  verbose: nil,
335
373
  offset: nil,
@@ -343,13 +381,13 @@ module QingCloud
343
381
  end
344
382
 
345
383
  def delete_security_groups(
346
- security_groups:,
384
+ security_groups_N:,
347
385
  zone:)eval(build_fetch_match)
348
386
  end
349
387
 
350
388
  def apply_security_group(
351
389
  security_group:,
352
- instances: [],
390
+ instances_N: [],
353
391
  zone:)eval(build_fetch_match)
354
392
  end
355
393
 
@@ -362,17 +400,42 @@ module QingCloud
362
400
 
363
401
  def describe_security_group_rules(
364
402
  security_group: nil,
365
- security_group_rules: [],
403
+ security_group_rules_N: [],
366
404
  direction: nil,
367
405
  offset: nil,
368
406
  limit: nil,
369
407
  zone:)eval(build_fetch_match)
370
408
  end
371
409
 
410
+ def add_security_group_rules(
411
+ security_group:,
412
+ rules_N_protocol:,
413
+ rules_N_priority:,
414
+ rules_N_security_group_rule_name: [],
415
+ rules_N_action: [],
416
+ rules_N_direction: [],
417
+ rules_N_val1: [],
418
+ rules_N_val2: [],
419
+ rules_N_val3: [],
420
+ zone:)eval(build_fetch_match)
421
+ end
422
+
423
+ def delete_security_group_rules(
424
+ security_group_rules_N:,
425
+ zone:)eval(build_fetch_match)
426
+ end
427
+
428
+ def modify_security_group_rule_attributes(
429
+ security_group_rule:,
430
+ security_group_rule_name: nil,
431
+ priority:,
432
+ zone:)eval(build_fetch_match)
433
+ end
434
+
372
435
  # KeyPair
373
436
 
374
437
  def describe_key_pairs(
375
- keypairs: [],
438
+ keypairs_N: [],
376
439
  instance_id: nil,
377
440
  encrypt_method: nil,
378
441
  search_word: nil,
@@ -391,19 +454,19 @@ module QingCloud
391
454
  end
392
455
 
393
456
  def delete_key_pairs(
394
- keypairs:,
457
+ keypairs_N:,
395
458
  zone:)eval(build_fetch_match)
396
459
  end
397
460
 
398
461
  def attach_key_pairs(
399
- keypairs:,
400
- instances:,
462
+ keypairs_N:,
463
+ instances_N:,
401
464
  zone:)eval(build_fetch_match)
402
465
  end
403
466
 
404
467
  def detach_key_pairs(
405
- keypairs:,
406
- instances:,
468
+ keypairs_N:,
469
+ instances_N:,
407
470
  zone:)eval(build_fetch_match)
408
471
  end
409
472
 
@@ -417,12 +480,12 @@ module QingCloud
417
480
  # Image
418
481
 
419
482
  def describe_images(
420
- images: [],
483
+ images_N: [],
421
484
  processor_type: nil,
422
485
  os_family: nil,
423
486
  visibility: nil,
424
487
  provider: nil,
425
- status: [],
488
+ status_N: [],
426
489
  search_word: nil,
427
490
  verbose: nil,
428
491
  offset: nil,
@@ -437,7 +500,7 @@ module QingCloud
437
500
  end
438
501
 
439
502
  def delete_images(
440
- images:,
503
+ images_N:,
441
504
  zone:)eval(build_fetch_match)
442
505
  end
443
506
 
@@ -451,7 +514,7 @@ module QingCloud
451
514
  # LoadBalancer
452
515
 
453
516
  def create_load_balancer(
454
- eips: [],
517
+ eips_N: [],
455
518
  vxnet: nil,
456
519
  private_ip: nil,
457
520
  loadbalancer_type: nil,
@@ -461,8 +524,8 @@ module QingCloud
461
524
  end
462
525
 
463
526
  def describe_load_balancers(
464
- loadbalancers: [],
465
- status: [],
527
+ loadbalancers_N: [],
528
+ status_N: [],
466
529
  search_word: nil,
467
530
  verbose: nil,
468
531
  offset: nil,
@@ -471,7 +534,7 @@ module QingCloud
471
534
  end
472
535
 
473
536
  def delete_load_balancers(
474
- loadbalancers:,
537
+ loadbalancers_N:,
475
538
  zone:)eval(build_fetch_match)
476
539
  end
477
540
 
@@ -485,35 +548,110 @@ module QingCloud
485
548
  end
486
549
 
487
550
  def start_load_balancers(
488
- loadbalancers:,
551
+ loadbalancers_N:,
489
552
  zone:)eval(build_fetch_match)
490
553
  end
491
554
 
492
555
  def stop_load_balancers(
493
- loadbalancers:,
556
+ loadbalancers_N:,
494
557
  zone:)eval(build_fetch_match)
495
558
  end
496
559
 
497
560
  def update_load_balancers(
498
- loadbalancers:,
561
+ loadbalancers_N:,
499
562
  zone:)eval(build_fetch_match)
500
563
  end
501
564
 
502
565
  def resize_load_balancers(
503
- loadbalancers:,
566
+ loadbalancers_N:,
504
567
  loadbalancer_type:,
505
568
  zone:)eval(build_fetch_match)
506
569
  end
507
570
 
508
571
  def associate_eips_to_load_balancer(
509
- eips:,
572
+ eips_N:,
510
573
  loadbalancer:,
511
574
  zone:)eval(build_fetch_match)
512
575
  end
513
576
 
514
577
  def dissociate_eips_from_load_balancer(
515
- eips:,
578
+ eips_N:,
579
+ loadbalancer:,
580
+ zone:)eval(build_fetch_match)
581
+ end
582
+
583
+ def add_load_balancer_listeners(
516
584
  loadbalancer:,
585
+ listeners_N_listener_port:,
586
+ listeners_N_listener_protocol:,
587
+ listeners_N_backend_protocol:,
588
+ listeners_N_loadbalancer_listener_name: [],
589
+ listeners_N_balance_mode: [],
590
+ listeners_N_session_sticky: [],
591
+ listeners_N_forwardfor: [],
592
+ listeners_N_healthy_check_method: [],
593
+ listeners_N_healthy_check_option: [],
594
+ listeners_N_listener_option: [],
595
+ zone:)eval(build_fetch_match)
596
+ end
597
+
598
+ def add_load_balancer_listeners(
599
+ loadbalancer_listeners_N: nil,
600
+ loadbalancer: nil,
601
+ verbose: nil,
602
+ offset: nil,
603
+ limit: nil,
604
+ zone:)eval(build_fetch_match)
605
+ end
606
+
607
+ def delete_load_balancer_listeners(
608
+ loadbalancer_listeners_N:,
609
+ zone:)eval(build_fetch_match)
610
+ end
611
+
612
+ def modify_load_balancer_listener_attributes(
613
+ loadbalancer_listener:,
614
+ loadbalancer_listener_name: nil,
615
+ balance_mode: nil,
616
+ session_sticky: nil,
617
+ forwardfor: nil,
618
+ healthy_check_method: nil,
619
+ healthy_check_option: nil,
620
+ listeners_N_listener_option: [],
621
+ zone:)eval(build_fetch_match)
622
+ end
623
+
624
+ def add_load_balancer_backends(
625
+ loadbalancer_listener:,
626
+ backends_N_resource_id:,
627
+ backends_N_loadbalancer_backend_name: [],
628
+ backends_N_port:,
629
+ backends_N_weight:,
630
+ listeners_N_listener_option: [],
631
+ zone:)eval(build_fetch_match)
632
+ end
633
+
634
+ def describe_load_balancer_backends(
635
+ loadbalancer_backends_N: [],
636
+ loadbalancer_listener: nil,
637
+ loadbalancer: nil,
638
+ verbose: nil,
639
+ offset: nil,
640
+ limit: nil,
641
+ zone:)eval(build_fetch_match)
642
+ end
643
+
644
+ def delete_load_balancer_backends(
645
+ loadbalancer_backends_N: [],
646
+ zone:)eval(build_fetch_match)
647
+ end
648
+
649
+ def modify_load_balancer_backend_attributes(
650
+ loadbalancer_backend:,
651
+ port: nil,
652
+ weight: nil,
653
+ disabled: nil,
654
+ loadbalancer_policy_id: nil,
517
655
  zone:)eval(build_fetch_match)
518
656
  end
519
657
 
@@ -521,7 +659,7 @@ module QingCloud
521
659
 
522
660
  def get_monitor(
523
661
  resource:,
524
- meters:,
662
+ meters_N:,
525
663
  step:,
526
664
  start_time:,
527
665
  end_time:,
@@ -530,7 +668,7 @@ module QingCloud
530
668
 
531
669
  def get_load_balancer_monitor(
532
670
  resource:,
533
- meters:,
671
+ meters_N:,
534
672
  step:,
535
673
  start_time:,
536
674
  end_time:,
@@ -539,7 +677,7 @@ module QingCloud
539
677
 
540
678
  def get_rdb_monitor(
541
679
  resource:,
542
- meters:,
680
+ meters_N:,
543
681
  step:,
544
682
  start_time:,
545
683
  end_time:,
@@ -549,10 +687,10 @@ module QingCloud
549
687
  # Snapshot
550
688
 
551
689
  def describe_snapshots(
552
- snapshots: [],
690
+ snapshots_N: [],
553
691
  resource_id: nil,
554
692
  snapshot_type: nil,
555
- status: [],
693
+ status_N: [],
556
694
  search_word: nil,
557
695
  verbose: nil,
558
696
  offset: nil,
@@ -561,19 +699,19 @@ module QingCloud
561
699
  end
562
700
 
563
701
  def create_snapshots(
564
- resources:,
702
+ resources_N:,
565
703
  snapshot_name: nil,
566
704
  is_full: nil,
567
705
  zone:)eval(build_fetch_match)
568
706
  end
569
707
 
570
708
  def delete_snapshots(
571
- snapshots:,
709
+ snapshots_N:,
572
710
  zone:)eval(build_fetch_match)
573
711
  end
574
712
 
575
713
  def apply_snapshots(
576
- snapshots:,
714
+ snapshots_N:,
577
715
  zone:)eval(build_fetch_match)
578
716
  end
579
717
 
@@ -607,8 +745,8 @@ module QingCloud
607
745
  # Job
608
746
 
609
747
  def describe_jobs(
610
- jobs: [],
611
- status: [],
748
+ jobs_N: [],
749
+ status_N: [],
612
750
  job_action: nil,
613
751
  verbose: nil,
614
752
  offset: nil,
@@ -619,8 +757,8 @@ module QingCloud
619
757
  # Zone
620
758
 
621
759
  def describe_zones(
622
- zones: [],
623
- status: []) eval(build_fetch_match)
760
+ zones_N: [],
761
+ status_N: []) eval(build_fetch_match)
624
762
  end
625
763
 
626
764
  # RemoteDataBase
@@ -640,8 +778,8 @@ module QingCloud
640
778
  end
641
779
 
642
780
  def describe_rdbs(
643
- rdbs: [],
644
- status: [],
781
+ rdbs_N: [],
782
+ status_N: [],
645
783
  rdb_name: nil,
646
784
  verbose: nil,
647
785
  offset: nil,
@@ -650,35 +788,35 @@ module QingCloud
650
788
  end
651
789
 
652
790
  def delete_rdbs(
653
- rdbs:,
791
+ rdbs_N:,
654
792
  zone:)eval(build_fetch 'DeleteRDBs')
655
793
  end
656
794
 
657
795
  def start_rdbs(
658
- rdbs:,
796
+ rdbs_N:,
659
797
  zone:)eval(build_fetch 'StartRDBs')
660
798
  end
661
799
 
662
800
  def stop_rdbs(
663
- rdbs:,
801
+ rdbs_N:,
664
802
  zone:)eval(build_fetch 'StopRDBs')
665
803
  end
666
804
 
667
805
  def resize_rdbs(
668
- rdbs:,
806
+ rdbs_N:,
669
807
  rdb_type: nil,
670
808
  storage_size: nil,
671
809
  zone:)eval(build_fetch 'ResizeRDBs')
672
810
  end
673
811
 
674
812
  def rdbs_leave_vxnet(
675
- rdbs:,
813
+ rdbs_N:,
676
814
  vxnet:,
677
815
  zone:)eval(build_fetch 'RDBsLeaveVxnet')
678
816
  end
679
817
 
680
818
  def rdbs_join_vxnet(
681
- rdbs:,
819
+ rdbs_N:,
682
820
  vxnet:,
683
821
  zone:)eval(build_fetch 'RDBsJoinVxnet')
684
822
  end
@@ -1,7 +1,7 @@
1
1
  module QingCloud
2
2
  module SDK
3
3
 
4
- VERSION = '0.2.3'
4
+ VERSION = '0.3.1'
5
5
 
6
6
  end
7
7
  end
@@ -23,6 +23,8 @@ Gem::Specification.new do |spec|
23
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
24
  spec.require_paths = ['lib']
25
25
 
26
+ spec.required_ruby_version = '> 2.1.5'
27
+
26
28
  spec.add_development_dependency 'bundler', '~> 1.8'
27
29
  spec.add_development_dependency 'rake', '~> 10.0'
28
30
  spec.add_development_dependency 'rspec', '~> 3.2.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qingcloud-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peng Jingwen
@@ -91,9 +91,9 @@ require_paths:
91
91
  - lib
92
92
  required_ruby_version: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - ">"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: 2.1.5
97
97
  required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  requirements:
99
99
  - - ">="