ory-keto-client 0.0.0.alpha41 → 0.0.0.alpha47
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/AddOryAccessControlPolicyRoleMembersBody.md +8 -7
- data/docs/AuthorizationResult.md +8 -7
- data/docs/EnginesApi.md +319 -129
- data/docs/HealthApi.md +50 -15
- data/docs/HealthNotReadyStatus.md +8 -7
- data/docs/HealthStatus.md +8 -7
- data/docs/InlineResponse500.md +18 -17
- data/docs/OryAccessControlPolicy.md +20 -19
- data/docs/OryAccessControlPolicyAllowedInput.md +14 -13
- data/docs/OryAccessControlPolicyRole.md +10 -9
- data/docs/Version.md +8 -7
- data/docs/VersionApi.md +26 -9
- data/lib/ory-keto-client.rb +2 -2
- data/lib/ory-keto-client/api/engines_api.rb +46 -35
- data/lib/ory-keto-client/api/health_api.rb +10 -8
- data/lib/ory-keto-client/api/version_api.rb +6 -5
- data/lib/ory-keto-client/api_client.rb +50 -48
- data/lib/ory-keto-client/api_error.rb +2 -2
- data/lib/ory-keto-client/configuration.rb +34 -7
- data/lib/ory-keto-client/models/add_ory_access_control_policy_role_members_body.rb +20 -8
- data/lib/ory-keto-client/models/authorization_result.rb +20 -8
- data/lib/ory-keto-client/models/health_not_ready_status.rb +20 -8
- data/lib/ory-keto-client/models/health_status.rb +20 -8
- data/lib/ory-keto-client/models/inline_response500.rb +20 -8
- data/lib/ory-keto-client/models/ory_access_control_policy.rb +20 -8
- data/lib/ory-keto-client/models/ory_access_control_policy_allowed_input.rb +20 -8
- data/lib/ory-keto-client/models/ory_access_control_policy_role.rb +20 -8
- data/lib/ory-keto-client/models/version.rb +20 -8
- data/lib/ory-keto-client/version.rb +3 -3
- data/ory-keto-client.gemspec +4 -5
- data/spec/api_client_spec.rb +4 -4
- data/spec/configuration_spec.rb +3 -3
- data/spec/spec_helper.rb +3 -3
- metadata +55 -75
@@ -3,14 +3,15 @@
|
|
3
3
|
|
4
4
|
#Ory Keto is a cloud native access control server providing best-practice patterns (RBAC, ABAC, ACL, AWS IAM Policies, Kubernetes Roles, ...) via REST APIs.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.0-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.0-alpha.47
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module OryHydraClient
|
16
17
|
class Version
|
@@ -24,6 +25,11 @@ module OryHydraClient
|
|
24
25
|
}
|
25
26
|
end
|
26
27
|
|
28
|
+
# Returns all the JSON keys this model knows about
|
29
|
+
def self.acceptable_attributes
|
30
|
+
attribute_map.values
|
31
|
+
end
|
32
|
+
|
27
33
|
# Attribute type mapping.
|
28
34
|
def self.openapi_types
|
29
35
|
{
|
@@ -103,7 +109,9 @@ module OryHydraClient
|
|
103
109
|
def build_from_hash(attributes)
|
104
110
|
return nil unless attributes.is_a?(Hash)
|
105
111
|
self.class.openapi_types.each_pair do |key, type|
|
106
|
-
if
|
112
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
113
|
+
self.send("#{key}=", nil)
|
114
|
+
elsif type =~ /\AArray<(.*)>/i
|
107
115
|
# check to ensure the input is an array given that the attribute
|
108
116
|
# is documented as an array but the input is not
|
109
117
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -111,7 +119,7 @@ module OryHydraClient
|
|
111
119
|
end
|
112
120
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
113
121
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
114
|
-
end
|
122
|
+
end
|
115
123
|
end
|
116
124
|
|
117
125
|
self
|
@@ -123,8 +131,8 @@ module OryHydraClient
|
|
123
131
|
# @return [Object] Deserialized data
|
124
132
|
def _deserialize(type, value)
|
125
133
|
case type.to_sym
|
126
|
-
when :
|
127
|
-
|
134
|
+
when :Time
|
135
|
+
Time.parse(value)
|
128
136
|
when :Date
|
129
137
|
Date.parse(value)
|
130
138
|
when :String
|
@@ -154,7 +162,9 @@ module OryHydraClient
|
|
154
162
|
end
|
155
163
|
end
|
156
164
|
else # model
|
157
|
-
|
165
|
+
# models (e.g. Pet) or oneOf
|
166
|
+
klass = OryHydraClient.const_get(type)
|
167
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
158
168
|
end
|
159
169
|
end
|
160
170
|
|
@@ -180,7 +190,7 @@ module OryHydraClient
|
|
180
190
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
181
191
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
182
192
|
end
|
183
|
-
|
193
|
+
|
184
194
|
hash[param] = _to_hash(value)
|
185
195
|
end
|
186
196
|
hash
|
@@ -203,5 +213,7 @@ module OryHydraClient
|
|
203
213
|
value
|
204
214
|
end
|
205
215
|
end
|
216
|
+
|
206
217
|
end
|
218
|
+
|
207
219
|
end
|
@@ -3,13 +3,13 @@
|
|
3
3
|
|
4
4
|
#Ory Keto is a cloud native access control server providing best-practice patterns (RBAC, ABAC, ACL, AWS IAM Policies, Kubernetes Roles, ...) via REST APIs.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.0.0.
|
6
|
+
The version of the OpenAPI document: 0.0.0.alpha47
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module OryHydraClient
|
14
|
-
VERSION = '0.0.0.
|
14
|
+
VERSION = '0.0.0.alpha47'
|
15
15
|
end
|
data/ory-keto-client.gemspec
CHANGED
@@ -5,10 +5,10 @@
|
|
5
5
|
|
6
6
|
#Ory Keto is a cloud native access control server providing best-practice patterns (RBAC, ABAC, ACL, AWS IAM Policies, Kubernetes Roles, ...) via REST APIs.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v0.0.0-alpha.
|
8
|
+
The version of the OpenAPI document: v0.0.0-alpha.47
|
9
9
|
Contact: hi@ory.sh
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
|
-
OpenAPI Generator version:
|
11
|
+
OpenAPI Generator version: 5.0.0
|
12
12
|
|
13
13
|
=end
|
14
14
|
|
@@ -24,11 +24,10 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.homepage = "https://www.ory.sh"
|
25
25
|
s.summary = "ORY Keto Ruby Gem"
|
26
26
|
s.description = "Ory Keto is a cloud native access control server providing best-practice patterns (RBAC, ABAC, ACL, AWS IAM Policies, Kubernetes Roles, ...) via REST APIs."
|
27
|
-
s.license =
|
28
|
-
s.required_ruby_version = ">=
|
27
|
+
s.license = "Apache-2.0"
|
28
|
+
s.required_ruby_version = ">= 2.4"
|
29
29
|
|
30
30
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
|
-
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
31
|
|
33
32
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
34
33
|
|
data/spec/api_client_spec.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#ORY Keto
|
3
3
|
|
4
|
-
#
|
4
|
+
#Ory Keto is a cloud native access control server providing best-practice patterns (RBAC, ABAC, ACL, AWS IAM Policies, Kubernetes Roles, ...) via REST APIs.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.0-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.0-alpha.47
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -156,7 +156,7 @@ describe OryHydraClient::ApiClient do
|
|
156
156
|
end
|
157
157
|
|
158
158
|
it 'fails for invalid collection format' do
|
159
|
-
expect{api_client.build_collection_param(param, :INVALID)}.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
159
|
+
expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
160
160
|
end
|
161
161
|
end
|
162
162
|
|
data/spec/configuration_spec.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#ORY Keto
|
3
3
|
|
4
|
-
#
|
4
|
+
#Ory Keto is a cloud native access control server providing best-practice patterns (RBAC, ABAC, ACL, AWS IAM Policies, Kubernetes Roles, ...) via REST APIs.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.0-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.0-alpha.47
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
data/spec/spec_helper.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#ORY Keto
|
3
3
|
|
4
|
-
#
|
4
|
+
#Ory Keto is a cloud native access control server providing best-practice patterns (RBAC, ABAC, ACL, AWS IAM Policies, Kubernetes Roles, ...) via REST APIs.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.0-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.0-alpha.47
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ory-keto-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.0.
|
4
|
+
version: 0.0.0.alpha47
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ORY GmbH
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -30,26 +30,6 @@ dependencies:
|
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.0.1
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: json
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '2.1'
|
40
|
-
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: 2.1.0
|
43
|
-
type: :runtime
|
44
|
-
prerelease: false
|
45
|
-
version_requirements: !ruby/object:Gem::Requirement
|
46
|
-
requirements:
|
47
|
-
- - "~>"
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '2.1'
|
50
|
-
- - ">="
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: 2.1.0
|
53
33
|
- !ruby/object:Gem::Dependency
|
54
34
|
name: rspec
|
55
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -309,7 +289,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
309
289
|
requirements:
|
310
290
|
- - ">="
|
311
291
|
- !ruby/object:Gem::Version
|
312
|
-
version: '
|
292
|
+
version: '2.4'
|
313
293
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
314
294
|
requirements:
|
315
295
|
- - ">"
|
@@ -322,75 +302,75 @@ signing_key:
|
|
322
302
|
specification_version: 4
|
323
303
|
summary: ORY Keto Ruby Gem
|
324
304
|
test_files:
|
325
|
-
- spec/api/version_api_spec.rb
|
326
305
|
- spec/api/engines_api_spec.rb
|
327
306
|
- spec/api/health_api_spec.rb
|
307
|
+
- spec/api/version_api_spec.rb
|
328
308
|
- spec/api_client_spec.rb
|
329
309
|
- spec/configuration_spec.rb
|
330
|
-
- spec/models/
|
331
|
-
- spec/models/
|
332
|
-
- spec/models/
|
333
|
-
- spec/models/list_ory_access_control_policies_internal_server_error_spec.rb
|
334
|
-
- spec/models/ory_access_control_policy_spec.rb
|
335
|
-
- spec/models/get_ory_access_control_policy_not_found_body_spec.rb
|
336
|
-
- spec/models/list_ory_access_control_policy_roles_internal_server_error_spec.rb
|
337
|
-
- spec/models/do_ory_access_control_policies_allow_internal_server_error_spec.rb
|
338
|
-
- spec/models/upsert_ory_access_control_policy_role_spec.rb
|
339
|
-
- spec/models/list_ory_access_control_policy_roles_ok_spec.rb
|
340
|
-
- spec/models/ory_access_control_policies_spec.rb
|
341
|
-
- spec/models/delete_ory_access_control_policy_role_spec.rb
|
310
|
+
- spec/models/add_ory_access_control_policy_role_members_body_spec.rb
|
311
|
+
- spec/models/add_ory_access_control_policy_role_members_internal_server_error_body_spec.rb
|
312
|
+
- spec/models/add_ory_access_control_policy_role_members_internal_server_error_spec.rb
|
342
313
|
- spec/models/add_ory_access_control_policy_role_members_ok_spec.rb
|
343
|
-
- spec/models/
|
344
|
-
- spec/models/
|
345
|
-
- spec/models/
|
346
|
-
- spec/models/
|
314
|
+
- spec/models/add_ory_access_control_policy_role_members_spec.rb
|
315
|
+
- spec/models/authorization_result_spec.rb
|
316
|
+
- spec/models/delete_ory_access_control_policy_internal_server_error_body_spec.rb
|
317
|
+
- spec/models/delete_ory_access_control_policy_internal_server_error_spec.rb
|
318
|
+
- spec/models/delete_ory_access_control_policy_role_internal_server_error_body_spec.rb
|
319
|
+
- spec/models/delete_ory_access_control_policy_role_internal_server_error_spec.rb
|
320
|
+
- spec/models/delete_ory_access_control_policy_role_spec.rb
|
321
|
+
- spec/models/delete_ory_access_control_policy_spec.rb
|
322
|
+
- spec/models/do_ory_access_control_policies_allow_forbidden_spec.rb
|
323
|
+
- spec/models/do_ory_access_control_policies_allow_internal_server_error_body_spec.rb
|
324
|
+
- spec/models/do_ory_access_control_policies_allow_internal_server_error_spec.rb
|
325
|
+
- spec/models/do_ory_access_control_policies_allow_ok_spec.rb
|
347
326
|
- spec/models/do_ory_access_control_policies_allow_spec.rb
|
348
|
-
- spec/models/
|
327
|
+
- spec/models/get_ory_access_control_policy_internal_server_error_body_spec.rb
|
349
328
|
- spec/models/get_ory_access_control_policy_internal_server_error_spec.rb
|
350
|
-
- spec/models/
|
351
|
-
- spec/models/get_ory_access_control_policy_spec.rb
|
329
|
+
- spec/models/get_ory_access_control_policy_not_found_body_spec.rb
|
352
330
|
- spec/models/get_ory_access_control_policy_not_found_spec.rb
|
331
|
+
- spec/models/get_ory_access_control_policy_ok_spec.rb
|
332
|
+
- spec/models/get_ory_access_control_policy_role_internal_server_error_body_spec.rb
|
333
|
+
- spec/models/get_ory_access_control_policy_role_internal_server_error_spec.rb
|
334
|
+
- spec/models/get_ory_access_control_policy_role_not_found_body_spec.rb
|
335
|
+
- spec/models/get_ory_access_control_policy_role_not_found_spec.rb
|
336
|
+
- spec/models/get_ory_access_control_policy_role_ok_spec.rb
|
337
|
+
- spec/models/get_ory_access_control_policy_role_spec.rb
|
338
|
+
- spec/models/get_ory_access_control_policy_spec.rb
|
353
339
|
- spec/models/health_not_ready_status_spec.rb
|
340
|
+
- spec/models/health_status_spec.rb
|
341
|
+
- spec/models/inline_response500_spec.rb
|
342
|
+
- spec/models/input_spec.rb
|
343
|
+
- spec/models/is_instance_alive_internal_server_error_body_spec.rb
|
344
|
+
- spec/models/is_instance_alive_internal_server_error_spec.rb
|
354
345
|
- spec/models/is_instance_alive_ok_spec.rb
|
346
|
+
- spec/models/list_ory_access_control_policies_internal_server_error_body_spec.rb
|
347
|
+
- spec/models/list_ory_access_control_policies_internal_server_error_spec.rb
|
348
|
+
- spec/models/list_ory_access_control_policies_ok_spec.rb
|
349
|
+
- spec/models/list_ory_access_control_policies_spec.rb
|
350
|
+
- spec/models/list_ory_access_control_policy_roles_internal_server_error_body_spec.rb
|
351
|
+
- spec/models/list_ory_access_control_policy_roles_internal_server_error_spec.rb
|
352
|
+
- spec/models/list_ory_access_control_policy_roles_ok_spec.rb
|
353
|
+
- spec/models/list_ory_access_control_policy_roles_spec.rb
|
354
|
+
- spec/models/ory_access_control_policies_spec.rb
|
355
|
+
- spec/models/ory_access_control_policy_allowed_input_spec.rb
|
355
356
|
- spec/models/ory_access_control_policy_role_spec.rb
|
356
357
|
- spec/models/ory_access_control_policy_roles_spec.rb
|
357
|
-
- spec/models/
|
358
|
-
- spec/models/
|
359
|
-
- spec/models/
|
360
|
-
- spec/models/get_ory_access_control_policy_role_ok_spec.rb
|
361
|
-
- spec/models/health_status_spec.rb
|
358
|
+
- spec/models/ory_access_control_policy_spec.rb
|
359
|
+
- spec/models/policy_spec.rb
|
360
|
+
- spec/models/remove_ory_access_control_policy_role_members_internal_server_error_body_spec.rb
|
362
361
|
- spec/models/remove_ory_access_control_policy_role_members_internal_server_error_spec.rb
|
363
362
|
- spec/models/remove_ory_access_control_policy_role_members_spec.rb
|
364
|
-
- spec/models/
|
365
|
-
- spec/models/
|
366
|
-
- spec/models/delete_ory_access_control_policy_internal_server_error_body_spec.rb
|
367
|
-
- spec/models/authorization_result_spec.rb
|
368
|
-
- spec/models/upsert_ory_access_control_policy_ok_spec.rb
|
369
|
-
- spec/models/list_ory_access_control_policy_roles_spec.rb
|
370
|
-
- spec/models/get_ory_access_control_policy_role_internal_server_error_body_spec.rb
|
371
|
-
- spec/models/delete_ory_access_control_policy_role_internal_server_error_spec.rb
|
372
|
-
- spec/models/list_ory_access_control_policies_internal_server_error_body_spec.rb
|
373
|
-
- spec/models/get_ory_access_control_policy_internal_server_error_body_spec.rb
|
374
|
-
- spec/models/list_ory_access_control_policies_ok_spec.rb
|
375
|
-
- spec/models/inline_response500_spec.rb
|
363
|
+
- spec/models/role_spec.rb
|
364
|
+
- spec/models/swagger_health_status_spec.rb
|
376
365
|
- spec/models/swagger_not_ready_status_spec.rb
|
377
|
-
- spec/models/
|
378
|
-
- spec/models/add_ory_access_control_policy_role_members_internal_server_error_spec.rb
|
379
|
-
- spec/models/get_ory_access_control_policy_role_not_found_body_spec.rb
|
380
|
-
- spec/models/do_ory_access_control_policies_allow_forbidden_spec.rb
|
381
|
-
- spec/models/delete_ory_access_control_policy_role_internal_server_error_body_spec.rb
|
382
|
-
- spec/models/is_instance_alive_internal_server_error_body_spec.rb
|
383
|
-
- spec/models/do_ory_access_control_policies_allow_internal_server_error_body_spec.rb
|
366
|
+
- spec/models/swagger_version_spec.rb
|
384
367
|
- spec/models/upsert_ory_access_control_policy_internal_server_error_body_spec.rb
|
385
|
-
- spec/models/
|
368
|
+
- spec/models/upsert_ory_access_control_policy_internal_server_error_spec.rb
|
369
|
+
- spec/models/upsert_ory_access_control_policy_ok_spec.rb
|
386
370
|
- spec/models/upsert_ory_access_control_policy_role_internal_server_error_body_spec.rb
|
387
|
-
- spec/models/
|
371
|
+
- spec/models/version_spec.rb
|
388
372
|
- spec/models/upsert_ory_access_control_policy_role_internal_server_error_spec.rb
|
373
|
+
- spec/models/upsert_ory_access_control_policy_role_ok_spec.rb
|
374
|
+
- spec/models/upsert_ory_access_control_policy_role_spec.rb
|
389
375
|
- spec/models/upsert_ory_access_control_policy_spec.rb
|
390
|
-
- spec/models/add_ory_access_control_policy_role_members_spec.rb
|
391
|
-
- spec/models/get_ory_access_control_policy_role_not_found_spec.rb
|
392
|
-
- spec/models/swagger_health_status_spec.rb
|
393
|
-
- spec/models/delete_ory_access_control_policy_spec.rb
|
394
|
-
- spec/models/get_ory_access_control_policy_role_spec.rb
|
395
|
-
- spec/models/get_ory_access_control_policy_role_internal_server_error_spec.rb
|
396
376
|
- spec/spec_helper.rb
|