cloudstack_client 0.9.6 → 0.9.7

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: 5e2682ae8469891cdb15722491e18e86dd69c492
4
- data.tar.gz: d6aff5e73cb6eeb7c9d4153be607e1ca5e1d12d4
3
+ metadata.gz: b2a2d40dacfee5848631290128014dc97e9c8779
4
+ data.tar.gz: 3e6586720e833c58e1cc3749be18208fc0e4540d
5
5
  SHA512:
6
- metadata.gz: ca2ac6bde98ae3caf8527a01f9616172d6889db61bf9533059657a7bde695d0b1a913e612ca4ce9f34e4ae3375253fde5faafb5268d4cee6dffa2a1d86a2dcfb
7
- data.tar.gz: 43597edeaa138da7ab8271823415138f0876d26b59e7b4614fb222c59a70d2a5c1d0b45ba26f1d7595f9e28ec7d4077ceebc16782868463a6c4afe7c4bbb39a1
6
+ metadata.gz: 09364a8076d287ccab63de50edec4baf07a20cda57dc4670b07df6c304e53c9c7d85f7d9a570b14ef9b4635793720187de9bf3faf7d2adb175944c27eb18639c
7
+ data.tar.gz: f8818939d6b9d9c281069c3dd972ad4c876d47b21e069a83c238df370894e9d06085c65890f6db8e5342c1918c50395be9aa95eb12a14c110b2b499d99ba6e50
@@ -20,7 +20,7 @@ module CloudstackClient
20
20
  ##
21
21
  # Lists project accounts.
22
22
 
23
- def list_project_accounts(project_id, args)
23
+ def list_project_accounts(project_id, args = {})
24
24
  params = {
25
25
  'command' => 'listProjectAccounts',
26
26
  'projectid' => project_id,
@@ -28,55 +28,55 @@ module CloudstackClient
28
28
  json['systemvm'] || []
29
29
  end
30
30
 
31
- end
32
-
33
- ##
34
- # Stop system VM.
35
- #
36
-
37
- def stop_system_vm(id, args = {})
38
- params = {
39
- 'command' => 'stopSystemVm',
40
- 'id' => id
41
- }
42
- params['forced'] = true if args[:forced]
43
- args[:sync] ? send_request(params) : send_async_request(params)['systemvm']
44
- end
45
-
46
- ##
47
- # Start system VM.
48
- #
49
-
50
- def start_system_vm(id, args = {})
51
- params = {
52
- 'command' => 'startSystemVm',
53
- 'id' => id
54
- }
55
- args[:sync] ? send_request(params) : send_async_request(params)['systemvm']
56
- end
57
-
58
- ##
59
- # Reboot sytem VM.
60
- #
61
-
62
- def reboot_system_vm(id, args = {})
63
- params = {
64
- 'command' => 'rebootSystemVm',
65
- 'id' => id
66
- }
67
- args[:sync] ? send_request(params) : send_async_request(params)['systemvm']
68
- end
69
-
70
- ##
71
- # Destroy sytem VM.
72
- #
73
-
74
- def destroy_system_vm(id, args = {})
75
- params = {
76
- 'command' => 'destroySystemVm',
31
+ ##
32
+ # Stop system VM.
33
+ #
34
+
35
+ def stop_system_vm(id, args = {})
36
+ params = {
37
+ 'command' => 'stopSystemVm',
38
+ 'id' => id
39
+ }
40
+ params['forced'] = true if args[:forced]
41
+ args[:sync] ? send_request(params) : send_async_request(params)['systemvm']
42
+ end
43
+
44
+ ##
45
+ # Start system VM.
46
+ #
47
+
48
+ def start_system_vm(id, args = {})
49
+ params = {
50
+ 'command' => 'startSystemVm',
51
+ 'id' => id
52
+ }
53
+ args[:sync] ? send_request(params) : send_async_request(params)['systemvm']
54
+ end
55
+
56
+ ##
57
+ # Reboot sytem VM.
58
+ #
59
+
60
+ def reboot_system_vm(id, args = {})
61
+ params = {
62
+ 'command' => 'rebootSystemVm',
77
63
  'id' => id
78
- }
79
- args[:sync] ? send_request(params) : send_async_request(params)['systemvm']
80
- end
64
+ }
65
+ args[:sync] ? send_request(params) : send_async_request(params)['systemvm']
66
+ end
67
+
68
+ ##
69
+ # Destroy sytem VM.
70
+ #
71
+
72
+ def destroy_system_vm(id, args = {})
73
+ params = {
74
+ 'command' => 'destroySystemVm',
75
+ 'id' => id
76
+ }
77
+ args[:sync] ? send_request(params) : send_async_request(params)['systemvm']
78
+ end
79
+
80
+ end # module
81
81
 
82
82
  end
@@ -1,3 +1,3 @@
1
1
  module CloudstackClient
2
- VERSION = "0.9.6"
2
+ VERSION = "0.9.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstack_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nik Wolfgramm