ory-oathkeeper-client 0.0.0.alpha38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (296) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +184 -0
  4. data/Rakefile +10 -0
  5. data/docs/ApiApi.md +450 -0
  6. data/docs/CreateRuleCreated.md +18 -0
  7. data/docs/CreateRuleForbidden.md +18 -0
  8. data/docs/CreateRuleForbiddenBody.md +28 -0
  9. data/docs/CreateRuleInternalServerError.md +18 -0
  10. data/docs/CreateRuleInternalServerErrorBody.md +28 -0
  11. data/docs/CreateRuleUnauthorized.md +18 -0
  12. data/docs/CreateRuleUnauthorizedBody.md +28 -0
  13. data/docs/DecisionsForbidden.md +18 -0
  14. data/docs/DecisionsForbiddenBody.md +28 -0
  15. data/docs/DecisionsInternalServerError.md +18 -0
  16. data/docs/DecisionsInternalServerErrorBody.md +28 -0
  17. data/docs/DecisionsNotFound.md +18 -0
  18. data/docs/DecisionsNotFoundBody.md +28 -0
  19. data/docs/DecisionsUnauthorized.md +18 -0
  20. data/docs/DecisionsUnauthorizedBody.md +28 -0
  21. data/docs/DeleteRuleForbidden.md +18 -0
  22. data/docs/DeleteRuleForbiddenBody.md +28 -0
  23. data/docs/DeleteRuleInternalServerError.md +18 -0
  24. data/docs/DeleteRuleInternalServerErrorBody.md +28 -0
  25. data/docs/DeleteRuleNotFound.md +18 -0
  26. data/docs/DeleteRuleNotFoundBody.md +28 -0
  27. data/docs/DeleteRuleUnauthorized.md +18 -0
  28. data/docs/DeleteRuleUnauthorizedBody.md +28 -0
  29. data/docs/GetRuleForbidden.md +18 -0
  30. data/docs/GetRuleForbiddenBody.md +28 -0
  31. data/docs/GetRuleInternalServerError.md +18 -0
  32. data/docs/GetRuleInternalServerErrorBody.md +28 -0
  33. data/docs/GetRuleNotFound.md +18 -0
  34. data/docs/GetRuleNotFoundBody.md +28 -0
  35. data/docs/GetRuleOK.md +18 -0
  36. data/docs/GetRuleUnauthorized.md +18 -0
  37. data/docs/GetRuleUnauthorizedBody.md +28 -0
  38. data/docs/GetWellKnownForbidden.md +18 -0
  39. data/docs/GetWellKnownForbiddenBody.md +28 -0
  40. data/docs/GetWellKnownJSONWebKeysInternalServerError.md +18 -0
  41. data/docs/GetWellKnownJSONWebKeysInternalServerErrorBody.md +28 -0
  42. data/docs/GetWellKnownJSONWebKeysOK.md +18 -0
  43. data/docs/GetWellKnownOK.md +18 -0
  44. data/docs/GetWellKnownUnauthorized.md +18 -0
  45. data/docs/GetWellKnownUnauthorizedBody.md +28 -0
  46. data/docs/HealthApi.md +96 -0
  47. data/docs/HealthNotReadyStatus.md +18 -0
  48. data/docs/HealthStatus.md +18 -0
  49. data/docs/InlineResponse500.md +28 -0
  50. data/docs/IsInstanceAliveInternalServerError.md +18 -0
  51. data/docs/IsInstanceAliveInternalServerErrorBody.md +28 -0
  52. data/docs/IsInstanceAliveOK.md +18 -0
  53. data/docs/JsonWebKey.md +50 -0
  54. data/docs/JsonWebKeySet.md +18 -0
  55. data/docs/JudgeForbidden.md +18 -0
  56. data/docs/JudgeForbiddenBody.md +28 -0
  57. data/docs/JudgeInternalServerError.md +18 -0
  58. data/docs/JudgeInternalServerErrorBody.md +28 -0
  59. data/docs/JudgeNotFound.md +18 -0
  60. data/docs/JudgeNotFoundBody.md +28 -0
  61. data/docs/JudgeUnauthorized.md +18 -0
  62. data/docs/JudgeUnauthorizedBody.md +28 -0
  63. data/docs/ListRulesForbidden.md +18 -0
  64. data/docs/ListRulesForbiddenBody.md +28 -0
  65. data/docs/ListRulesInternalServerError.md +18 -0
  66. data/docs/ListRulesInternalServerErrorBody.md +28 -0
  67. data/docs/ListRulesOK.md +18 -0
  68. data/docs/ListRulesUnauthorized.md +18 -0
  69. data/docs/ListRulesUnauthorizedBody.md +28 -0
  70. data/docs/Rule.md +30 -0
  71. data/docs/RuleHandler.md +20 -0
  72. data/docs/RuleMatch.md +20 -0
  73. data/docs/SwaggerCreateRuleParameters.md +18 -0
  74. data/docs/SwaggerGetRuleParameters.md +18 -0
  75. data/docs/SwaggerHealthStatus.md +18 -0
  76. data/docs/SwaggerJSONWebKey.md +50 -0
  77. data/docs/SwaggerJSONWebKeySet.md +18 -0
  78. data/docs/SwaggerListRulesParameters.md +20 -0
  79. data/docs/SwaggerNotReadyStatus.md +18 -0
  80. data/docs/SwaggerRule.md +30 -0
  81. data/docs/SwaggerRuleHandler.md +20 -0
  82. data/docs/SwaggerRuleMatch.md +20 -0
  83. data/docs/SwaggerRuleResponse.md +18 -0
  84. data/docs/SwaggerRulesResponse.md +18 -0
  85. data/docs/SwaggerUpdateRuleParameters.md +20 -0
  86. data/docs/SwaggerVersion.md +18 -0
  87. data/docs/UpdateRuleForbidden.md +18 -0
  88. data/docs/UpdateRuleForbiddenBody.md +28 -0
  89. data/docs/UpdateRuleInternalServerError.md +18 -0
  90. data/docs/UpdateRuleInternalServerErrorBody.md +28 -0
  91. data/docs/UpdateRuleNotFound.md +18 -0
  92. data/docs/UpdateRuleNotFoundBody.md +28 -0
  93. data/docs/UpdateRuleOK.md +18 -0
  94. data/docs/UpdateRuleUnauthorized.md +18 -0
  95. data/docs/UpdateRuleUnauthorizedBody.md +28 -0
  96. data/docs/Upstream.md +22 -0
  97. data/docs/Version.md +18 -0
  98. data/docs/VersionApi.md +52 -0
  99. data/lib/ory-oathkeeper-client.rb +131 -0
  100. data/lib/ory-oathkeeper-client/api/api_api.rb +433 -0
  101. data/lib/ory-oathkeeper-client/api/health_api.rb +134 -0
  102. data/lib/ory-oathkeeper-client/api/version_api.rb +78 -0
  103. data/lib/ory-oathkeeper-client/api_client.rb +389 -0
  104. data/lib/ory-oathkeeper-client/api_error.rb +57 -0
  105. data/lib/ory-oathkeeper-client/configuration.rb +270 -0
  106. data/lib/ory-oathkeeper-client/models/create_rule_created.rb +219 -0
  107. data/lib/ory-oathkeeper-client/models/create_rule_forbidden.rb +219 -0
  108. data/lib/ory-oathkeeper-client/models/create_rule_forbidden_body.rb +272 -0
  109. data/lib/ory-oathkeeper-client/models/create_rule_internal_server_error.rb +219 -0
  110. data/lib/ory-oathkeeper-client/models/create_rule_internal_server_error_body.rb +272 -0
  111. data/lib/ory-oathkeeper-client/models/create_rule_unauthorized.rb +219 -0
  112. data/lib/ory-oathkeeper-client/models/create_rule_unauthorized_body.rb +272 -0
  113. data/lib/ory-oathkeeper-client/models/decisions_forbidden.rb +219 -0
  114. data/lib/ory-oathkeeper-client/models/decisions_forbidden_body.rb +272 -0
  115. data/lib/ory-oathkeeper-client/models/decisions_internal_server_error.rb +219 -0
  116. data/lib/ory-oathkeeper-client/models/decisions_internal_server_error_body.rb +272 -0
  117. data/lib/ory-oathkeeper-client/models/decisions_not_found.rb +219 -0
  118. data/lib/ory-oathkeeper-client/models/decisions_not_found_body.rb +272 -0
  119. data/lib/ory-oathkeeper-client/models/decisions_unauthorized.rb +219 -0
  120. data/lib/ory-oathkeeper-client/models/decisions_unauthorized_body.rb +272 -0
  121. data/lib/ory-oathkeeper-client/models/delete_rule_forbidden.rb +219 -0
  122. data/lib/ory-oathkeeper-client/models/delete_rule_forbidden_body.rb +272 -0
  123. data/lib/ory-oathkeeper-client/models/delete_rule_internal_server_error.rb +219 -0
  124. data/lib/ory-oathkeeper-client/models/delete_rule_internal_server_error_body.rb +272 -0
  125. data/lib/ory-oathkeeper-client/models/delete_rule_not_found.rb +219 -0
  126. data/lib/ory-oathkeeper-client/models/delete_rule_not_found_body.rb +272 -0
  127. data/lib/ory-oathkeeper-client/models/delete_rule_unauthorized.rb +219 -0
  128. data/lib/ory-oathkeeper-client/models/delete_rule_unauthorized_body.rb +272 -0
  129. data/lib/ory-oathkeeper-client/models/get_rule_forbidden.rb +219 -0
  130. data/lib/ory-oathkeeper-client/models/get_rule_forbidden_body.rb +272 -0
  131. data/lib/ory-oathkeeper-client/models/get_rule_internal_server_error.rb +219 -0
  132. data/lib/ory-oathkeeper-client/models/get_rule_internal_server_error_body.rb +272 -0
  133. data/lib/ory-oathkeeper-client/models/get_rule_not_found.rb +219 -0
  134. data/lib/ory-oathkeeper-client/models/get_rule_not_found_body.rb +272 -0
  135. data/lib/ory-oathkeeper-client/models/get_rule_ok.rb +219 -0
  136. data/lib/ory-oathkeeper-client/models/get_rule_unauthorized.rb +219 -0
  137. data/lib/ory-oathkeeper-client/models/get_rule_unauthorized_body.rb +272 -0
  138. data/lib/ory-oathkeeper-client/models/get_well_known_forbidden.rb +219 -0
  139. data/lib/ory-oathkeeper-client/models/get_well_known_forbidden_body.rb +272 -0
  140. data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_internal_server_error.rb +219 -0
  141. data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_internal_server_error_body.rb +272 -0
  142. data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_ok.rb +219 -0
  143. data/lib/ory-oathkeeper-client/models/get_well_known_ok.rb +219 -0
  144. data/lib/ory-oathkeeper-client/models/get_well_known_unauthorized.rb +219 -0
  145. data/lib/ory-oathkeeper-client/models/get_well_known_unauthorized_body.rb +272 -0
  146. data/lib/ory-oathkeeper-client/models/health_not_ready_status.rb +221 -0
  147. data/lib/ory-oathkeeper-client/models/health_status.rb +219 -0
  148. data/lib/ory-oathkeeper-client/models/inline_response500.rb +265 -0
  149. data/lib/ory-oathkeeper-client/models/is_instance_alive_internal_server_error.rb +219 -0
  150. data/lib/ory-oathkeeper-client/models/is_instance_alive_internal_server_error_body.rb +272 -0
  151. data/lib/ory-oathkeeper-client/models/is_instance_alive_ok.rb +219 -0
  152. data/lib/ory-oathkeeper-client/models/json_web_key.rb +369 -0
  153. data/lib/ory-oathkeeper-client/models/json_web_key_set.rb +221 -0
  154. data/lib/ory-oathkeeper-client/models/judge_forbidden.rb +219 -0
  155. data/lib/ory-oathkeeper-client/models/judge_forbidden_body.rb +272 -0
  156. data/lib/ory-oathkeeper-client/models/judge_internal_server_error.rb +219 -0
  157. data/lib/ory-oathkeeper-client/models/judge_internal_server_error_body.rb +272 -0
  158. data/lib/ory-oathkeeper-client/models/judge_not_found.rb +219 -0
  159. data/lib/ory-oathkeeper-client/models/judge_not_found_body.rb +272 -0
  160. data/lib/ory-oathkeeper-client/models/judge_unauthorized.rb +219 -0
  161. data/lib/ory-oathkeeper-client/models/judge_unauthorized_body.rb +272 -0
  162. data/lib/ory-oathkeeper-client/models/list_rules_forbidden.rb +219 -0
  163. data/lib/ory-oathkeeper-client/models/list_rules_forbidden_body.rb +272 -0
  164. data/lib/ory-oathkeeper-client/models/list_rules_internal_server_error.rb +219 -0
  165. data/lib/ory-oathkeeper-client/models/list_rules_internal_server_error_body.rb +272 -0
  166. data/lib/ory-oathkeeper-client/models/list_rules_ok.rb +222 -0
  167. data/lib/ory-oathkeeper-client/models/list_rules_unauthorized.rb +219 -0
  168. data/lib/ory-oathkeeper-client/models/list_rules_unauthorized_body.rb +272 -0
  169. data/lib/ory-oathkeeper-client/models/rule.rb +280 -0
  170. data/lib/ory-oathkeeper-client/models/rule_handler.rb +229 -0
  171. data/lib/ory-oathkeeper-client/models/rule_match.rb +231 -0
  172. data/lib/ory-oathkeeper-client/models/swagger_create_rule_parameters.rb +219 -0
  173. data/lib/ory-oathkeeper-client/models/swagger_get_rule_parameters.rb +225 -0
  174. data/lib/ory-oathkeeper-client/models/swagger_health_status.rb +220 -0
  175. data/lib/ory-oathkeeper-client/models/swagger_json_web_key.rb +382 -0
  176. data/lib/ory-oathkeeper-client/models/swagger_json_web_key_set.rb +222 -0
  177. data/lib/ory-oathkeeper-client/models/swagger_list_rules_parameters.rb +230 -0
  178. data/lib/ory-oathkeeper-client/models/swagger_not_ready_status.rb +222 -0
  179. data/lib/ory-oathkeeper-client/models/swagger_rule.rb +280 -0
  180. data/lib/ory-oathkeeper-client/models/swagger_rule_handler.rb +230 -0
  181. data/lib/ory-oathkeeper-client/models/swagger_rule_match.rb +232 -0
  182. data/lib/ory-oathkeeper-client/models/swagger_rule_response.rb +219 -0
  183. data/lib/ory-oathkeeper-client/models/swagger_rules_response.rb +222 -0
  184. data/lib/ory-oathkeeper-client/models/swagger_update_rule_parameters.rb +234 -0
  185. data/lib/ory-oathkeeper-client/models/swagger_version.rb +220 -0
  186. data/lib/ory-oathkeeper-client/models/update_rule_forbidden.rb +219 -0
  187. data/lib/ory-oathkeeper-client/models/update_rule_forbidden_body.rb +272 -0
  188. data/lib/ory-oathkeeper-client/models/update_rule_internal_server_error.rb +219 -0
  189. data/lib/ory-oathkeeper-client/models/update_rule_internal_server_error_body.rb +272 -0
  190. data/lib/ory-oathkeeper-client/models/update_rule_not_found.rb +219 -0
  191. data/lib/ory-oathkeeper-client/models/update_rule_not_found_body.rb +272 -0
  192. data/lib/ory-oathkeeper-client/models/update_rule_ok.rb +219 -0
  193. data/lib/ory-oathkeeper-client/models/update_rule_unauthorized.rb +219 -0
  194. data/lib/ory-oathkeeper-client/models/update_rule_unauthorized_body.rb +272 -0
  195. data/lib/ory-oathkeeper-client/models/upstream.rb +240 -0
  196. data/lib/ory-oathkeeper-client/models/version.rb +219 -0
  197. data/lib/ory-oathkeeper-client/version.rb +15 -0
  198. data/ory-oathkeeper-client.gemspec +38 -0
  199. data/spec/api/api_api_spec.rb +115 -0
  200. data/spec/api/health_api_spec.rb +57 -0
  201. data/spec/api/version_api_spec.rb +46 -0
  202. data/spec/api_client_spec.rb +226 -0
  203. data/spec/configuration_spec.rb +42 -0
  204. data/spec/models/create_rule_created_spec.rb +41 -0
  205. data/spec/models/create_rule_forbidden_body_spec.rb +71 -0
  206. data/spec/models/create_rule_forbidden_spec.rb +41 -0
  207. data/spec/models/create_rule_internal_server_error_body_spec.rb +71 -0
  208. data/spec/models/create_rule_internal_server_error_spec.rb +41 -0
  209. data/spec/models/create_rule_unauthorized_body_spec.rb +71 -0
  210. data/spec/models/create_rule_unauthorized_spec.rb +41 -0
  211. data/spec/models/decisions_forbidden_body_spec.rb +71 -0
  212. data/spec/models/decisions_forbidden_spec.rb +41 -0
  213. data/spec/models/decisions_internal_server_error_body_spec.rb +71 -0
  214. data/spec/models/decisions_internal_server_error_spec.rb +41 -0
  215. data/spec/models/decisions_not_found_body_spec.rb +71 -0
  216. data/spec/models/decisions_not_found_spec.rb +41 -0
  217. data/spec/models/decisions_unauthorized_body_spec.rb +71 -0
  218. data/spec/models/decisions_unauthorized_spec.rb +41 -0
  219. data/spec/models/delete_rule_forbidden_body_spec.rb +71 -0
  220. data/spec/models/delete_rule_forbidden_spec.rb +41 -0
  221. data/spec/models/delete_rule_internal_server_error_body_spec.rb +71 -0
  222. data/spec/models/delete_rule_internal_server_error_spec.rb +41 -0
  223. data/spec/models/delete_rule_not_found_body_spec.rb +71 -0
  224. data/spec/models/delete_rule_not_found_spec.rb +41 -0
  225. data/spec/models/delete_rule_unauthorized_body_spec.rb +71 -0
  226. data/spec/models/delete_rule_unauthorized_spec.rb +41 -0
  227. data/spec/models/get_rule_forbidden_body_spec.rb +71 -0
  228. data/spec/models/get_rule_forbidden_spec.rb +41 -0
  229. data/spec/models/get_rule_internal_server_error_body_spec.rb +71 -0
  230. data/spec/models/get_rule_internal_server_error_spec.rb +41 -0
  231. data/spec/models/get_rule_not_found_body_spec.rb +71 -0
  232. data/spec/models/get_rule_not_found_spec.rb +41 -0
  233. data/spec/models/get_rule_ok_spec.rb +41 -0
  234. data/spec/models/get_rule_unauthorized_body_spec.rb +71 -0
  235. data/spec/models/get_rule_unauthorized_spec.rb +41 -0
  236. data/spec/models/get_well_known_forbidden_body_spec.rb +71 -0
  237. data/spec/models/get_well_known_forbidden_spec.rb +41 -0
  238. data/spec/models/get_well_known_json_web_keys_internal_server_error_body_spec.rb +71 -0
  239. data/spec/models/get_well_known_json_web_keys_internal_server_error_spec.rb +41 -0
  240. data/spec/models/get_well_known_json_web_keys_ok_spec.rb +41 -0
  241. data/spec/models/get_well_known_ok_spec.rb +41 -0
  242. data/spec/models/get_well_known_unauthorized_body_spec.rb +71 -0
  243. data/spec/models/get_well_known_unauthorized_spec.rb +41 -0
  244. data/spec/models/health_not_ready_status_spec.rb +41 -0
  245. data/spec/models/health_status_spec.rb +41 -0
  246. data/spec/models/inline_response500_spec.rb +71 -0
  247. data/spec/models/is_instance_alive_internal_server_error_body_spec.rb +71 -0
  248. data/spec/models/is_instance_alive_internal_server_error_spec.rb +41 -0
  249. data/spec/models/is_instance_alive_ok_spec.rb +41 -0
  250. data/spec/models/json_web_key_set_spec.rb +41 -0
  251. data/spec/models/json_web_key_spec.rb +137 -0
  252. data/spec/models/judge_forbidden_body_spec.rb +71 -0
  253. data/spec/models/judge_forbidden_spec.rb +41 -0
  254. data/spec/models/judge_internal_server_error_body_spec.rb +71 -0
  255. data/spec/models/judge_internal_server_error_spec.rb +41 -0
  256. data/spec/models/judge_not_found_body_spec.rb +71 -0
  257. data/spec/models/judge_not_found_spec.rb +41 -0
  258. data/spec/models/judge_unauthorized_body_spec.rb +71 -0
  259. data/spec/models/judge_unauthorized_spec.rb +41 -0
  260. data/spec/models/list_rules_forbidden_body_spec.rb +71 -0
  261. data/spec/models/list_rules_forbidden_spec.rb +41 -0
  262. data/spec/models/list_rules_internal_server_error_body_spec.rb +71 -0
  263. data/spec/models/list_rules_internal_server_error_spec.rb +41 -0
  264. data/spec/models/list_rules_ok_spec.rb +41 -0
  265. data/spec/models/list_rules_unauthorized_body_spec.rb +71 -0
  266. data/spec/models/list_rules_unauthorized_spec.rb +41 -0
  267. data/spec/models/rule_handler_spec.rb +47 -0
  268. data/spec/models/rule_match_spec.rb +47 -0
  269. data/spec/models/rule_spec.rb +77 -0
  270. data/spec/models/swagger_create_rule_parameters_spec.rb +41 -0
  271. data/spec/models/swagger_get_rule_parameters_spec.rb +41 -0
  272. data/spec/models/swagger_health_status_spec.rb +41 -0
  273. data/spec/models/swagger_json_web_key_set_spec.rb +41 -0
  274. data/spec/models/swagger_json_web_key_spec.rb +137 -0
  275. data/spec/models/swagger_list_rules_parameters_spec.rb +47 -0
  276. data/spec/models/swagger_not_ready_status_spec.rb +41 -0
  277. data/spec/models/swagger_rule_handler_spec.rb +47 -0
  278. data/spec/models/swagger_rule_match_spec.rb +47 -0
  279. data/spec/models/swagger_rule_response_spec.rb +41 -0
  280. data/spec/models/swagger_rule_spec.rb +77 -0
  281. data/spec/models/swagger_rules_response_spec.rb +41 -0
  282. data/spec/models/swagger_update_rule_parameters_spec.rb +47 -0
  283. data/spec/models/swagger_version_spec.rb +41 -0
  284. data/spec/models/update_rule_forbidden_body_spec.rb +71 -0
  285. data/spec/models/update_rule_forbidden_spec.rb +41 -0
  286. data/spec/models/update_rule_internal_server_error_body_spec.rb +71 -0
  287. data/spec/models/update_rule_internal_server_error_spec.rb +41 -0
  288. data/spec/models/update_rule_not_found_body_spec.rb +71 -0
  289. data/spec/models/update_rule_not_found_spec.rb +41 -0
  290. data/spec/models/update_rule_ok_spec.rb +41 -0
  291. data/spec/models/update_rule_unauthorized_body_spec.rb +71 -0
  292. data/spec/models/update_rule_unauthorized_spec.rb +41 -0
  293. data/spec/models/upstream_spec.rb +53 -0
  294. data/spec/models/version_spec.rb +41 -0
  295. data/spec/spec_helper.rb +111 -0
  296. metadata +477 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: b93ef1ad66f5c46755a34127a5e80f14ba8c8c357c1632351fd67b96ec457e64
