ory-keto-client 0.0.0.alpha58 → 0.4.0.alpha1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +19 -5
- data/docs/AddOryAccessControlPolicyRoleMembersBody.md +7 -8
- data/docs/AuthorizationResult.md +7 -8
- data/docs/EnginesApi.md +129 -319
- data/docs/HealthApi.md +15 -50
- data/docs/HealthNotReadyStatus.md +7 -8
- data/docs/HealthStatus.md +7 -8
- data/docs/InlineResponse500.md +17 -18
- data/docs/OryAccessControlPolicy.md +19 -20
- data/docs/OryAccessControlPolicyAllowedInput.md +13 -14
- data/docs/OryAccessControlPolicyRole.md +9 -10
- data/docs/Version.md +7 -8
- data/docs/VersionApi.md +9 -26
- data/lib/ory-keto-client.rb +16 -2
- data/lib/ory-keto-client/api/engines_api.rb +35 -46
- data/lib/ory-keto-client/api/health_api.rb +8 -10
- data/lib/ory-keto-client/api/version_api.rb +5 -6
- data/lib/ory-keto-client/api_client.rb +46 -50
- data/lib/ory-keto-client/api_error.rb +2 -2
- data/lib/ory-keto-client/configuration.rb +7 -34
- data/lib/ory-keto-client/models/add_ory_access_control_policy_role_members_body.rb +8 -20
- data/lib/ory-keto-client/models/add_ory_access_control_policy_role_members_internal_server_error_body.rb +2 -2
- data/lib/ory-keto-client/models/authorization_result.rb +8 -20
- data/lib/ory-keto-client/models/delete_ory_access_control_policy_internal_server_error_body.rb +3 -3
- data/lib/ory-keto-client/models/delete_ory_access_control_policy_role_internal_server_error_body.rb +2 -2
- data/lib/ory-keto-client/models/do_ory_access_control_policies_allow_internal_server_error_body.rb +3 -3
- data/lib/ory-keto-client/models/get_ory_access_control_policy_internal_server_error_body.rb +3 -3
- data/lib/ory-keto-client/models/get_ory_access_control_policy_not_found_body.rb +3 -3
- data/lib/ory-keto-client/models/get_ory_access_control_policy_role_internal_server_error_body.rb +2 -2
- data/lib/ory-keto-client/models/get_ory_access_control_policy_role_not_found_body.rb +3 -3
- data/lib/ory-keto-client/models/health_not_ready_status.rb +8 -20
- data/lib/ory-keto-client/models/health_status.rb +8 -20
- data/lib/ory-keto-client/models/inline_response500.rb +9 -21
- data/lib/ory-keto-client/models/is_instance_alive_internal_server_error_body.rb +2 -2
- data/lib/ory-keto-client/models/list_ory_access_control_policies_internal_server_error_body.rb +3 -3
- data/lib/ory-keto-client/models/list_ory_access_control_policy_roles_internal_server_error_body.rb +3 -3
- data/lib/ory-keto-client/models/ory_access_control_policy.rb +12 -22
- data/lib/ory-keto-client/models/ory_access_control_policy_allowed_input.rb +12 -22
- data/lib/ory-keto-client/models/ory_access_control_policy_role.rb +8 -20
- data/lib/ory-keto-client/models/remove_ory_access_control_policy_role_members_internal_server_error_body.rb +2 -2
- data/lib/ory-keto-client/models/upsert_ory_access_control_policy_internal_server_error_body.rb +3 -3
- data/lib/ory-keto-client/models/upsert_ory_access_control_policy_role_internal_server_error_body.rb +2 -2
- data/lib/ory-keto-client/models/version.rb +9 -20
- data/lib/ory-keto-client/version.rb +3 -3
- data/ory-keto-client.gemspec +5 -4
- data/spec/api_client_spec.rb +4 -4
- data/spec/configuration_spec.rb +3 -3
- data/spec/spec_helper.rb +3 -3
- metadata +79 -59
@@ -3,15 +3,14 @@
|
|
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:
|
6
|
+
The version of the OpenAPI document: Latest
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
-
require 'time'
|
15
14
|
|
16
15
|
module OryHydraClient
|
17
16
|
class HealthStatus
|
@@ -25,11 +24,6 @@ module OryHydraClient
|
|
25
24
|
}
|
26
25
|
end
|
27
26
|
|
28
|
-
# Returns all the JSON keys this model knows about
|
29
|
-
def self.acceptable_attributes
|
30
|
-
attribute_map.values
|
31
|
-
end
|
32
|
-
|
33
27
|
# Attribute type mapping.
|
34
28
|
def self.openapi_types
|
35
29
|
{
|
@@ -109,9 +103,7 @@ module OryHydraClient
|
|
109
103
|
def build_from_hash(attributes)
|
110
104
|
return nil unless attributes.is_a?(Hash)
|
111
105
|
self.class.openapi_types.each_pair do |key, type|
|
112
|
-
if
|
113
|
-
self.send("#{key}=", nil)
|
114
|
-
elsif type =~ /\AArray<(.*)>/i
|
106
|
+
if type =~ /\AArray<(.*)>/i
|
115
107
|
# check to ensure the input is an array given that the attribute
|
116
108
|
# is documented as an array but the input is not
|
117
109
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -119,7 +111,7 @@ module OryHydraClient
|
|
119
111
|
end
|
120
112
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
121
113
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
122
|
-
end
|
114
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
123
115
|
end
|
124
116
|
|
125
117
|
self
|
@@ -131,8 +123,8 @@ module OryHydraClient
|
|
131
123
|
# @return [Object] Deserialized data
|
132
124
|
def _deserialize(type, value)
|
133
125
|
case type.to_sym
|
134
|
-
when :
|
135
|
-
|
126
|
+
when :DateTime
|
127
|
+
DateTime.parse(value)
|
136
128
|
when :Date
|
137
129
|
Date.parse(value)
|
138
130
|
when :String
|
@@ -162,9 +154,7 @@ module OryHydraClient
|
|
162
154
|
end
|
163
155
|
end
|
164
156
|
else # model
|
165
|
-
|
166
|
-
klass = OryHydraClient.const_get(type)
|
167
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
157
|
+
OryHydraClient.const_get(type).build_from_hash(value)
|
168
158
|
end
|
169
159
|
end
|
170
160
|
|
@@ -190,7 +180,7 @@ module OryHydraClient
|
|
190
180
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
191
181
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
192
182
|
end
|
193
|
-
|
183
|
+
|
194
184
|
hash[param] = _to_hash(value)
|
195
185
|
end
|
196
186
|
hash
|
@@ -213,7 +203,5 @@ module OryHydraClient
|
|
213
203
|
value
|
214
204
|
end
|
215
205
|
end
|
216
|
-
|
217
206
|
end
|
218
|
-
|
219
207
|
end
|
@@ -3,15 +3,14 @@
|
|
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:
|
6
|
+
The version of the OpenAPI document: Latest
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
-
require 'time'
|
15
14
|
|
16
15
|
module OryHydraClient
|
17
16
|
class InlineResponse500
|
@@ -39,16 +38,11 @@ module OryHydraClient
|
|
39
38
|
}
|
40
39
|
end
|
41
40
|
|
42
|
-
# Returns all the JSON keys this model knows about
|
43
|
-
def self.acceptable_attributes
|
44
|
-
attribute_map.values
|
45
|
-
end
|
46
|
-
|
47
41
|
# Attribute type mapping.
|
48
42
|
def self.openapi_types
|
49
43
|
{
|
50
44
|
:'code' => :'Integer',
|
51
|
-
:'details' => :'Array<Object
|
45
|
+
:'details' => :'Array<Hash<String, Object>>',
|
52
46
|
:'message' => :'String',
|
53
47
|
:'reason' => :'String',
|
54
48
|
:'request' => :'String',
|
@@ -155,9 +149,7 @@ module OryHydraClient
|
|
155
149
|
def build_from_hash(attributes)
|
156
150
|
return nil unless attributes.is_a?(Hash)
|
157
151
|
self.class.openapi_types.each_pair do |key, type|
|
158
|
-
if
|
159
|
-
self.send("#{key}=", nil)
|
160
|
-
elsif type =~ /\AArray<(.*)>/i
|
152
|
+
if type =~ /\AArray<(.*)>/i
|
161
153
|
# check to ensure the input is an array given that the attribute
|
162
154
|
# is documented as an array but the input is not
|
163
155
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -165,7 +157,7 @@ module OryHydraClient
|
|
165
157
|
end
|
166
158
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
167
159
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
168
|
-
end
|
160
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
169
161
|
end
|
170
162
|
|
171
163
|
self
|
@@ -177,8 +169,8 @@ module OryHydraClient
|
|
177
169
|
# @return [Object] Deserialized data
|
178
170
|
def _deserialize(type, value)
|
179
171
|
case type.to_sym
|
180
|
-
when :
|
181
|
-
|
172
|
+
when :DateTime
|
173
|
+
DateTime.parse(value)
|
182
174
|
when :Date
|
183
175
|
Date.parse(value)
|
184
176
|
when :String
|
@@ -208,9 +200,7 @@ module OryHydraClient
|
|
208
200
|
end
|
209
201
|
end
|
210
202
|
else # model
|
211
|
-
|
212
|
-
klass = OryHydraClient.const_get(type)
|
213
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
203
|
+
OryHydraClient.const_get(type).build_from_hash(value)
|
214
204
|
end
|
215
205
|
end
|
216
206
|
|
@@ -236,7 +226,7 @@ module OryHydraClient
|
|
236
226
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
237
227
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
238
228
|
end
|
239
|
-
|
229
|
+
|
240
230
|
hash[param] = _to_hash(value)
|
241
231
|
end
|
242
232
|
hash
|
@@ -259,7 +249,5 @@ module OryHydraClient
|
|
259
249
|
value
|
260
250
|
end
|
261
251
|
end
|
262
|
-
|
263
252
|
end
|
264
|
-
|
265
253
|
end
|
@@ -1,9 +1,9 @@
|
|
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:
|
6
|
+
The version of the OpenAPI document: Latest
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.2
|
data/lib/ory-keto-client/models/list_ory_access_control_policies_internal_server_error_body.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
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:
|
6
|
+
The version of the OpenAPI document: Latest
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.2
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.2
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module OryHydraClient
|
16
|
-
# ListOryAccessControlPoliciesInternalServerErrorBody
|
16
|
+
# ListOryAccessControlPoliciesInternalServerErrorBody list ory access control policies internal server error body
|
17
17
|
class ListOryAccessControlPoliciesInternalServerErrorBody
|
18
18
|
# code
|
19
19
|
attr_accessor :code
|
data/lib/ory-keto-client/models/list_ory_access_control_policy_roles_internal_server_error_body.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
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:
|
6
|
+
The version of the OpenAPI document: Latest
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.2
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.2
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module OryHydraClient
|
16
|
-
# ListOryAccessControlPolicyRolesInternalServerErrorBody
|
16
|
+
# ListOryAccessControlPolicyRolesInternalServerErrorBody list ory access control policy roles internal server error body
|
17
17
|
class ListOryAccessControlPolicyRolesInternalServerErrorBody
|
18
18
|
# code
|
19
19
|
attr_accessor :code
|
@@ -3,15 +3,14 @@
|
|
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:
|
6
|
+
The version of the OpenAPI document: Latest
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
-
require 'time'
|
15
14
|
|
16
15
|
module OryHydraClient
|
17
16
|
class OryAccessControlPolicy
|
@@ -49,16 +48,11 @@ module OryHydraClient
|
|
49
48
|
}
|
50
49
|
end
|
51
50
|
|
52
|
-
# Returns all the JSON keys this model knows about
|
53
|
-
def self.acceptable_attributes
|
54
|
-
attribute_map.values
|
55
|
-
end
|
56
|
-
|
57
51
|
# Attribute type mapping.
|
58
52
|
def self.openapi_types
|
59
53
|
{
|
60
54
|
:'actions' => :'Array<String>',
|
61
|
-
:'conditions' => :'Object',
|
55
|
+
:'conditions' => :'Hash<String, Object>',
|
62
56
|
:'description' => :'String',
|
63
57
|
:'effect' => :'String',
|
64
58
|
:'id' => :'String',
|
@@ -95,7 +89,9 @@ module OryHydraClient
|
|
95
89
|
end
|
96
90
|
|
97
91
|
if attributes.key?(:'conditions')
|
98
|
-
|
92
|
+
if (value = attributes[:'conditions']).is_a?(Hash)
|
93
|
+
self.conditions = value
|
94
|
+
end
|
99
95
|
end
|
100
96
|
|
101
97
|
if attributes.key?(:'description')
|
@@ -175,9 +171,7 @@ module OryHydraClient
|
|
175
171
|
def build_from_hash(attributes)
|
176
172
|
return nil unless attributes.is_a?(Hash)
|
177
173
|
self.class.openapi_types.each_pair do |key, type|
|
178
|
-
if
|
179
|
-
self.send("#{key}=", nil)
|
180
|
-
elsif type =~ /\AArray<(.*)>/i
|
174
|
+
if type =~ /\AArray<(.*)>/i
|
181
175
|
# check to ensure the input is an array given that the attribute
|
182
176
|
# is documented as an array but the input is not
|
183
177
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -185,7 +179,7 @@ module OryHydraClient
|
|
185
179
|
end
|
186
180
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
187
181
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
188
|
-
end
|
182
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
189
183
|
end
|
190
184
|
|
191
185
|
self
|
@@ -197,8 +191,8 @@ module OryHydraClient
|
|
197
191
|
# @return [Object] Deserialized data
|
198
192
|
def _deserialize(type, value)
|
199
193
|
case type.to_sym
|
200
|
-
when :
|
201
|
-
|
194
|
+
when :DateTime
|
195
|
+
DateTime.parse(value)
|
202
196
|
when :Date
|
203
197
|
Date.parse(value)
|
204
198
|
when :String
|
@@ -228,9 +222,7 @@ module OryHydraClient
|
|
228
222
|
end
|
229
223
|
end
|
230
224
|
else # model
|
231
|
-
|
232
|
-
klass = OryHydraClient.const_get(type)
|
233
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
225
|
+
OryHydraClient.const_get(type).build_from_hash(value)
|
234
226
|
end
|
235
227
|
end
|
236
228
|
|
@@ -256,7 +248,7 @@ module OryHydraClient
|
|
256
248
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
257
249
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
258
250
|
end
|
259
|
-
|
251
|
+
|
260
252
|
hash[param] = _to_hash(value)
|
261
253
|
end
|
262
254
|
hash
|
@@ -279,7 +271,5 @@ module OryHydraClient
|
|
279
271
|
value
|
280
272
|
end
|
281
273
|
end
|
282
|
-
|
283
274
|
end
|
284
|
-
|
285
275
|
end
|
@@ -3,15 +3,14 @@
|
|
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:
|
6
|
+
The version of the OpenAPI document: Latest
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
-
require 'time'
|
15
14
|
|
16
15
|
module OryHydraClient
|
17
16
|
class OryAccessControlPolicyAllowedInput
|
@@ -37,16 +36,11 @@ module OryHydraClient
|
|
37
36
|
}
|
38
37
|
end
|
39
38
|
|
40
|
-
# Returns all the JSON keys this model knows about
|
41
|
-
def self.acceptable_attributes
|
42
|
-
attribute_map.values
|
43
|
-
end
|
44
|
-
|
45
39
|
# Attribute type mapping.
|
46
40
|
def self.openapi_types
|
47
41
|
{
|
48
42
|
:'action' => :'String',
|
49
|
-
:'context' => :'Object',
|
43
|
+
:'context' => :'Hash<String, Object>',
|
50
44
|
:'resource' => :'String',
|
51
45
|
:'subject' => :'String'
|
52
46
|
}
|
@@ -78,7 +72,9 @@ module OryHydraClient
|
|
78
72
|
end
|
79
73
|
|
80
74
|
if attributes.key?(:'context')
|
81
|
-
|
75
|
+
if (value = attributes[:'context']).is_a?(Hash)
|
76
|
+
self.context = value
|
77
|
+
end
|
82
78
|
end
|
83
79
|
|
84
80
|
if attributes.key?(:'resource')
|
@@ -139,9 +135,7 @@ module OryHydraClient
|
|
139
135
|
def build_from_hash(attributes)
|
140
136
|
return nil unless attributes.is_a?(Hash)
|
141
137
|
self.class.openapi_types.each_pair do |key, type|
|
142
|
-
if
|
143
|
-
self.send("#{key}=", nil)
|
144
|
-
elsif type =~ /\AArray<(.*)>/i
|
138
|
+
if type =~ /\AArray<(.*)>/i
|
145
139
|
# check to ensure the input is an array given that the attribute
|
146
140
|
# is documented as an array but the input is not
|
147
141
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -149,7 +143,7 @@ module OryHydraClient
|
|
149
143
|
end
|
150
144
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
151
145
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
152
|
-
end
|
146
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
153
147
|
end
|
154
148
|
|
155
149
|
self
|
@@ -161,8 +155,8 @@ module OryHydraClient
|
|
161
155
|
# @return [Object] Deserialized data
|
162
156
|
def _deserialize(type, value)
|
163
157
|
case type.to_sym
|
164
|
-
when :
|
165
|
-
|
158
|
+
when :DateTime
|
159
|
+
DateTime.parse(value)
|
166
160
|
when :Date
|
167
161
|
Date.parse(value)
|
168
162
|
when :String
|
@@ -192,9 +186,7 @@ module OryHydraClient
|
|
192
186
|
end
|
193
187
|
end
|
194
188
|
else # model
|
195
|
-
|
196
|
-
klass = OryHydraClient.const_get(type)
|
197
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
189
|
+
OryHydraClient.const_get(type).build_from_hash(value)
|
198
190
|
end
|
199
191
|
end
|
200
192
|
|
@@ -220,7 +212,7 @@ module OryHydraClient
|
|
220
212
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
221
213
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
222
214
|
end
|
223
|
-
|
215
|
+
|
224
216
|
hash[param] = _to_hash(value)
|
225
217
|
end
|
226
218
|
hash
|
@@ -243,7 +235,5 @@ module OryHydraClient
|
|
243
235
|
value
|
244
236
|
end
|
245
237
|
end
|
246
|
-
|
247
238
|
end
|
248
|
-
|
249
239
|
end
|
@@ -3,15 +3,14 @@
|
|
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:
|
6
|
+
The version of the OpenAPI document: Latest
|
7
7
|
Contact: hi@ory.sh
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
-
require 'time'
|
15
14
|
|
16
15
|
module OryHydraClient
|
17
16
|
# oryAccessControlPolicyRole represents a group of users that share the same role. A role could be an administrator, a moderator, a regular user or some other sort of role.
|
@@ -30,11 +29,6 @@ module OryHydraClient
|
|
30
29
|
}
|
31
30
|
end
|
32
31
|
|
33
|
-
# Returns all the JSON keys this model knows about
|
34
|
-
def self.acceptable_attributes
|
35
|
-
attribute_map.values
|
36
|
-
end
|
37
|
-
|
38
32
|
# Attribute type mapping.
|
39
33
|
def self.openapi_types
|
40
34
|
{
|
@@ -122,9 +116,7 @@ module OryHydraClient
|
|
122
116
|
def build_from_hash(attributes)
|
123
117
|
return nil unless attributes.is_a?(Hash)
|
124
118
|
self.class.openapi_types.each_pair do |key, type|
|
125
|
-
if
|
126
|
-
self.send("#{key}=", nil)
|
127
|
-
elsif type =~ /\AArray<(.*)>/i
|
119
|
+
if type =~ /\AArray<(.*)>/i
|
128
120
|
# check to ensure the input is an array given that the attribute
|
129
121
|
# is documented as an array but the input is not
|
130
122
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -132,7 +124,7 @@ module OryHydraClient
|
|
132
124
|
end
|
133
125
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
134
126
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
135
|
-
end
|
127
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
136
128
|
end
|
137
129
|
|
138
130
|
self
|
@@ -144,8 +136,8 @@ module OryHydraClient
|
|
144
136
|
# @return [Object] Deserialized data
|
145
137
|
def _deserialize(type, value)
|
146
138
|
case type.to_sym
|
147
|
-
when :
|
148
|
-
|
139
|
+
when :DateTime
|
140
|
+
DateTime.parse(value)
|
149
141
|
when :Date
|
150
142
|
Date.parse(value)
|
151
143
|
when :String
|
@@ -175,9 +167,7 @@ module OryHydraClient
|
|
175
167
|
end
|
176
168
|
end
|
177
169
|
else # model
|
178
|
-
|
179
|
-
klass = OryHydraClient.const_get(type)
|
180
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
170
|
+
OryHydraClient.const_get(type).build_from_hash(value)
|
181
171
|
end
|
182
172
|
end
|
183
173
|
|
@@ -203,7 +193,7 @@ module OryHydraClient
|
|
203
193
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
204
194
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
205
195
|
end
|
206
|
-
|
196
|
+
|
207
197
|
hash[param] = _to_hash(value)
|
208
198
|
end
|
209
199
|
hash
|
@@ -226,7 +216,5 @@ module OryHydraClient
|
|
226
216
|
value
|
227
217
|
end
|
228
218
|
end
|
229
|
-
|
230
219
|
end
|
231
|
-
|
232
220
|
end
|