occi-api 4.2.0.beta.3 → 4.2.0.beta.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/occi/api/dsl.rb +84 -27
- data/lib/occi/api/version.rb +1 -1
- metadata +1 -1
data/lib/occi/api/dsl.rb
CHANGED
@@ -16,99 +16,133 @@ module Occi
|
|
16
16
|
|
17
17
|
def list(*args)
|
18
18
|
check
|
19
|
-
|
20
19
|
@client.list(*args)
|
21
20
|
end
|
22
21
|
|
23
22
|
def describe(*args)
|
24
23
|
check
|
25
|
-
|
26
24
|
@client.describe(*args)
|
27
25
|
end
|
28
26
|
|
29
27
|
def create(*args)
|
30
28
|
check
|
31
|
-
|
32
29
|
@client.create(*args)
|
33
30
|
end
|
34
31
|
|
35
32
|
def delete(*args)
|
36
33
|
check
|
37
|
-
|
38
34
|
@client.delete(*args)
|
39
35
|
end
|
40
36
|
|
41
37
|
def trigger(*args)
|
42
38
|
check
|
43
|
-
|
44
39
|
@client.trigger(*args)
|
45
40
|
end
|
46
41
|
|
47
42
|
def refresh
|
48
43
|
check
|
49
|
-
|
50
44
|
@client.refresh
|
51
45
|
end
|
52
46
|
|
53
47
|
def model
|
54
48
|
check
|
55
|
-
|
56
49
|
@client.model
|
57
50
|
end
|
58
51
|
|
59
52
|
###
|
60
53
|
|
61
|
-
def
|
54
|
+
def kind_types
|
62
55
|
check
|
56
|
+
@client.get_kind_types
|
57
|
+
end
|
63
58
|
|
64
|
-
|
59
|
+
def kind_type_identifier(*args)
|
60
|
+
check
|
61
|
+
@client.get_kind_type_identifier(*args)
|
65
62
|
end
|
66
63
|
|
67
|
-
def
|
64
|
+
def kind_type_identifiers
|
68
65
|
check
|
66
|
+
@client.get_kind_type_identifiers
|
67
|
+
end
|
69
68
|
|
70
|
-
|
69
|
+
def kind_type_identifiers_related_to(*args)
|
70
|
+
check
|
71
|
+
@client.get_kind_type_identifiers_related_to(*args)
|
71
72
|
end
|
72
73
|
|
73
|
-
def
|
74
|
+
def category_types
|
74
75
|
check
|
76
|
+
@client.get_category_types
|
77
|
+
end
|
75
78
|
|
76
|
-
|
79
|
+
def category_type_identifier(*args)
|
80
|
+
check
|
81
|
+
@client.get_category_type_identifier(*args)
|
77
82
|
end
|
78
83
|
|
79
|
-
def
|
84
|
+
def category_type_identifiers
|
80
85
|
check
|
86
|
+
@client.get_category_type_identifiers
|
87
|
+
end
|
81
88
|
|
82
|
-
|
89
|
+
def resource_types
|
90
|
+
check
|
91
|
+
@client.get_resource_types
|
83
92
|
end
|
84
93
|
|
85
|
-
def
|
94
|
+
def resource_type_identifier(*args)
|
86
95
|
check
|
96
|
+
@client.get_resource_type_identifier(*args)
|
97
|
+
end
|
87
98
|
|
88
|
-
|
99
|
+
def resource_type_identifiers
|
100
|
+
check
|
101
|
+
@client.get_resource_type_identifiers
|
89
102
|
end
|
90
103
|
|
91
|
-
def
|
104
|
+
def mixin_types
|
92
105
|
check
|
106
|
+
@client.get_mixin_types
|
107
|
+
end
|
93
108
|
|
94
|
-
|
109
|
+
def mixin_type_identifier(*args)
|
110
|
+
check
|
111
|
+
@client.get_mixin_type_identifier(*args)
|
95
112
|
end
|
96
113
|
|
97
|
-
def
|
114
|
+
def mixin_type_identifiers
|
98
115
|
check
|
116
|
+
@client.get_mixin_type_identifiers
|
117
|
+
end
|
99
118
|
|
100
|
-
|
119
|
+
def entity_types
|
120
|
+
check
|
121
|
+
@client.get_entity_types
|
101
122
|
end
|
102
123
|
|
103
|
-
def
|
124
|
+
def entity_type_identifier(*args)
|
104
125
|
check
|
126
|
+
@client.get_entity_type_identifier(*args)
|
127
|
+
end
|
105
128
|
|
129
|
+
def entity_type_identifiers
|
130
|
+
check
|
131
|
+
@client.get_entity_type_identifiers
|
132
|
+
end
|
133
|
+
|
134
|
+
def link_types
|
135
|
+
check
|
106
136
|
@client.get_link_types
|
107
137
|
end
|
108
138
|
|
109
|
-
def
|
139
|
+
def link_type_identifier(*args)
|
110
140
|
check
|
141
|
+
@client.get_link_type_identifier(*args)
|
142
|
+
end
|
111
143
|
|
144
|
+
def link_type_identifiers
|
145
|
+
check
|
112
146
|
@client.get_link_type_identifiers
|
113
147
|
end
|
114
148
|
|
@@ -116,28 +150,51 @@ module Occi
|
|
116
150
|
|
117
151
|
def mixins(*args)
|
118
152
|
check
|
119
|
-
|
120
153
|
@client.get_mixins(*args)
|
121
154
|
end
|
122
155
|
|
123
|
-
def
|
156
|
+
def os_templates
|
124
157
|
check
|
158
|
+
@client.get_os_templates
|
159
|
+
end
|
125
160
|
|
161
|
+
def resource_templates
|
162
|
+
check
|
163
|
+
@client.get_resource_templates
|
164
|
+
end
|
165
|
+
|
166
|
+
def mixin_list(*args)
|
167
|
+
check
|
126
168
|
@client.list_mixins(*args)
|
127
169
|
end
|
128
170
|
|
129
171
|
def resource(*args)
|
130
172
|
check
|
131
|
-
|
132
173
|
@client.get_resource(*args)
|
133
174
|
end
|
134
175
|
|
135
176
|
def mixin(*args)
|
136
177
|
check
|
137
|
-
|
138
178
|
@client.get_mixin(*args)
|
139
179
|
end
|
140
180
|
|
181
|
+
###
|
182
|
+
|
183
|
+
def path_for_kind_type_identifier(*args)
|
184
|
+
check
|
185
|
+
@client.path_for_kind_type_identifier(*args)
|
186
|
+
end
|
187
|
+
|
188
|
+
def path_for_instance(*args)
|
189
|
+
check
|
190
|
+
@client.path_for_instance(*args)
|
191
|
+
end
|
192
|
+
|
193
|
+
def sanitize_instance_link(*args)
|
194
|
+
check
|
195
|
+
@client.sanitize_instance_link(*args)
|
196
|
+
end
|
197
|
+
|
141
198
|
private
|
142
199
|
|
143
200
|
def check
|
data/lib/occi/api/version.rb
CHANGED