4
+ data.tar.gz: c43cd62f7e28b45841525aaed8d0567c5fd9cc150b35dede81833c1cf42821a7
5
+ SHA512:
6
+ metadata.gz: 532f5f2cf772d936e402ad1cca84971d102343a9331fbc3401ff261836cb893735fc83e531a6211c7927de6694e39efe4f62357ce359ec2788c5dda2e500e3f0
7
+ data.tar.gz: 0f998b2fd70fa56bbe20fd6df2d164f727d3381494097bd579b7917a9082de5b370a6d392991885d2208a976121fd46eb102cdb4a88ef04f32f0a13ff73fcc75
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 13.0.1'
7
+ gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+ end
data/README.md ADDED
@@ -0,0 +1,184 @@
1
+ # ory-oathkeeper-client
2
+
3
+ OryOathkeeperClient - the Ruby gem for the ORY Oathkeeper
4
+
5
+ ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies.
6
+
7
+ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
+
9
+ - API version: v0.0.0-alpha.38
10
+ - Package version: v0.0.0-alpha.38
11
+ - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
+ For more information, please visit [https://www.ory.am](https://www.ory.am)
13
+
14
+ ## Installation
15
+
16
+ ### Build a gem
17
+
18
+ To build the Ruby code into a gem:
19
+
20
+ ```shell
21
+ gem build ory-oathkeeper-client.gemspec
22
+ ```
23
+
24
+ Then either install the gem locally:
25
+
26
+ ```shell
27
+ gem install ./ory-oathkeeper-client-v0.0.0-alpha.38.gem
28
+ ```
29
+
30
+ (for development, run `gem install --dev ./ory-oathkeeper-client-v0.0.0-alpha.38.gem` to install the development dependencies)
31
+
32
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
+
34
+ Finally add this to the Gemfile:
35
+
36
+ gem 'ory-oathkeeper-client', '~> v0.0.0-alpha.38'
37
+
38
+ ### Install from Git
39
+
40
+ If the Ruby gem is hosted at a git repository: https://github.com/ory/sdk, then add the following in the Gemfile:
41
+
42
+ gem 'ory-oathkeeper-client', :git => 'https://github.com/ory/sdk.git'
43
+
44
+ ### Include the Ruby code directly
45
+
46
+ Include the Ruby code directly using `-I` as follows:
47
+
48
+ ```shell
49
+ ruby -Ilib script.rb
50
+ ```
51
+
52
+ ## Getting Started
53
+
54
+ Please follow the [installation](#installation) procedure and then run the following code:
55
+
56
+ ```ruby
57
+ # Load the gem
58
+ require 'ory-oathkeeper-client'
59
+
60
+ api_instance = OryOathkeeperClient::ApiApi.new
61
+
62
+ begin
63
+ #Access Control Decision API
64
+ api_instance.decisions
65
+ rescue OryOathkeeperClient::ApiError => e
66
+ puts "Exception when calling ApiApi->decisions: #{e}"
67
+ end
68
+
69
+ ```
70
+
71
+ ## Documentation for API Endpoints
72
+
73
+ All URIs are relative to *http://localhost*
74
+
75
+ Class | Method | HTTP request | Description
76
+ ------------ | ------------- | ------------- | -------------
77
+ *OryOathkeeperClient::ApiApi* | [**decisions**](docs/ApiApi.md#decisions) | **GET** /decisions | Access Control Decision API
78
+ *OryOathkeeperClient::ApiApi* | [**get_rule**](docs/ApiApi.md#get_rule) | **GET** /rules/{id} | Retrieve a rule
79
+ *OryOathkeeperClient::ApiApi* | [**get_version**](docs/ApiApi.md#get_version) | **GET** /version | Get service version
80
+ *OryOathkeeperClient::ApiApi* | [**get_well_known_json_web_keys**](docs/ApiApi.md#get_well_known_json_web_keys) | **GET** /.well-known/jwks.json | Lists cryptographic keys
81
+ *OryOathkeeperClient::ApiApi* | [**is_instance_alive**](docs/ApiApi.md#is_instance_alive) | **GET** /health/alive | Check alive status
82
+ *OryOathkeeperClient::ApiApi* | [**is_instance_ready**](docs/ApiApi.md#is_instance_ready) | **GET** /health/ready | Check readiness status
83
+ *OryOathkeeperClient::ApiApi* | [**list_rules**](docs/ApiApi.md#list_rules) | **GET** /rules | List all rules
84
+
85
+
86
+ ## Documentation for Models
87
+
88
+ - [OryOathkeeperClient::CreateRuleCreated](docs/CreateRuleCreated.md)
89
+ - [OryOathkeeperClient::CreateRuleForbidden](docs/CreateRuleForbidden.md)
90
+ - [OryOathkeeperClient::CreateRuleForbiddenBody](docs/CreateRuleForbiddenBody.md)
91
+ - [OryOathkeeperClient::CreateRuleInternalServerError](docs/CreateRuleInternalServerError.md)
92
+ - [OryOathkeeperClient::CreateRuleInternalServerErrorBody](docs/CreateRuleInternalServerErrorBody.md)
93
+ - [OryOathkeeperClient::CreateRuleUnauthorized](docs/CreateRuleUnauthorized.md)
94
+ - [OryOathkeeperClient::CreateRuleUnauthorizedBody](docs/CreateRuleUnauthorizedBody.md)
95
+ - [OryOathkeeperClient::DecisionsForbidden](docs/DecisionsForbidden.md)
96
+ - [OryOathkeeperClient::DecisionsForbiddenBody](docs/DecisionsForbiddenBody.md)
97
+ - [OryOathkeeperClient::DecisionsInternalServerError](docs/DecisionsInternalServerError.md)
98
+ - [OryOathkeeperClient::DecisionsInternalServerErrorBody](docs/DecisionsInternalServerErrorBody.md)
99
+ - [OryOathkeeperClient::DecisionsNotFound](docs/DecisionsNotFound.md)
100
+ - [OryOathkeeperClient::DecisionsNotFoundBody](docs/DecisionsNotFoundBody.md)
101
+ - [OryOathkeeperClient::DecisionsUnauthorized](docs/DecisionsUnauthorized.md)
102
+ - [OryOathkeeperClient::DecisionsUnauthorizedBody](docs/DecisionsUnauthorizedBody.md)
103
+ - [OryOathkeeperClient::DeleteRuleForbidden](docs/DeleteRuleForbidden.md)
104
+ - [OryOathkeeperClient::DeleteRuleForbiddenBody](docs/DeleteRuleForbiddenBody.md)
105
+ - [OryOathkeeperClient::DeleteRuleInternalServerError](docs/DeleteRuleInternalServerError.md)
106
+ - [OryOathkeeperClient::DeleteRuleInternalServerErrorBody](docs/DeleteRuleInternalServerErrorBody.md)
107
+ - [OryOathkeeperClient::DeleteRuleNotFound](docs/DeleteRuleNotFound.md)
108
+ - [OryOathkeeperClient::DeleteRuleNotFoundBody](docs/DeleteRuleNotFoundBody.md)
109
+ - [OryOathkeeperClient::DeleteRuleUnauthorized](docs/DeleteRuleUnauthorized.md)
110
+ - [OryOathkeeperClient::DeleteRuleUnauthorizedBody](docs/DeleteRuleUnauthorizedBody.md)
111
+ - [OryOathkeeperClient::GetRuleForbidden](docs/GetRuleForbidden.md)
112
+ - [OryOathkeeperClient::GetRuleForbiddenBody](docs/GetRuleForbiddenBody.md)
113
+ - [OryOathkeeperClient::GetRuleInternalServerError](docs/GetRuleInternalServerError.md)
114
+ - [OryOathkeeperClient::GetRuleInternalServerErrorBody](docs/GetRuleInternalServerErrorBody.md)
115
+ - [OryOathkeeperClient::GetRuleNotFound](docs/GetRuleNotFound.md)
116
+ - [OryOathkeeperClient::GetRuleNotFoundBody](docs/GetRuleNotFoundBody.md)
117
+ - [OryOathkeeperClient::GetRuleOK](docs/GetRuleOK.md)
118
+ - [OryOathkeeperClient::GetRuleUnauthorized](docs/GetRuleUnauthorized.md)
119
+ - [OryOathkeeperClient::GetRuleUnauthorizedBody](docs/GetRuleUnauthorizedBody.md)
120
+ - [OryOathkeeperClient::GetWellKnownForbidden](docs/GetWellKnownForbidden.md)
121
+ - [OryOathkeeperClient::GetWellKnownForbiddenBody](docs/GetWellKnownForbiddenBody.md)
122
+ - [OryOathkeeperClient::GetWellKnownJSONWebKeysInternalServerError](docs/GetWellKnownJSONWebKeysInternalServerError.md)
123
+ - [OryOathkeeperClient::GetWellKnownJSONWebKeysInternalServerErrorBody](docs/GetWellKnownJSONWebKeysInternalServerErrorBody.md)
124
+ - [OryOathkeeperClient::GetWellKnownJSONWebKeysOK](docs/GetWellKnownJSONWebKeysOK.md)
125
+ - [OryOathkeeperClient::GetWellKnownOK](docs/GetWellKnownOK.md)
126
+ - [OryOathkeeperClient::GetWellKnownUnauthorized](docs/GetWellKnownUnauthorized.md)
127
+ - [OryOathkeeperClient::GetWellKnownUnauthorizedBody](docs/GetWellKnownUnauthorizedBody.md)
128
+ - [OryOathkeeperClient::HealthNotReadyStatus](docs/HealthNotReadyStatus.md)
129
+ - [OryOathkeeperClient::HealthStatus](docs/HealthStatus.md)
130
+ - [OryOathkeeperClient::InlineResponse500](docs/InlineResponse500.md)
131
+ - [OryOathkeeperClient::IsInstanceAliveInternalServerError](docs/IsInstanceAliveInternalServerError.md)
132
+ - [OryOathkeeperClient::IsInstanceAliveInternalServerErrorBody](docs/IsInstanceAliveInternalServerErrorBody.md)
133
+ - [OryOathkeeperClient::IsInstanceAliveOK](docs/IsInstanceAliveOK.md)
134
+ - [OryOathkeeperClient::JsonWebKey](docs/JsonWebKey.md)
135
+ - [OryOathkeeperClient::JsonWebKeySet](docs/JsonWebKeySet.md)
136
+ - [OryOathkeeperClient::JudgeForbidden](docs/JudgeForbidden.md)
137
+ - [OryOathkeeperClient::JudgeForbiddenBody](docs/JudgeForbiddenBody.md)
138
+ - [OryOathkeeperClient::JudgeInternalServerError](docs/JudgeInternalServerError.md)
139
+ - [OryOathkeeperClient::JudgeInternalServerErrorBody](docs/JudgeInternalServerErrorBody.md)
140
+ - [OryOathkeeperClient::JudgeNotFound](docs/JudgeNotFound.md)
141
+ - [OryOathkeeperClient::JudgeNotFoundBody](docs/JudgeNotFoundBody.md)
142
+ - [OryOathkeeperClient::JudgeUnauthorized](docs/JudgeUnauthorized.md)
143
+ - [OryOathkeeperClient::JudgeUnauthorizedBody](docs/JudgeUnauthorizedBody.md)
144
+ - [OryOathkeeperClient::ListRulesForbidden](docs/ListRulesForbidden.md)
145
+ - [OryOathkeeperClient::ListRulesForbiddenBody](docs/ListRulesForbiddenBody.md)
146
+ - [OryOathkeeperClient::ListRulesInternalServerError](docs/ListRulesInternalServerError.md)
147
+ - [OryOathkeeperClient::ListRulesInternalServerErrorBody](docs/ListRulesInternalServerErrorBody.md)
148
+ - [OryOathkeeperClient::ListRulesOK](docs/ListRulesOK.md)
149
+ - [OryOathkeeperClient::ListRulesUnauthorized](docs/ListRulesUnauthorized.md)
150
+ - [OryOathkeeperClient::ListRulesUnauthorizedBody](docs/ListRulesUnauthorizedBody.md)
151
+ - [OryOathkeeperClient::Rule](docs/Rule.md)
152
+ - [OryOathkeeperClient::RuleHandler](docs/RuleHandler.md)
153
+ - [OryOathkeeperClient::RuleMatch](docs/RuleMatch.md)
154
+ - [OryOathkeeperClient::SwaggerCreateRuleParameters](docs/SwaggerCreateRuleParameters.md)
155
+ - [OryOathkeeperClient::SwaggerGetRuleParameters](docs/SwaggerGetRuleParameters.md)
156
+ - [OryOathkeeperClient::SwaggerHealthStatus](docs/SwaggerHealthStatus.md)
157
+ - [OryOathkeeperClient::SwaggerJSONWebKey](docs/SwaggerJSONWebKey.md)
158
+ - [OryOathkeeperClient::SwaggerJSONWebKeySet](docs/SwaggerJSONWebKeySet.md)
159
+ - [OryOathkeeperClient::SwaggerListRulesParameters](docs/SwaggerListRulesParameters.md)
160
+ - [OryOathkeeperClient::SwaggerNotReadyStatus](docs/SwaggerNotReadyStatus.md)
161
+ - [OryOathkeeperClient::SwaggerRule](docs/SwaggerRule.md)
162
+ - [OryOathkeeperClient::SwaggerRuleHandler](docs/SwaggerRuleHandler.md)
163
+ - [OryOathkeeperClient::SwaggerRuleMatch](docs/SwaggerRuleMatch.md)
164
+ - [OryOathkeeperClient::SwaggerRuleResponse](docs/SwaggerRuleResponse.md)
165
+ - [OryOathkeeperClient::SwaggerRulesResponse](docs/SwaggerRulesResponse.md)
166
+ - [OryOathkeeperClient::SwaggerUpdateRuleParameters](docs/SwaggerUpdateRuleParameters.md)
167
+ - [OryOathkeeperClient::SwaggerVersion](docs/SwaggerVersion.md)
168
+ - [OryOathkeeperClient::UpdateRuleForbidden](docs/UpdateRuleForbidden.md)
169
+ - [OryOathkeeperClient::UpdateRuleForbiddenBody](docs/UpdateRuleForbiddenBody.md)
170
+ - [OryOathkeeperClient::UpdateRuleInternalServerError](docs/UpdateRuleInternalServerError.md)
171
+ - [OryOathkeeperClient::UpdateRuleInternalServerErrorBody](docs/UpdateRuleInternalServerErrorBody.md)
172
+ - [OryOathkeeperClient::UpdateRuleNotFound](docs/UpdateRuleNotFound.md)
173
+ - [OryOathkeeperClient::UpdateRuleNotFoundBody](docs/UpdateRuleNotFoundBody.md)
174
+ - [OryOathkeeperClient::UpdateRuleOK](docs/UpdateRuleOK.md)
175
+ - [OryOathkeeperClient::UpdateRuleUnauthorized](docs/UpdateRuleUnauthorized.md)
176
+ - [OryOathkeeperClient::UpdateRuleUnauthorizedBody](docs/UpdateRuleUnauthorizedBody.md)
177
+ - [OryOathkeeperClient::Upstream](docs/Upstream.md)
178
+ - [OryOathkeeperClient::Version](docs/Version.md)
179
+
180
+
181
+ ## Documentation for Authorization
182
+
183
+ All endpoints do not require authorization.
184
+
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
data/docs/ApiApi.md ADDED
@@ -0,0 +1,450 @@
1
+ # OryOathkeeperClient::ApiApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**decisions**](ApiApi.md#decisions) | **GET** /decisions | Access Control Decision API |
8
+ | [**get_rule**](ApiApi.md#get_rule) | **GET** /rules/{id} | Retrieve a rule |
9
+ | [**get_version**](ApiApi.md#get_version) | **GET** /version | Get service version |
10
+ | [**get_well_known_json_web_keys**](ApiApi.md#get_well_known_json_web_keys) | **GET** /.well-known/jwks.json | Lists cryptographic keys |
11
+ | [**is_instance_alive**](ApiApi.md#is_instance_alive) | **GET** /health/alive | Check alive status |
12
+ | [**is_instance_ready**](ApiApi.md#is_instance_ready) | **GET** /health/ready | Check readiness status |
13
+ | [**list_rules**](ApiApi.md#list_rules) | **GET** /rules | List all rules |
14
+
15
+
16
+ ## decisions
17
+
18
+ > decisions
19
+
20
+ Access Control Decision API
21
+
22
+ > This endpoint works with all HTTP Methods (GET, POST, PUT, ...) and matches every path prefixed with /decision. This endpoint mirrors the proxy capability of ORY Oathkeeper's proxy functionality but instead of forwarding the request to the upstream server, returns 200 (request should be allowed), 401 (unauthorized), or 403 (forbidden) status codes. This endpoint can be used to integrate with other API Proxies like Ambassador, Kong, Envoy, and many more.
23
+
24
+ ### Examples
25
+
26
+ ```ruby
27
+ require 'time'
28
+ require 'ory-oathkeeper-client'
29
+
30
+ api_instance = OryOathkeeperClient::ApiApi.new
31
+
32
+ begin
33
+ # Access Control Decision API
34
+ api_instance.decisions
35
+ rescue OryOathkeeperClient::ApiError => e
36
+ puts "Error when calling ApiApi->decisions: #{e}"
37
+ end
38
+ ```
39
+
40
+ #### Using the decisions_with_http_info variant
41
+
42
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
43
+
44
+ > <Array(nil, Integer, Hash)> decisions_with_http_info
45
+
46
+ ```ruby
47
+ begin
48
+ # Access Control Decision API
49
+ data, status_code, headers = api_instance.decisions_with_http_info
50
+ p status_code # => 2xx
51
+ p headers # => { ... }
52
+ p data # => nil
53
+ rescue OryOathkeeperClient::ApiError => e
54
+ puts "Error when calling ApiApi->decisions_with_http_info: #{e}"
55
+ end
56
+ ```
57
+
58
+ ### Parameters
59
+
60
+ This endpoint does not need any parameter.
61
+
62
+ ### Return type
63
+
64
+ nil (empty response body)
65
+
66
+ ### Authorization
67
+
68
+ No authorization required
69
+
70
+ ### HTTP request headers
71
+
72
+ - **Content-Type**: Not defined
73
+ - **Accept**: application/json
74
+
75
+
76
+ ## get_rule
77
+
78
+ > <Rule> get_rule(id)
79
+
80
+ Retrieve a rule
81
+
82
+ Use this method to retrieve a rule from the storage. If it does not exist you will receive a 404 error.
83
+
84
+ ### Examples
85
+
86
+ ```ruby
87
+ require 'time'
88
+ require 'ory-oathkeeper-client'
89
+
90
+ api_instance = OryOathkeeperClient::ApiApi.new
91
+ id = 'id_example' # String |
92
+
93
+ begin
94
+ # Retrieve a rule
95
+ result = api_instance.get_rule(id)
96
+ p result
97
+ rescue OryOathkeeperClient::ApiError => e
98
+ puts "Error when calling ApiApi->get_rule: #{e}"
99
+ end
100
+ ```
101
+
102
+ #### Using the get_rule_with_http_info variant
103
+
104
+ This returns an Array which contains the response data, status code and headers.
105
+
106
+ > <Array(<Rule>, Integer, Hash)> get_rule_with_http_info(id)
107
+
108
+ ```ruby
109
+ begin
110
+ # Retrieve a rule
111
+ data, status_code, headers = api_instance.get_rule_with_http_info(id)
112
+ p status_code # => 2xx
113
+ p headers # => { ... }
114
+ p data # => <Rule>
115
+ rescue OryOathkeeperClient::ApiError => e
116
+ puts "Error when calling ApiApi->get_rule_with_http_info: #{e}"
117
+ end
118
+ ```
119
+
120
+ ### Parameters
121
+
122
+ | Name | Type | Description | Notes |
123
+ | ---- | ---- | ----------- | ----- |
124
+ | **id** | **String** | | |
125
+
126
+ ### Return type
127
+
128
+ [**Rule**](Rule.md)
129
+
130
+ ### Authorization
131
+
132
+ No authorization required
133
+
134
+ ### HTTP request headers
135
+
136
+ - **Content-Type**: Not defined
137
+ - **Accept**: application/json
138
+
139
+
140
+ ## get_version
141
+
142
+ > <Version> get_version
143
+
144
+ Get service version
145
+
146
+ This endpoint returns the service version typically notated using semantic versioning. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance.
147
+
148
+ ### Examples
149
+
150
+ ```ruby
151
+ require 'time'
152
+ require 'ory-oathkeeper-client'
153
+
154
+ api_instance = OryOathkeeperClient::ApiApi.new
155
+
156
+ begin
157
+ # Get service version
158
+ result = api_instance.get_version
159
+ p result
160
+ rescue OryOathkeeperClient::ApiError => e
161
+ puts "Error when calling ApiApi->get_version: #{e}"
162
+ end
163
+ ```
164
+
165
+ #### Using the get_version_with_http_info variant
166
+
167
+ This returns an Array which contains the response data, status code and headers.
168
+
169
+ > <Array(<Version>, Integer, Hash)> get_version_with_http_info
170
+
171
+ ```ruby
172
+ begin
173
+ # Get service version
174
+ data, status_code, headers = api_instance.get_version_with_http_info
175
+ p status_code # => 2xx
176
+ p headers # => { ... }
177
+ p data # => <Version>
178
+ rescue OryOathkeeperClient::ApiError => e
179
+ puts "Error when calling ApiApi->get_version_with_http_info: #{e}"
180
+ end
181
+ ```
182
+
183
+ ### Parameters
184
+
185
+ This endpoint does not need any parameter.
186
+
187
+ ### Return type
188
+
189
+ [**Version**](Version.md)
190
+
191
+ ### Authorization
192
+
193
+ No authorization required
194
+
195
+ ### HTTP request headers
196
+
197
+ - **Content-Type**: Not defined
198
+ - **Accept**: application/json
199
+
200
+
201
+ ## get_well_known_json_web_keys
202
+
203
+ > <JsonWebKeySet> get_well_known_json_web_keys
204
+
205
+ Lists cryptographic keys
206
+
207
+ This endpoint returns cryptographic keys that are required to, for example, verify signatures of ID Tokens.
208
+
209
+ ### Examples
210
+
211
+ ```ruby
212
+ require 'time'
213
+ require 'ory-oathkeeper-client'
214
+
215
+ api_instance = OryOathkeeperClient::ApiApi.new
216
+
217
+ begin
218
+ # Lists cryptographic keys
219
+ result = api_instance.get_well_known_json_web_keys
220
+ p result
221
+ rescue OryOathkeeperClient::ApiError => e
222
+ puts "Error when calling ApiApi->get_well_known_json_web_keys: #{e}"
223
+ end
224
+ ```
225
+
226
+ #### Using the get_well_known_json_web_keys_with_http_info variant
227
+
228
+ This returns an Array which contains the response data, status code and headers.
229
+
230
+ > <Array(<JsonWebKeySet>, Integer, Hash)> get_well_known_json_web_keys_with_http_info
231
+
232
+ ```ruby
233
+ begin
234
+ # Lists cryptographic keys
235
+ data, status_code, headers = api_instance.get_well_known_json_web_keys_with_http_info
236
+ p status_code # => 2xx
237
+ p headers # => { ... }
238
+ p data # => <JsonWebKeySet>
239
+ rescue OryOathkeeperClient::ApiError => e
240
+ puts "Error when calling ApiApi->get_well_known_json_web_keys_with_http_info: #{e}"
241
+ end
242
+ ```
243
+
244
+ ### Parameters
245
+
246
+ This endpoint does not need any parameter.
247
+
248
+ ### Return type
249
+
250
+ [**JsonWebKeySet**](JsonWebKeySet.md)
251
+
252
+ ### Authorization
253
+
254
+ No authorization required
255
+
256
+ ### HTTP request headers
257
+
258
+ - **Content-Type**: Not defined
259
+ - **Accept**: application/json
260
+
261
+
262
+ ## is_instance_alive
263
+
264
+ > <HealthStatus> is_instance_alive
265
+
266
+ Check alive status
267
+
268
+ This endpoint returns a 200 status code when the HTTP server is up running. This status does currently not include checks whether the database connection is working. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance.
269
+
270
+ ### Examples
271
+
272
+ ```ruby
273
+ require 'time'
274
+ require 'ory-oathkeeper-client'
275
+
276
+ api_instance = OryOathkeeperClient::ApiApi.new
277
+
278
+ begin
279
+ # Check alive status
280
+ result = api_instance.is_instance_alive
281
+ p result
282
+ rescue OryOathkeeperClient::ApiError => e
283
+ puts "Error when calling ApiApi->is_instance_alive: #{e}"
284
+ end
285
+ ```
286
+
287
+ #### Using the is_instance_alive_with_http_info variant
288
+
289
+ This returns an Array which contains the response data, status code and headers.
290
+
291
+ > <Array(<HealthStatus>, Integer, Hash)> is_instance_alive_with_http_info
292
+
293
+ ```ruby
294
+ begin
295
+ # Check alive status
296
+ data, status_code, headers = api_instance.is_instance_alive_with_http_info
297
+ p status_code # => 2xx
298
+ p headers # => { ... }
299
+ p data # => <HealthStatus>
300
+ rescue OryOathkeeperClient::ApiError => e
301
+ puts "Error when calling ApiApi->is_instance_alive_with_http_info: #{e}"
302
+ end
303
+ ```
304
+
305
+ ### Parameters
306
+
307
+ This endpoint does not need any parameter.
308
+
309
+ ### Return type
310
+
311
+ [**HealthStatus**](HealthStatus.md)
312
+
313
+ ### Authorization
314
+
315
+ No authorization required
316
+
317
+ ### HTTP request headers
318
+
319
+ - **Content-Type**: Not defined
320
+ - **Accept**: application/json
321
+
322
+
323
+ ## is_instance_ready
324
+
325
+ > <HealthStatus> is_instance_ready
326
+
327
+ Check readiness status
328
+
329
+ This endpoint returns a 200 status code when the HTTP server is up running and the environment dependencies (e.g. the database) are responsive as well. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance.
330
+
331
+ ### Examples
332
+
333
+ ```ruby
334
+ require 'time'
335
+ require 'ory-oathkeeper-client'
336
+
337
+ api_instance = OryOathkeeperClient::ApiApi.new
338
+
339
+ begin
340
+ # Check readiness status
341
+ result = api_instance.is_instance_ready
342
+ p result
343
+ rescue OryOathkeeperClient::ApiError => e
344
+ puts "Error when calling ApiApi->is_instance_ready: #{e}"
345
+ end
346
+ ```
347
+
348
+ #### Using the is_instance_ready_with_http_info variant
349
+
350
+ This returns an Array which contains the response data, status code and headers.
351
+
352
+ > <Array(<HealthStatus>, Integer, Hash)> is_instance_ready_with_http_info
353
+
354
+ ```ruby
355
+ begin
356
+ # Check readiness status
357
+ data, status_code, headers = api_instance.is_instance_ready_with_http_info
358
+ p status_code # => 2xx
359
+ p headers # => { ... }
360
+ p data # => <HealthStatus>
361
+ rescue OryOathkeeperClient::ApiError => e
362
+ puts "Error when calling ApiApi->is_instance_ready_with_http_info: #{e}"
363
+ end
364
+ ```
365
+
366
+ ### Parameters
367
+
368
+ This endpoint does not need any parameter.
369
+
370
+ ### Return type
371
+
372
+ [**HealthStatus**](HealthStatus.md)
373
+
374
+ ### Authorization
375
+
376
+ No authorization required
377
+
378
+ ### HTTP request headers
379
+
380
+ - **Content-Type**: Not defined
381
+ - **Accept**: application/json
382
+
383
+
384
+ ## list_rules
385
+
386
+ > <Array<Rule>> list_rules(opts)
387
+
388
+ List all rules
389
+
390
+ This method returns an array of all rules that are stored in the backend. This is useful if you want to get a full view of what rules you have currently in place.
391
+
392
+ ### Examples
393
+
394
+ ```ruby
395
+ require 'time'
396
+ require 'ory-oathkeeper-client'
397
+
398
+ api_instance = OryOathkeeperClient::ApiApi.new
399
+ opts = {
400
+ limit: 789, # Integer | The maximum amount of rules returned.
401
+ offset: 789 # Integer | The offset from where to start looking.
402
+ }
403
+
404
+ begin
405
+ # List all rules
406
+ result = api_instance.list_rules(opts)
407
+ p result
408
+ rescue OryOathkeeperClient::ApiError => e
409
+ puts "Error when calling ApiApi->list_rules: #{e}"
410
+ end
411
+ ```
412
+
413
+ #### Using the list_rules_with_http_info variant
414
+
415
+ This returns an Array which contains the response data, status code and headers.
416
+
417
+ > <Array(<Array<Rule>>, Integer, Hash)> list_rules_with_http_info(opts)
418
+
419
+ ```ruby
420
+ begin
421
+ # List all rules
422
+ data, status_code, headers = api_instance.list_rules_with_http_info(opts)
423
+ p status_code # => 2xx
424
+ p headers # => { ... }
425
+ p data # => <Array<Rule>>
426
+ rescue OryOathkeeperClient::ApiError => e
427
+ puts "Error when calling ApiApi->list_rules_with_http_info: #{e}"
428
+ end
429
+ ```
430
+
431
+ ### Parameters
432
+
433
+ | Name | Type | Description | Notes |
434
+ | ---- | ---- | ----------- | ----- |
435
+ | **limit** | **Integer** | The maximum amount of rules returned. | [optional] |
436
+ | **offset** | **Integer** | The offset from where to start looking. | [optional] |
437
+
438
+ ### Return type
439
+
440
+ [**Array&lt;Rule&gt;**](Rule.md)
441
+
442
+ ### Authorization
443
+
444
+ No authorization required
445
+
446
+ ### HTTP request headers
447
+
448
+ - **Content-Type**: Not defined
449
+ - **Accept**: application/json
450
+