zeus_sdk 0.6.9 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zeus_sdk/v1/assets.rb +6 -6
- data/lib/zeus_sdk/v1/auth.rb +33 -33
- data/lib/zeus_sdk/v1/models/assets/image.rb +2 -2
- data/lib/zeus_sdk/v1/multiplayer.rb +10 -10
- data/lib/zeus_sdk/v1/secrets.rb +4 -4
- data/lib/zeus_sdk/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dec696694bb7ef88f52a6344a6bb3a191575599dcdfabdaa0f64c2d37bd3452b
|
4
|
+
data.tar.gz: ac6bb736937fea7ba3a30f1c4f9e625dad528434d664728cced304658ab447ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6705ccd773673ccbeb2f57ba11367d0bd5a26e631f2e3072a6fdb76df6f7cf1aafe14f0df2b6df9035ea3dd7e3416c1d4e11d33a8998a29071ef9f2683d7fecb
|
7
|
+
data.tar.gz: 40d4e4fdde7226f92c07aa9142c17ee28c89495166ad31d77bc966aeca94eb0225aed2eefabc17f54acfb4da8bc7e96fc1ef386518f715bccb39caea8e05f685
|
data/lib/zeus_sdk/v1/assets.rb
CHANGED
@@ -10,34 +10,34 @@ module ZeusSdk::V1
|
|
10
10
|
|
11
11
|
def list_images(query)
|
12
12
|
resp = self.class.get("/api/v1/images", query: query, headers: self.get_headers).parsed_response
|
13
|
-
return
|
13
|
+
return resp
|
14
14
|
end
|
15
15
|
|
16
16
|
def create_image(image)
|
17
17
|
body = {image: image}
|
18
18
|
resp = self.class.post("/api/v1/images", body: body.to_json, headers: self.get_headers).parsed_response
|
19
|
-
return
|
19
|
+
return resp
|
20
20
|
end
|
21
21
|
|
22
22
|
def get_image(id)
|
23
23
|
resp = self.class.get("/api/v1/images/#{id}", headers: self.get_headers).parsed_response
|
24
|
-
return
|
24
|
+
return resp
|
25
25
|
end
|
26
26
|
|
27
27
|
def get_image_variants(id)
|
28
28
|
resp = self.class.get("/api/v1/images/#{id}/variants", headers: self.get_headers).parsed_response
|
29
|
-
return
|
29
|
+
return resp
|
30
30
|
end
|
31
31
|
|
32
32
|
def update_image(id, image)
|
33
33
|
body = {image: image}
|
34
34
|
resp = self.class.put("/api/v1/images/#{id}", body: body.to_json, headers: self.get_headers).parsed_response
|
35
|
-
return
|
35
|
+
return resp
|
36
36
|
end
|
37
37
|
|
38
38
|
def destroy_image(id)
|
39
39
|
resp = self.class.delete("/api/v1/images/#{id}", headers: self.get_headers).parsed_response
|
40
|
-
return
|
40
|
+
return resp
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|
data/lib/zeus_sdk/v1/auth.rb
CHANGED
@@ -12,53 +12,53 @@ module ZeusSdk::V1
|
|
12
12
|
def list_users(query)
|
13
13
|
resp = self.class.get("/api/v1/users", query: query, headers: self.get_headers).parsed_response
|
14
14
|
|
15
|
-
return
|
15
|
+
return resp
|
16
16
|
end
|
17
17
|
|
18
18
|
def login_with_email_password(session)
|
19
19
|
body = {user: user}
|
20
20
|
resp = self.class.post("/api/v1/sessions", body: body.to_json, headers: self.get_headers).parsed_response
|
21
21
|
|
22
|
-
return
|
22
|
+
return resp
|
23
23
|
end
|
24
24
|
|
25
25
|
def signup_with_email_password(user)
|
26
26
|
body = {user: user}
|
27
27
|
resp = self.class.post("/api/v1/users", body: body.to_json, headers: self.get_headers).parsed_response
|
28
28
|
|
29
|
-
return
|
29
|
+
return resp
|
30
30
|
end
|
31
31
|
|
32
32
|
def get_users(query)
|
33
33
|
resp = self.class.get("/api/v1/users", query: query, headers: self.get_headers).parsed_response
|
34
34
|
|
35
|
-
return
|
35
|
+
return resp
|
36
36
|
end
|
37
37
|
|
38
38
|
def get_user(id)
|
39
39
|
resp = self.class.get("/api/v1/users/#{id}", headers: self.get_headers).parsed_response
|
40
40
|
|
41
|
-
return
|
41
|
+
return resp
|
42
42
|
end
|
43
43
|
|
44
44
|
def create_user(attributes)
|
45
45
|
body = {user: attributes}
|
46
46
|
resp = self.class.post("/api/v1/users", body: body.to_json, headers: self.get_headers).parsed_response
|
47
47
|
|
48
|
-
return
|
48
|
+
return resp
|
49
49
|
end
|
50
50
|
|
51
51
|
def update_user(id, attributes)
|
52
52
|
body = {user: attributes}
|
53
53
|
resp = self.class.put("/api/v1/users/#{id}", body: body.to_json, headers: self.get_headers).parsed_response
|
54
54
|
|
55
|
-
return
|
55
|
+
return resp
|
56
56
|
end
|
57
57
|
|
58
58
|
def destroy_user(id)
|
59
59
|
resp = self.class.delete("/api/v1/users/#{id}", headers: self.get_headers).parsed_response
|
60
60
|
|
61
|
-
return
|
61
|
+
return resp
|
62
62
|
end
|
63
63
|
|
64
64
|
|
@@ -66,33 +66,33 @@ module ZeusSdk::V1
|
|
66
66
|
def get_waiting_lists(query)
|
67
67
|
resp = self.class.get("/api/v1/waiting_lists", query: query, headers: self.get_headers).parsed_response
|
68
68
|
|
69
|
-
return
|
69
|
+
return resp
|
70
70
|
end
|
71
71
|
|
72
72
|
def get_waiting_list(id)
|
73
73
|
resp = self.class.get("/api/v1/waiting_lists/#{id}", headers: self.get_headers).parsed_response
|
74
74
|
|
75
|
-
return
|
75
|
+
return resp
|
76
76
|
end
|
77
77
|
|
78
78
|
def create_waiting_list(waiting_list)
|
79
79
|
body = {waiting_list: waiting_list}
|
80
80
|
resp = self.class.post("/api/v1/waiting_lists/#{id}", body: body.to_json, headers: self.get_headers).parsed_response
|
81
81
|
|
82
|
-
return
|
82
|
+
return resp
|
83
83
|
end
|
84
84
|
|
85
85
|
def update_waiting_list(id, attributes)
|
86
86
|
body = {waiting_list: attributes}
|
87
87
|
resp = self.class.put("/api/v1/waiting_lists/#{id}", body: body.to_json, headers: self.get_headers).parsed_response
|
88
88
|
|
89
|
-
return
|
89
|
+
return resp
|
90
90
|
end
|
91
91
|
|
92
92
|
def destroy_waiting_list(id)
|
93
93
|
resp = self.class.delete("/api/v1/waiting_lists/#{id}", headers: self.get_headers).parsed_response
|
94
94
|
|
95
|
-
return
|
95
|
+
return resp
|
96
96
|
end
|
97
97
|
|
98
98
|
|
@@ -100,33 +100,33 @@ module ZeusSdk::V1
|
|
100
100
|
def get_waiting_list_emails(query)
|
101
101
|
resp = self.class.get("/api/v1/waiting_list_emails", query: query, headers: self.get_headers).parsed_response
|
102
102
|
|
103
|
-
return
|
103
|
+
return resp
|
104
104
|
end
|
105
105
|
|
106
106
|
def get_waiting_list_email(id)
|
107
107
|
resp = self.class.get("/api/v1/waiting_list_emails/#{id}", headers: self.get_headers).parsed_response
|
108
108
|
|
109
|
-
return
|
109
|
+
return resp
|
110
110
|
end
|
111
111
|
|
112
112
|
def create_waiting_list_email(waiting_list_email)
|
113
113
|
body = {waiting_list_email: waiting_list_email}
|
114
114
|
resp = self.class.post("/api/v1/waiting_list_emails/#{id}", body: body.to_json, headers: self.get_headers).parsed_response
|
115
115
|
|
116
|
-
return
|
116
|
+
return resp
|
117
117
|
end
|
118
118
|
|
119
119
|
def update_waiting_list_email(id, attributes)
|
120
120
|
body = {waiting_list_email: attributes}
|
121
121
|
resp = self.class.put("/api/v1/waiting_list_emails/#{id}", body: body.to_json, headers: self.get_headers).parsed_response
|
122
122
|
|
123
|
-
return
|
123
|
+
return resp
|
124
124
|
end
|
125
125
|
|
126
126
|
def destroy_waiting_list_email(id)
|
127
127
|
resp = self.class.delete("/api/v1/waiting_list_emails/#{id}", headers: self.get_headers).parsed_response
|
128
128
|
|
129
|
-
return
|
129
|
+
return resp
|
130
130
|
end
|
131
131
|
|
132
132
|
|
@@ -134,33 +134,33 @@ module ZeusSdk::V1
|
|
134
134
|
def get_roles(query)
|
135
135
|
resp = self.class.get("/api/v1/roles", query: query, headers: self.get_headers).parsed_response
|
136
136
|
|
137
|
-
return
|
137
|
+
return resp
|
138
138
|
end
|
139
139
|
|
140
140
|
def get_role(id)
|
141
141
|
resp = self.class.get("/api/v1/roles/#{id}", headers: self.get_headers).parsed_response
|
142
142
|
|
143
|
-
return
|
143
|
+
return resp
|
144
144
|
end
|
145
145
|
|
146
146
|
def create_role(attributes)
|
147
147
|
body = {role: attributes}
|
148
148
|
resp = self.class.post("/api/v1/roles/#{id}", body: body.to_json, headers: self.get_headers).parsed_response
|
149
149
|
|
150
|
-
return
|
150
|
+
return resp
|
151
151
|
end
|
152
152
|
|
153
153
|
def update_role(id, attributes)
|
154
154
|
body = {role: attributes}
|
155
155
|
resp = self.class.put("/api/v1/roles/#{id}", body: body.to_json, headers: self.get_headers).parsed_response
|
156
156
|
|
157
|
-
return
|
157
|
+
return resp
|
158
158
|
end
|
159
159
|
|
160
160
|
def destroy_role(id)
|
161
161
|
resp = self.class.delete("/api/v1/roles/#{id}", headers: self.get_headers).parsed_response
|
162
162
|
|
163
|
-
return
|
163
|
+
return resp
|
164
164
|
end
|
165
165
|
|
166
166
|
|
@@ -168,33 +168,33 @@ module ZeusSdk::V1
|
|
168
168
|
def get_role_users(query)
|
169
169
|
resp = self.class.get("/api/v1/role_users", query: query, headers: self.get_headers).parsed_response
|
170
170
|
|
171
|
-
return
|
171
|
+
return resp
|
172
172
|
end
|
173
173
|
|
174
174
|
def get_role_user(id)
|
175
175
|
resp = self.class.get("/api/v1/role_users/#{id}", headers: self.get_headers).parsed_response
|
176
176
|
|
177
|
-
return
|
177
|
+
return resp
|
178
178
|
end
|
179
179
|
|
180
180
|
def create_role_user(attributes)
|
181
181
|
body = {role_user: attributes}
|
182
182
|
resp = self.class.post("/api/v1/role_users/#{id}", body: body.to_json, headers: self.get_headers).parsed_response
|
183
183
|
|
184
|
-
return
|
184
|
+
return resp
|
185
185
|
end
|
186
186
|
|
187
187
|
def update_role_user(id, attributes)
|
188
188
|
body = {role_user: attributes}
|
189
189
|
resp = self.class.put("/api/v1/role_users/#{id}", body: body.to_json, headers: self.get_headers).parsed_response
|
190
190
|
|
191
|
-
return
|
191
|
+
return resp
|
192
192
|
end
|
193
193
|
|
194
194
|
def destroy_role_user(id)
|
195
195
|
resp = self.class.delete("/api/v1/role_users/#{id}", headers: self.get_headers).parsed_response
|
196
196
|
|
197
|
-
return
|
197
|
+
return resp
|
198
198
|
end
|
199
199
|
|
200
200
|
|
@@ -202,33 +202,33 @@ module ZeusSdk::V1
|
|
202
202
|
def get_permissions(query)
|
203
203
|
resp = self.class.get("/api/v1/permissions", query: query, headers: self.get_headers).parsed_response
|
204
204
|
|
205
|
-
return
|
205
|
+
return resp
|
206
206
|
end
|
207
207
|
|
208
208
|
def get_permission(id)
|
209
209
|
resp = self.class.get("/api/v1/permissions/#{id}", headers: self.get_headers).parsed_response
|
210
210
|
|
211
|
-
return
|
211
|
+
return resp
|
212
212
|
end
|
213
213
|
|
214
214
|
def create_permission(permission)
|
215
215
|
body = {permission: permission}
|
216
216
|
resp = self.class.post("/api/v1/permissions/#{id}", body: body.to_json, headers: self.get_headers).parsed_response
|
217
217
|
|
218
|
-
return
|
218
|
+
return resp
|
219
219
|
end
|
220
220
|
|
221
221
|
def update_permission(id, attributes)
|
222
222
|
body = {permission: attributes}
|
223
223
|
resp = self.class.put("/api/v1/permissions/#{id}", body: body.to_json, headers: self.get_headers).parsed_response
|
224
224
|
|
225
|
-
return
|
225
|
+
return resp
|
226
226
|
end
|
227
227
|
|
228
228
|
def destroy_permission(id)
|
229
229
|
resp = self.class.delete("/api/v1/permissions/#{id}", headers: self.get_headers).parsed_response
|
230
230
|
|
231
|
-
return
|
231
|
+
return resp
|
232
232
|
end
|
233
233
|
end
|
234
234
|
|
@@ -4,7 +4,7 @@ module ZeusSdk::V1
|
|
4
4
|
|
5
5
|
def initialize(obj)
|
6
6
|
self.raw = obj
|
7
|
-
self.
|
7
|
+
self.id = obj["id"]
|
8
8
|
self.urls = obj["urls"]
|
9
9
|
self.presigned_url = obj["presigned_url"]
|
10
10
|
self.presigned_post = obj["presigned_post"]
|
@@ -14,7 +14,7 @@ module ZeusSdk::V1
|
|
14
14
|
|
15
15
|
def as_json(options={})
|
16
16
|
return {
|
17
|
-
id: self.
|
17
|
+
id: self.id,
|
18
18
|
urls: self.urls,
|
19
19
|
presigned_url: self.presigned_url,
|
20
20
|
presigned_post: self.presigned_post,
|
@@ -10,55 +10,55 @@ module ZeusSdk::V1
|
|
10
10
|
|
11
11
|
def list_documents(query)
|
12
12
|
resp = self.class.get("/api/v1/documents", query: query, headers: self.get_headers).parsed_response
|
13
|
-
return
|
13
|
+
return resp
|
14
14
|
end
|
15
15
|
|
16
16
|
def create_document(document)
|
17
17
|
body = {document: document}
|
18
18
|
resp = self.class.post("/api/v1/documents", body: body.to_json, headers: self.get_headers).parsed_response
|
19
|
-
return
|
19
|
+
return resp
|
20
20
|
end
|
21
21
|
|
22
22
|
def get_document(id)
|
23
23
|
resp = self.class.get("/api/v1/documents/#{id}", headers: self.get_headers).parsed_response
|
24
|
-
return
|
24
|
+
return resp
|
25
25
|
end
|
26
26
|
|
27
27
|
def update_document(id, document)
|
28
28
|
body = {document: document}
|
29
29
|
resp = self.class.put("/api/v1/documents/#{id}", body: body.to_json, headers: self.get_headers).parsed_response
|
30
|
-
return
|
30
|
+
return resp
|
31
31
|
end
|
32
32
|
|
33
33
|
def destroy_document(id)
|
34
34
|
resp = self.class.delete("/api/v1/documents/#{id}", headers: self.get_headers).parsed_response
|
35
|
-
return
|
35
|
+
return resp
|
36
36
|
end
|
37
37
|
|
38
38
|
def list_nodes(query)
|
39
39
|
resp = self.class.get("/api/v1/nodes", query: query, headers: self.get_headers).parsed_response
|
40
|
-
return
|
40
|
+
return resp
|
41
41
|
end
|
42
42
|
|
43
43
|
def create_node(node)
|
44
44
|
body = {node: node}
|
45
45
|
resp = self.class.post("/api/v1/nodes", body: body.to_json, headers: self.get_headers).parsed_response
|
46
|
-
return
|
46
|
+
return resp
|
47
47
|
end
|
48
48
|
|
49
49
|
def get_node(id)
|
50
50
|
resp = self.class.get("/api/v1/nodes/#{id}", headers: self.get_headers).parsed_response
|
51
|
-
return
|
51
|
+
return resp
|
52
52
|
end
|
53
53
|
|
54
54
|
def update_node(id, node)
|
55
55
|
resp = self.class.put("/api/v1/nodes/#{id}", body: {node: node}.to_json, headers: self.get_headers).parsed_response
|
56
|
-
return
|
56
|
+
return resp
|
57
57
|
end
|
58
58
|
|
59
59
|
def destroy_node(id)
|
60
60
|
resp = self.class.delete("/api/v1/nodes/#{id}", headers: self.get_headers).parsed_response
|
61
|
-
return
|
61
|
+
return resp
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
data/lib/zeus_sdk/v1/secrets.rb
CHANGED
@@ -10,23 +10,23 @@ module ZeusSdk::V1
|
|
10
10
|
|
11
11
|
def list_secrets(query)
|
12
12
|
resp = self.class.get("/api/v1/secrets", query: query, headers: self.get_headers)
|
13
|
-
return
|
13
|
+
return resp
|
14
14
|
end
|
15
15
|
|
16
16
|
def get_secret(key)
|
17
17
|
resp = self.class.get("/api/v1/secrets/#{key}", headers: self.get_headers)
|
18
|
-
return
|
18
|
+
return resp
|
19
19
|
end
|
20
20
|
|
21
21
|
def set_secret(key, value)
|
22
22
|
body = {secret: {key: key, value: value}}
|
23
23
|
resp = self.class.post("/api/v1/secrets", body: body.to_json, headers: self.get_headers)
|
24
|
-
return
|
24
|
+
return resp
|
25
25
|
end
|
26
26
|
|
27
27
|
def delete_secret(key)
|
28
28
|
resp = self.class.post("/api/v1/secrets/#{key}", headers: self.get_headers)
|
29
|
-
return
|
29
|
+
return resp
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
data/lib/zeus_sdk/version.rb
CHANGED