cloudstack_ruby_client 1.0.1 → 1.0.2
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.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGJlYzk3MDVmMzNjMDQxZDkxZjJmNDJkZDlhMWM5NmYzNGM2ZWU4Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTYwZjRiYjk0OWE0OGZkNjY1MmQ0Y2Q2ODA4MWM5ZWEzNmM2ODEwMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWRiYzk2NDNmMDA2MDY5ZTUzODgzMDlhZGExNTllNDQ2N2E0MGMxNmYwNmJk
|
10
|
+
YTYzYTAwODZhNWVlMGJlNjIwNGIxNmM3MDc0Njg0NTdkNzMzYzNkZDNiYzUx
|
11
|
+
NGI4NzRiMDg1ZmY4ZjUxZGE2ODljZWIwZTVlOGE0MjJkMjI5MjE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTg3NzQ2ZTdhOWU2NTZkMzIxMTU1YmMzNjQ3ZWM5NThlOGY2ZDRhNWQ0MmI4
|
14
|
+
MmY2ODJkOWM5MWMzYzFmZTZmZjcxNDEzOWJkZTU2ZWI0Yjk0MTRmMDBlMTNm
|
15
|
+
NzgxYTFhMzg5YjM0ZmJhODQ4OWZkZTU3YTdhNzM1OGFhZjcxMWQ=
|
@@ -44,9 +44,15 @@ module CloudstackRubyClient
|
|
44
44
|
end
|
45
45
|
|
46
46
|
module NetworkACL
|
47
|
-
cmd_processor :
|
48
|
-
:
|
49
|
-
:
|
47
|
+
cmd_processor :create_network_a_c_l,
|
48
|
+
:update_network_a_c_l_item,
|
49
|
+
:delete_network_a_c_l,
|
50
|
+
:list_network_a_c_ls,
|
51
|
+
:create_network_a_c_l_list,
|
52
|
+
:delete_network_a_c_l_list,
|
53
|
+
:replace_network_a_c_l_list,
|
54
|
+
:list_network_a_c_l_lists,
|
55
|
+
:update_network_a_c_l_list,
|
50
56
|
:list_nicira_nvp_device_networks
|
51
57
|
end
|
52
58
|
|
@@ -1,10 +1,11 @@
|
|
1
1
|
class CloudstackRubyClient::BaseClient
|
2
2
|
|
3
|
-
def initialize(api_url, api_key, secret_key, use_ssl=nil)
|
4
|
-
@api_url
|
5
|
-
@api_key
|
6
|
-
@secret_key
|
7
|
-
@use_ssl
|
3
|
+
def initialize(api_url, api_key, secret_key, use_ssl=nil, open_timeout=20)
|
4
|
+
@api_url = api_url
|
5
|
+
@api_key = api_key
|
6
|
+
@secret_key = secret_key
|
7
|
+
@use_ssl = use_ssl
|
8
|
+
@open_timeout = open_timeout
|
8
9
|
end
|
9
10
|
|
10
11
|
def request(params)
|
@@ -21,6 +22,7 @@ class CloudstackRubyClient::BaseClient
|
|
21
22
|
uri = URI.parse(url)
|
22
23
|
http = Net::HTTP.new(uri.host, uri.port)
|
23
24
|
http.use_ssl = @use_ssl
|
25
|
+
http.open_timeout = @open_timeout # fail the connection faster if can't open socket
|
24
26
|
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
25
27
|
request = Net::HTTP::Get.new(uri.request_uri)
|
26
28
|
|
@@ -26,6 +26,11 @@ class CloudstackRubyClient::Client < CloudstackRubyClient::BaseClient
|
|
26
26
|
@@API_LIST
|
27
27
|
end
|
28
28
|
|
29
|
+
## CloudStack management server version
|
30
|
+
def version
|
31
|
+
self.list_capabilities["capability"]["cloudstackversion"]
|
32
|
+
end
|
33
|
+
|
29
34
|
## login api command
|
30
35
|
def login(params = {})
|
31
36
|
auth_request(params, "login")
|
@@ -24,7 +24,8 @@ class Module
|
|
24
24
|
"createlbhealthcheckpolicy" => "createLBHealthCheckPolicy",
|
25
25
|
"deletelbhealthcheckpolicy" => "deleteLBHealthCheckPolicy",
|
26
26
|
"createvpc" => "createVPC",
|
27
|
-
"
|
27
|
+
"listvpcs" => "listVPCs",
|
28
|
+
"deletevpc" => "deleteVPC",
|
28
29
|
"updatevpc" => "updateVPC",
|
29
30
|
"restartvpc" => "restartVPC",
|
30
31
|
"createvpcoffering" => "createVPCOffering",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudstack_ruby_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chip Childers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A Ruby client for CloudStack's API, including a simple CLI.
|
14
14
|
email:
|