occi-api 4.2.0.beta.4 → 4.2.0.beta.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/occi-api.rb +5 -1
- data/lib/occi/api/client/authn_utils.rb +84 -76
- data/lib/occi/api/client/base/category_methods.rb +54 -0
- data/lib/occi/api/client/base/entity_methods.rb +172 -0
- data/lib/occi/api/client/base/helpers.rb +91 -0
- data/lib/occi/api/client/base/kind_methods.rb +70 -0
- data/lib/occi/api/client/base/mixin_methods.rb +223 -0
- data/lib/occi/api/client/base/protected_helpers.rb +79 -0
- data/lib/occi/api/client/base/protected_stubs.rb +44 -0
- data/lib/occi/api/client/base/stubs.rb +142 -0
- data/lib/occi/api/client/client_base.rb +65 -860
- data/lib/occi/api/client/client_http.rb +181 -492
- data/lib/occi/api/client/errors.rb +0 -2
- data/lib/occi/api/client/http/authn_plugins.rb +3 -6
- data/lib/occi/api/client/http/code_helpers.rb +64 -0
- data/lib/occi/api/client/http/helpers.rb +99 -0
- data/lib/occi/api/client/http/monkey_patches.rb +2 -0
- data/lib/occi/api/client/http/{httparty_fix.rb → monkey_patches/httparty_fix.rb} +4 -0
- data/lib/occi/api/client/http/{net_http_fix.rb → monkey_patches/net_http_fix.rb} +0 -0
- data/lib/occi/api/client/http/party_wrappers.rb +173 -0
- data/lib/occi/api/dsl.rb +32 -193
- data/lib/occi/api/dsl/helper_methods.rb +22 -0
- data/lib/occi/api/dsl/main_methods.rb +47 -0
- data/lib/occi/api/dsl/mixin_methods.rb +32 -0
- data/lib/occi/api/dsl/type_methods.rb +102 -0
- data/lib/occi/api/version.rb +1 -1
- metadata +20 -4
@@ -0,0 +1,22 @@
|
|
1
|
+
module Occi::Api::Dsl
|
2
|
+
|
3
|
+
module HelperMethods
|
4
|
+
|
5
|
+
def path_for_kind_type_identifier(*args)
|
6
|
+
check
|
7
|
+
@client.path_for_kind_type_identifier(*args)
|
8
|
+
end
|
9
|
+
|
10
|
+
def path_for_instance(*args)
|
11
|
+
check
|
12
|
+
@client.path_for_instance(*args)
|
13
|
+
end
|
14
|
+
|
15
|
+
def sanitize_instance_link(*args)
|
16
|
+
check
|
17
|
+
@client.sanitize_instance_link(*args)
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
module Occi::Api::Dsl
|
2
|
+
|
3
|
+
module MainMethods
|
4
|
+
|
5
|
+
def resource(*args)
|
6
|
+
check
|
7
|
+
@client.get_resource(*args)
|
8
|
+
end
|
9
|
+
|
10
|
+
def list(*args)
|
11
|
+
check
|
12
|
+
@client.list(*args)
|
13
|
+
end
|
14
|
+
|
15
|
+
def describe(*args)
|
16
|
+
check
|
17
|
+
@client.describe(*args)
|
18
|
+
end
|
19
|
+
|
20
|
+
def create(*args)
|
21
|
+
check
|
22
|
+
@client.create(*args)
|
23
|
+
end
|
24
|
+
|
25
|
+
def delete(*args)
|
26
|
+
check
|
27
|
+
@client.delete(*args)
|
28
|
+
end
|
29
|
+
|
30
|
+
def trigger(*args)
|
31
|
+
check
|
32
|
+
@client.trigger(*args)
|
33
|
+
end
|
34
|
+
|
35
|
+
def refresh
|
36
|
+
check
|
37
|
+
@client.refresh
|
38
|
+
end
|
39
|
+
|
40
|
+
def model
|
41
|
+
check
|
42
|
+
@client.model
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module Occi::Api::Dsl
|
2
|
+
|
3
|
+
module MixinMethods
|
4
|
+
|
5
|
+
def mixins(*args)
|
6
|
+
check
|
7
|
+
@client.get_mixins(*args)
|
8
|
+
end
|
9
|
+
|
10
|
+
def os_templates
|
11
|
+
check
|
12
|
+
@client.get_os_templates
|
13
|
+
end
|
14
|
+
|
15
|
+
def resource_templates
|
16
|
+
check
|
17
|
+
@client.get_resource_templates
|
18
|
+
end
|
19
|
+
|
20
|
+
def mixin_list(*args)
|
21
|
+
check
|
22
|
+
@client.list_mixins(*args)
|
23
|
+
end
|
24
|
+
|
25
|
+
def mixin(*args)
|
26
|
+
check
|
27
|
+
@client.get_mixin(*args)
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
@@ -0,0 +1,102 @@
|
|
1
|
+
module Occi::Api::Dsl
|
2
|
+
|
3
|
+
module TypeMethods
|
4
|
+
|
5
|
+
def kind_types
|
6
|
+
check
|
7
|
+
@client.get_kind_types
|
8
|
+
end
|
9
|
+
|
10
|
+
def kind_type_identifier(*args)
|
11
|
+
check
|
12
|
+
@client.get_kind_type_identifier(*args)
|
13
|
+
end
|
14
|
+
|
15
|
+
def kind_type_identifiers
|
16
|
+
check
|
17
|
+
@client.get_kind_type_identifiers
|
18
|
+
end
|
19
|
+
|
20
|
+
def kind_type_identifiers_related_to(*args)
|
21
|
+
check
|
22
|
+
@client.get_kind_type_identifiers_related_to(*args)
|
23
|
+
end
|
24
|
+
|
25
|
+
def category_types
|
26
|
+
check
|
27
|
+
@client.get_category_types
|
28
|
+
end
|
29
|
+
|
30
|
+
def category_type_identifier(*args)
|
31
|
+
check
|
32
|
+
@client.get_category_type_identifier(*args)
|
33
|
+
end
|
34
|
+
|
35
|
+
def category_type_identifiers
|
36
|
+
check
|
37
|
+
@client.get_category_type_identifiers
|
38
|
+
end
|
39
|
+
|
40
|
+
def resource_types
|
41
|
+
check
|
42
|
+
@client.get_resource_types
|
43
|
+
end
|
44
|
+
|
45
|
+
def resource_type_identifier(*args)
|
46
|
+
check
|
47
|
+
@client.get_resource_type_identifier(*args)
|
48
|
+
end
|
49
|
+
|
50
|
+
def resource_type_identifiers
|
51
|
+
check
|
52
|
+
@client.get_resource_type_identifiers
|
53
|
+
end
|
54
|
+
|
55
|
+
def mixin_types
|
56
|
+
check
|
57
|
+
@client.get_mixin_types
|
58
|
+
end
|
59
|
+
|
60
|
+
def mixin_type_identifier(*args)
|
61
|
+
check
|
62
|
+
@client.get_mixin_type_identifier(*args)
|
63
|
+
end
|
64
|
+
|
65
|
+
def mixin_type_identifiers
|
66
|
+
check
|
67
|
+
@client.get_mixin_type_identifiers
|
68
|
+
end
|
69
|
+
|
70
|
+
def entity_types
|
71
|
+
check
|
72
|
+
@client.get_entity_types
|
73
|
+
end
|
74
|
+
|
75
|
+
def entity_type_identifier(*args)
|
76
|
+
check
|
77
|
+
@client.get_entity_type_identifier(*args)
|
78
|
+
end
|
79
|
+
|
80
|
+
def entity_type_identifiers
|
81
|
+
check
|
82
|
+
@client.get_entity_type_identifiers
|
83
|
+
end
|
84
|
+
|
85
|
+
def link_types
|
86
|
+
check
|
87
|
+
@client.get_link_types
|
88
|
+
end
|
89
|
+
|
90
|
+
def link_type_identifier(*args)
|
91
|
+
check
|
92
|
+
@client.get_link_type_identifier(*args)
|
93
|
+
end
|
94
|
+
|
95
|
+
def link_type_identifiers
|
96
|
+
check
|
97
|
+
@client.get_link_type_identifiers
|
98
|
+
end
|
99
|
+
|
100
|
+
end
|
101
|
+
|
102
|
+
end
|
data/lib/occi/api/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: occi-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.0.beta.
|
4
|
+
version: 4.2.0.beta.6
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-12-
|
14
|
+
date: 2013-12-10 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: occi-core
|
@@ -84,6 +84,14 @@ files:
|
|
84
84
|
- examples/x509auth_example.rb
|
85
85
|
- lib/occi-api.rb
|
86
86
|
- lib/occi/api/client/authn_utils.rb
|
87
|
+
- lib/occi/api/client/base/category_methods.rb
|
88
|
+
- lib/occi/api/client/base/entity_methods.rb
|
89
|
+
- lib/occi/api/client/base/helpers.rb
|
90
|
+
- lib/occi/api/client/base/kind_methods.rb
|
91
|
+
- lib/occi/api/client/base/mixin_methods.rb
|
92
|
+
- lib/occi/api/client/base/protected_helpers.rb
|
93
|
+
- lib/occi/api/client/base/protected_stubs.rb
|
94
|
+
- lib/occi/api/client/base/stubs.rb
|
87
95
|
- lib/occi/api/client/client_base.rb
|
88
96
|
- lib/occi/api/client/client_http.rb
|
89
97
|
- lib/occi/api/client/errors.rb
|
@@ -99,9 +107,17 @@ files:
|
|
99
107
|
- lib/occi/api/client/http/authn_plugins/dummy.rb
|
100
108
|
- lib/occi/api/client/http/authn_plugins/keystone.rb
|
101
109
|
- lib/occi/api/client/http/authn_plugins/x509.rb
|
102
|
-
- lib/occi/api/client/http/
|
103
|
-
- lib/occi/api/client/http/
|
110
|
+
- lib/occi/api/client/http/code_helpers.rb
|
111
|
+
- lib/occi/api/client/http/helpers.rb
|
112
|
+
- lib/occi/api/client/http/monkey_patches.rb
|
113
|
+
- lib/occi/api/client/http/monkey_patches/httparty_fix.rb
|
114
|
+
- lib/occi/api/client/http/monkey_patches/net_http_fix.rb
|
115
|
+
- lib/occi/api/client/http/party_wrappers.rb
|
104
116
|
- lib/occi/api/dsl.rb
|
117
|
+
- lib/occi/api/dsl/helper_methods.rb
|
118
|
+
- lib/occi/api/dsl/main_methods.rb
|
119
|
+
- lib/occi/api/dsl/mixin_methods.rb
|
120
|
+
- lib/occi/api/dsl/type_methods.rb
|
105
121
|
- lib/occi/api/version.rb
|
106
122
|
- occi-api.gemspec
|
107
123
|
- spec/cassettes/Occi_Api_Client_ClientHttp/using_media_type_text_plain/creates_a_new_compute_resource.yml
|