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,10 +3,10 @@
|
|
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
|
|
@@ -3,10 +3,10 @@
|
|
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
|
|
@@ -21,18 +21,6 @@ module OryHydraClient
|
|
21
21
|
# Defines url base path
|
22
22
|
attr_accessor :base_path
|
23
23
|
|
24
|
-
# Define server configuration index
|
25
|
-
attr_accessor :server_index
|
26
|
-
|
27
|
-
# Define server operation configuration index
|
28
|
-
attr_accessor :server_operation_index
|
29
|
-
|
30
|
-
# Default server variables
|
31
|
-
attr_accessor :server_variables
|
32
|
-
|
33
|
-
# Default server operation variables
|
34
|
-
attr_accessor :server_operation_variables
|
35
|
-
|
36
24
|
# Defines API keys used with API Key authentications.
|
37
25
|
#
|
38
26
|
# @return [Hash] key: parameter name, value: parameter value (API key)
|
@@ -141,10 +129,6 @@ module OryHydraClient
|
|
141
129
|
@scheme = 'http'
|
142
130
|
@host = 'localhost'
|
143
131
|
@base_path = ''
|
144
|
-
@server_index = 0
|
145
|
-
@server_operation_index = {}
|
146
|
-
@server_variables = {}
|
147
|
-
@server_operation_variables = {}
|
148
132
|
@api_key = {}
|
149
133
|
@api_key_prefix = {}
|
150
134
|
@timeout = 0
|
@@ -187,12 +171,8 @@ module OryHydraClient
|
|
187
171
|
@base_path = '' if @base_path == '/'
|
188
172
|
end
|
189
173
|
|
190
|
-
|
191
|
-
|
192
|
-
index = server_operation_index.fetch(operation, server_index)
|
193
|
-
return "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') if index == nil
|
194
|
-
|
195
|
-
server_url(index, server_operation_variables.fetch(operation, server_variables), operation_server_settings[operation])
|
174
|
+
def base_url
|
175
|
+
"#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
|
196
176
|
end
|
197
177
|
|
198
178
|
# Gets API key (with prefix if set).
|
@@ -226,17 +206,12 @@ module OryHydraClient
|
|
226
206
|
]
|
227
207
|
end
|
228
208
|
|
229
|
-
def operation_server_settings
|
230
|
-
{
|
231
|
-
}
|
232
|
-
end
|
233
|
-
|
234
209
|
# Returns URL based on server settings
|
235
210
|
#
|
236
211
|
# @param index array index of the server settings
|
237
212
|
# @param variables hash of variable and the corresponding value
|
238
|
-
def server_url(index, variables = {}
|
239
|
-
servers = server_settings
|
213
|
+
def server_url(index, variables = {})
|
214
|
+
servers = server_settings
|
240
215
|
|
241
216
|
# check array index out of bound
|
242
217
|
if (index < 0 || index >= servers.size)
|
@@ -246,12 +221,10 @@ module OryHydraClient
|
|
246
221
|
server = servers[index]
|
247
222
|
url = server[:url]
|
248
223
|
|
249
|
-
return url unless server.key? :variables
|
250
|
-
|
251
224
|
# go through variable and assign a value
|
252
225
|
server[:variables].each do |name, variable|
|
253
226
|
if variables.key?(name)
|
254
|
-
if (
|
227
|
+
if (server[:variables][name][:enum_values].include? variables[name])
|
255
228
|
url.gsub! "{" + name.to_s + "}", variables[name]
|
256
229
|
else
|
257
230
|
fail ArgumentError, "The variable `#{name}` in the server URL has invalid value #{variables[name]}. Must be #{server[:variables][name][:enum_values]}."
|
@@ -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 AddOryAccessControlPolicyRoleMembersBody
|
@@ -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
|
{
|
@@ -111,9 +105,7 @@ module OryHydraClient
|
|
111
105
|
def build_from_hash(attributes)
|
112
106
|
return nil unless attributes.is_a?(Hash)
|
113
107
|
self.class.openapi_types.each_pair do |key, type|
|
114
|
-
if
|
115
|
-
self.send("#{key}=", nil)
|
116
|
-
elsif type =~ /\AArray<(.*)>/i
|
108
|
+
if type =~ /\AArray<(.*)>/i
|
117
109
|
# check to ensure the input is an array given that the attribute
|
118
110
|
# is documented as an array but the input is not
|
119
111
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -121,7 +113,7 @@ module OryHydraClient
|
|
121
113
|
end
|
122
114
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
123
115
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
124
|
-
end
|
116
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
125
117
|
end
|
126
118
|
|
127
119
|
self
|
@@ -133,8 +125,8 @@ module OryHydraClient
|
|
133
125
|
# @return [Object] Deserialized data
|
134
126
|
def _deserialize(type, value)
|
135
127
|
case type.to_sym
|
136
|
-
when :
|
137
|
-
|
128
|
+
when :DateTime
|
129
|
+
DateTime.parse(value)
|
138
130
|
when :Date
|
139
131
|
Date.parse(value)
|
140
132
|
when :String
|
@@ -164,9 +156,7 @@ module OryHydraClient
|
|
164
156
|
end
|
165
157
|
end
|
166
158
|
else # model
|
167
|
-
|
168
|
-
klass = OryHydraClient.const_get(type)
|
169
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
159
|
+
OryHydraClient.const_get(type).build_from_hash(value)
|
170
160
|
end
|
171
161
|
end
|
172
162
|
|
@@ -192,7 +182,7 @@ module OryHydraClient
|
|
192
182
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
193
183
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
194
184
|
end
|
195
|
-
|
185
|
+
|
196
186
|
hash[param] = _to_hash(value)
|
197
187
|
end
|
198
188
|
hash
|
@@ -215,7 +205,5 @@ module OryHydraClient
|
|
215
205
|
value
|
216
206
|
end
|
217
207
|
end
|
218
|
-
|
219
208
|
end
|
220
|
-
|
221
209
|
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
|
@@ -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 AuthorizationResult
|
@@ -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
|
{
|
@@ -114,9 +108,7 @@ module OryHydraClient
|
|
114
108
|
def build_from_hash(attributes)
|
115
109
|
return nil unless attributes.is_a?(Hash)
|
116
110
|
self.class.openapi_types.each_pair do |key, type|
|
117
|
-
if
|
118
|
-
self.send("#{key}=", nil)
|
119
|
-
elsif type =~ /\AArray<(.*)>/i
|
111
|
+
if type =~ /\AArray<(.*)>/i
|
120
112
|
# check to ensure the input is an array given that the attribute
|
121
113
|
# is documented as an array but the input is not
|
122
114
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -124,7 +116,7 @@ module OryHydraClient
|
|
124
116
|
end
|
125
117
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
126
118
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
127
|
-
end
|
119
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
128
120
|
end
|
129
121
|
|
130
122
|
self
|
@@ -136,8 +128,8 @@ module OryHydraClient
|
|
136
128
|
# @return [Object] Deserialized data
|
137
129
|
def _deserialize(type, value)
|
138
130
|
case type.to_sym
|
139
|
-
when :
|
140
|
-
|
131
|
+
when :DateTime
|
132
|
+
DateTime.parse(value)
|
141
133
|
when :Date
|
142
134
|
Date.parse(value)
|
143
135
|
when :String
|
@@ -167,9 +159,7 @@ module OryHydraClient
|
|
167
159
|
end
|
168
160
|
end
|
169
161
|
else # model
|
170
|
-
|
171
|
-
klass = OryHydraClient.const_get(type)
|
172
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
162
|
+
OryHydraClient.const_get(type).build_from_hash(value)
|
173
163
|
end
|
174
164
|
end
|
175
165
|
|
@@ -195,7 +185,7 @@ module OryHydraClient
|
|
195
185
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
196
186
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
197
187
|
end
|
198
|
-
|
188
|
+
|
199
189
|
hash[param] = _to_hash(value)
|
200
190
|
end
|
201
191
|
hash
|
@@ -218,7 +208,5 @@ module OryHydraClient
|
|
218
208
|
value
|
219
209
|
end
|
220
210
|
end
|
221
|
-
|
222
211
|
end
|
223
|
-
|
224
212
|
end
|
data/lib/ory-keto-client/models/delete_ory_access_control_policy_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
|
-
# DeleteOryAccessControlPolicyInternalServerErrorBody
|
16
|
+
# DeleteOryAccessControlPolicyInternalServerErrorBody delete ory access control policy internal server error body
|
17
17
|
class DeleteOryAccessControlPolicyInternalServerErrorBody
|
18
18
|
# code
|
19
19
|
attr_accessor :code
|
data/lib/ory-keto-client/models/delete_ory_access_control_policy_role_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
|
data/lib/ory-keto-client/models/do_ory_access_control_policies_allow_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
|
-
# DoOryAccessControlPoliciesAllowInternalServerErrorBody
|
16
|
+
# DoOryAccessControlPoliciesAllowInternalServerErrorBody do ory access control policies allow internal server error body
|
17
17
|
class DoOryAccessControlPoliciesAllowInternalServerErrorBody
|
18
18
|
# code
|
19
19
|
attr_accessor :code
|
@@ -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
|
-
# GetOryAccessControlPolicyInternalServerErrorBody
|
16
|
+
# GetOryAccessControlPolicyInternalServerErrorBody get ory access control policy internal server error body
|
17
17
|
class GetOryAccessControlPolicyInternalServerErrorBody
|
18
18
|
# code
|
19
19
|
attr_accessor :code
|
@@ -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
|
-
# GetOryAccessControlPolicyNotFoundBody
|
16
|
+
# GetOryAccessControlPolicyNotFoundBody get ory access control policy not found body
|
17
17
|
class GetOryAccessControlPolicyNotFoundBody
|
18
18
|
# code
|
19
19
|
attr_accessor :code
|
data/lib/ory-keto-client/models/get_ory_access_control_policy_role_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
|
@@ -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
|
-
# GetOryAccessControlPolicyRoleNotFoundBody
|
16
|
+
# GetOryAccessControlPolicyRoleNotFoundBody get ory access control policy role not found body
|
17
17
|
class GetOryAccessControlPolicyRoleNotFoundBody
|
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 HealthNotReadyStatus
|
@@ -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
|
{
|
@@ -111,9 +105,7 @@ module OryHydraClient
|
|
111
105
|
def build_from_hash(attributes)
|
112
106
|
return nil unless attributes.is_a?(Hash)
|
113
107
|
self.class.openapi_types.each_pair do |key, type|
|
114
|
-
if
|
115
|
-
self.send("#{key}=", nil)
|
116
|
-
elsif type =~ /\AArray<(.*)>/i
|
108
|
+
if type =~ /\AArray<(.*)>/i
|
117
109
|
# check to ensure the input is an array given that the attribute
|
118
110
|
# is documented as an array but the input is not
|
119
111
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -121,7 +113,7 @@ module OryHydraClient
|
|
121
113
|
end
|
122
114
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
123
115
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
124
|
-
end
|
116
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
125
117
|
end
|
126
118
|
|
127
119
|
self
|
@@ -133,8 +125,8 @@ module OryHydraClient
|
|
133
125
|
# @return [Object] Deserialized data
|
134
126
|
def _deserialize(type, value)
|
135
127
|
case type.to_sym
|
136
|
-
when :
|
137
|
-
|
128
|
+
when :DateTime
|
129
|
+
DateTime.parse(value)
|
138
130
|
when :Date
|
139
131
|
Date.parse(value)
|
140
132
|
when :String
|
@@ -164,9 +156,7 @@ module OryHydraClient
|
|
164
156
|
end
|
165
157
|
end
|
166
158
|
else # model
|
167
|
-
|
168
|
-
klass = OryHydraClient.const_get(type)
|
169
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
159
|
+
OryHydraClient.const_get(type).build_from_hash(value)
|
170
160
|
end
|
171
161
|
end
|
172
162
|
|
@@ -192,7 +182,7 @@ module OryHydraClient
|
|
192
182
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
193
183
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
194
184
|
end
|
195
|
-
|
185
|
+
|
196
186
|
hash[param] = _to_hash(value)
|
197
187
|
end
|
198
188
|
hash
|
@@ -215,7 +205,5 @@ module OryHydraClient
|
|
215
205
|
value
|
216
206
|
end
|
217
207
|
end
|
218
|
-
|
219
208
|
end
|
220
|
-
|
221
209
|
end
|