ory-oathkeeper-client 0.0.0.alpha62 → 0.35.0.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (201) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +34 -106
  4. data/docs/ApiApi.md +46 -301
  5. data/docs/CreateRuleCreated.md +8 -9
  6. data/docs/CreateRuleForbidden.md +8 -9
  7. data/docs/CreateRuleForbiddenBody.md +18 -19
  8. data/docs/CreateRuleInternalServerError.md +8 -9
  9. data/docs/CreateRuleInternalServerErrorBody.md +18 -19
  10. data/docs/CreateRuleUnauthorized.md +8 -9
  11. data/docs/CreateRuleUnauthorizedBody.md +18 -19
  12. data/docs/DecisionsForbidden.md +8 -9
  13. data/docs/DecisionsForbiddenBody.md +18 -19
  14. data/docs/DecisionsInternalServerError.md +8 -9
  15. data/docs/DecisionsInternalServerErrorBody.md +18 -19
  16. data/docs/DecisionsNotFound.md +8 -9
  17. data/docs/DecisionsNotFoundBody.md +18 -19
  18. data/docs/DecisionsUnauthorized.md +8 -9
  19. data/docs/DecisionsUnauthorizedBody.md +18 -19
  20. data/docs/DeleteRuleForbidden.md +8 -9
  21. data/docs/DeleteRuleForbiddenBody.md +18 -19
  22. data/docs/DeleteRuleInternalServerError.md +8 -9
  23. data/docs/DeleteRuleInternalServerErrorBody.md +18 -19
  24. data/docs/DeleteRuleNotFound.md +8 -9
  25. data/docs/DeleteRuleNotFoundBody.md +18 -19
  26. data/docs/DeleteRuleUnauthorized.md +8 -9
  27. data/docs/DeleteRuleUnauthorizedBody.md +18 -19
  28. data/docs/GetRuleForbidden.md +8 -9
  29. data/docs/GetRuleForbiddenBody.md +18 -19
  30. data/docs/GetRuleInternalServerError.md +8 -9
  31. data/docs/GetRuleInternalServerErrorBody.md +18 -19
  32. data/docs/GetRuleNotFound.md +8 -9
  33. data/docs/GetRuleNotFoundBody.md +18 -19
  34. data/docs/GetRuleOK.md +8 -9
  35. data/docs/GetRuleUnauthorized.md +8 -9
  36. data/docs/GetRuleUnauthorizedBody.md +18 -19
  37. data/docs/GetWellKnownForbidden.md +8 -9
  38. data/docs/GetWellKnownForbiddenBody.md +18 -19
  39. data/docs/GetWellKnownJSONWebKeysInternalServerError.md +8 -9
  40. data/docs/GetWellKnownJSONWebKeysInternalServerErrorBody.md +18 -19
  41. data/docs/GetWellKnownJSONWebKeysOK.md +8 -9
  42. data/docs/GetWellKnownOK.md +8 -9
  43. data/docs/GetWellKnownUnauthorized.md +8 -9
  44. data/docs/GetWellKnownUnauthorizedBody.md +18 -19
  45. data/docs/HealthNotReadyStatus.md +8 -9
  46. data/docs/HealthStatus.md +8 -9
  47. data/docs/InlineResponse500.md +18 -19
  48. data/docs/IsInstanceAliveInternalServerError.md +8 -9
  49. data/docs/IsInstanceAliveInternalServerErrorBody.md +18 -19
  50. data/docs/IsInstanceAliveOK.md +8 -9
  51. data/docs/JsonWebKey.md +40 -41
  52. data/docs/JsonWebKeySet.md +8 -9
  53. data/docs/JudgeForbidden.md +8 -9
  54. data/docs/JudgeForbiddenBody.md +18 -19
  55. data/docs/JudgeInternalServerError.md +8 -9
  56. data/docs/JudgeInternalServerErrorBody.md +18 -19
  57. data/docs/JudgeNotFound.md +8 -9
  58. data/docs/JudgeNotFoundBody.md +18 -19
  59. data/docs/JudgeUnauthorized.md +8 -9
  60. data/docs/JudgeUnauthorizedBody.md +18 -19
  61. data/docs/ListRulesForbidden.md +8 -9
  62. data/docs/ListRulesForbiddenBody.md +18 -19
  63. data/docs/ListRulesInternalServerError.md +8 -9
  64. data/docs/ListRulesInternalServerErrorBody.md +18 -19
  65. data/docs/ListRulesOK.md +8 -9
  66. data/docs/ListRulesUnauthorized.md +8 -9
  67. data/docs/ListRulesUnauthorizedBody.md +18 -19
  68. data/docs/Rule.md +20 -21
  69. data/docs/RuleHandler.md +10 -11
  70. data/docs/RuleMatch.md +10 -11
  71. data/docs/SwaggerCreateRuleParameters.md +8 -9
  72. data/docs/SwaggerGetRuleParameters.md +8 -9
  73. data/docs/SwaggerHealthStatus.md +8 -9
  74. data/docs/SwaggerJSONWebKey.md +40 -41
  75. data/docs/SwaggerJSONWebKeySet.md +8 -9
  76. data/docs/SwaggerListRulesParameters.md +10 -11
  77. data/docs/SwaggerNotReadyStatus.md +8 -9
  78. data/docs/SwaggerRule.md +20 -21
  79. data/docs/SwaggerRuleHandler.md +10 -11
  80. data/docs/SwaggerRuleMatch.md +10 -11
  81. data/docs/SwaggerRuleResponse.md +8 -9
  82. data/docs/SwaggerRulesResponse.md +8 -9
  83. data/docs/SwaggerUpdateRuleParameters.md +10 -11
  84. data/docs/SwaggerVersion.md +8 -9
  85. data/docs/UpdateRuleForbidden.md +8 -9
  86. data/docs/UpdateRuleForbiddenBody.md +18 -19
  87. data/docs/UpdateRuleInternalServerError.md +8 -9
  88. data/docs/UpdateRuleInternalServerErrorBody.md +18 -19
  89. data/docs/UpdateRuleNotFound.md +8 -9
  90. data/docs/UpdateRuleNotFoundBody.md +18 -19
  91. data/docs/UpdateRuleOK.md +8 -9
  92. data/docs/UpdateRuleUnauthorized.md +8 -9
  93. data/docs/UpdateRuleUnauthorizedBody.md +18 -19
  94. data/docs/Upstream.md +12 -13
  95. data/docs/Version.md +8 -9
  96. data/lib/ory-oathkeeper-client/api/api_api.rb +15 -190
  97. data/lib/ory-oathkeeper-client/api/health_api.rb +2 -2
  98. data/lib/ory-oathkeeper-client/api/version_api.rb +2 -2
  99. data/lib/ory-oathkeeper-client/api_client.rb +48 -52
  100. data/lib/ory-oathkeeper-client/api_error.rb +3 -3
  101. data/lib/ory-oathkeeper-client/configuration.rb +12 -41
  102. data/lib/ory-oathkeeper-client/models/create_rule_created.rb +11 -23
  103. data/lib/ory-oathkeeper-client/models/create_rule_forbidden.rb +11 -23
  104. data/lib/ory-oathkeeper-client/models/create_rule_forbidden_body.rb +12 -24
  105. data/lib/ory-oathkeeper-client/models/create_rule_internal_server_error.rb +11 -23
  106. data/lib/ory-oathkeeper-client/models/create_rule_internal_server_error_body.rb +12 -24
  107. data/lib/ory-oathkeeper-client/models/create_rule_unauthorized.rb +11 -23
  108. data/lib/ory-oathkeeper-client/models/create_rule_unauthorized_body.rb +12 -24
  109. data/lib/ory-oathkeeper-client/models/decisions_forbidden.rb +11 -23
  110. data/lib/ory-oathkeeper-client/models/decisions_forbidden_body.rb +13 -25
  111. data/lib/ory-oathkeeper-client/models/decisions_internal_server_error.rb +11 -23
  112. data/lib/ory-oathkeeper-client/models/decisions_internal_server_error_body.rb +13 -25
  113. data/lib/ory-oathkeeper-client/models/decisions_not_found.rb +11 -23
  114. data/lib/ory-oathkeeper-client/models/decisions_not_found_body.rb +13 -25
  115. data/lib/ory-oathkeeper-client/models/decisions_unauthorized.rb +11 -23
  116. data/lib/ory-oathkeeper-client/models/decisions_unauthorized_body.rb +13 -25
  117. data/lib/ory-oathkeeper-client/models/delete_rule_forbidden.rb +11 -23
  118. data/lib/ory-oathkeeper-client/models/delete_rule_forbidden_body.rb +12 -24
  119. data/lib/ory-oathkeeper-client/models/delete_rule_internal_server_error.rb +11 -23
  120. data/lib/ory-oathkeeper-client/models/delete_rule_internal_server_error_body.rb +12 -24
  121. data/lib/ory-oathkeeper-client/models/delete_rule_not_found.rb +11 -23
  122. data/lib/ory-oathkeeper-client/models/delete_rule_not_found_body.rb +12 -24
  123. data/lib/ory-oathkeeper-client/models/delete_rule_unauthorized.rb +11 -23
  124. data/lib/ory-oathkeeper-client/models/delete_rule_unauthorized_body.rb +12 -24
  125. data/lib/ory-oathkeeper-client/models/get_rule_forbidden.rb +11 -23
  126. data/lib/ory-oathkeeper-client/models/get_rule_forbidden_body.rb +12 -24
  127. data/lib/ory-oathkeeper-client/models/get_rule_internal_server_error.rb +11 -23
  128. data/lib/ory-oathkeeper-client/models/get_rule_internal_server_error_body.rb +13 -25
  129. data/lib/ory-oathkeeper-client/models/get_rule_not_found.rb +11 -23
  130. data/lib/ory-oathkeeper-client/models/get_rule_not_found_body.rb +13 -25
  131. data/lib/ory-oathkeeper-client/models/get_rule_ok.rb +11 -23
  132. data/lib/ory-oathkeeper-client/models/get_rule_unauthorized.rb +11 -23
  133. data/lib/ory-oathkeeper-client/models/get_rule_unauthorized_body.rb +12 -24
  134. data/lib/ory-oathkeeper-client/models/get_well_known_forbidden.rb +11 -23
  135. data/lib/ory-oathkeeper-client/models/get_well_known_forbidden_body.rb +12 -24
  136. data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_internal_server_error.rb +11 -23
  137. data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_internal_server_error_body.rb +13 -25
  138. data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_ok.rb +11 -23
  139. data/lib/ory-oathkeeper-client/models/get_well_known_ok.rb +11 -23
  140. data/lib/ory-oathkeeper-client/models/get_well_known_unauthorized.rb +11 -23
  141. data/lib/ory-oathkeeper-client/models/get_well_known_unauthorized_body.rb +12 -24
  142. data/lib/ory-oathkeeper-client/models/health_not_ready_status.rb +12 -23
  143. data/lib/ory-oathkeeper-client/models/health_status.rb +11 -23
  144. data/lib/ory-oathkeeper-client/models/inline_response500.rb +12 -24
  145. data/lib/ory-oathkeeper-client/models/is_instance_alive_internal_server_error.rb +11 -23
  146. data/lib/ory-oathkeeper-client/models/is_instance_alive_internal_server_error_body.rb +13 -25
  147. data/lib/ory-oathkeeper-client/models/is_instance_alive_ok.rb +11 -23
  148. data/lib/ory-oathkeeper-client/models/json_web_key.rb +24 -23
  149. data/lib/ory-oathkeeper-client/models/json_web_key_set.rb +11 -23
  150. data/lib/ory-oathkeeper-client/models/judge_forbidden.rb +11 -23
  151. data/lib/ory-oathkeeper-client/models/judge_forbidden_body.rb +12 -24
  152. data/lib/ory-oathkeeper-client/models/judge_internal_server_error.rb +11 -23
  153. data/lib/ory-oathkeeper-client/models/judge_internal_server_error_body.rb +12 -24
  154. data/lib/ory-oathkeeper-client/models/judge_not_found.rb +11 -23
  155. data/lib/ory-oathkeeper-client/models/judge_not_found_body.rb +12 -24
  156. data/lib/ory-oathkeeper-client/models/judge_unauthorized.rb +11 -23
  157. data/lib/ory-oathkeeper-client/models/judge_unauthorized_body.rb +12 -24
  158. data/lib/ory-oathkeeper-client/models/list_rules_forbidden.rb +11 -23
  159. data/lib/ory-oathkeeper-client/models/list_rules_forbidden_body.rb +12 -24
  160. data/lib/ory-oathkeeper-client/models/list_rules_internal_server_error.rb +11 -23
  161. data/lib/ory-oathkeeper-client/models/list_rules_internal_server_error_body.rb +13 -25
  162. data/lib/ory-oathkeeper-client/models/list_rules_ok.rb +11 -23
  163. data/lib/ory-oathkeeper-client/models/list_rules_unauthorized.rb +11 -23
  164. data/lib/ory-oathkeeper-client/models/list_rules_unauthorized_body.rb +12 -24
  165. data/lib/ory-oathkeeper-client/models/rule.rb +11 -23
  166. data/lib/ory-oathkeeper-client/models/rule_handler.rb +12 -23
  167. data/lib/ory-oathkeeper-client/models/rule_match.rb +12 -23
  168. data/lib/ory-oathkeeper-client/models/swagger_create_rule_parameters.rb +11 -23
  169. data/lib/ory-oathkeeper-client/models/swagger_get_rule_parameters.rb +11 -23
  170. data/lib/ory-oathkeeper-client/models/swagger_health_status.rb +11 -23
  171. data/lib/ory-oathkeeper-client/models/swagger_json_web_key.rb +11 -23
  172. data/lib/ory-oathkeeper-client/models/swagger_json_web_key_set.rb +11 -23
  173. data/lib/ory-oathkeeper-client/models/swagger_list_rules_parameters.rb +11 -23
  174. data/lib/ory-oathkeeper-client/models/swagger_not_ready_status.rb +11 -23
  175. data/lib/ory-oathkeeper-client/models/swagger_rule.rb +11 -23
  176. data/lib/ory-oathkeeper-client/models/swagger_rule_handler.rb +11 -23
  177. data/lib/ory-oathkeeper-client/models/swagger_rule_match.rb +11 -23
  178. data/lib/ory-oathkeeper-client/models/swagger_rule_response.rb +11 -23
  179. data/lib/ory-oathkeeper-client/models/swagger_rules_response.rb +11 -23
  180. data/lib/ory-oathkeeper-client/models/swagger_update_rule_parameters.rb +11 -23
  181. data/lib/ory-oathkeeper-client/models/swagger_version.rb +11 -23
  182. data/lib/ory-oathkeeper-client/models/update_rule_forbidden.rb +11 -23
  183. data/lib/ory-oathkeeper-client/models/update_rule_forbidden_body.rb +12 -24
  184. data/lib/ory-oathkeeper-client/models/update_rule_internal_server_error.rb +11 -23
  185. data/lib/ory-oathkeeper-client/models/update_rule_internal_server_error_body.rb +12 -24
  186. data/lib/ory-oathkeeper-client/models/update_rule_not_found.rb +11 -23
  187. data/lib/ory-oathkeeper-client/models/update_rule_not_found_body.rb +12 -24
  188. data/lib/ory-oathkeeper-client/models/update_rule_ok.rb +11 -23
  189. data/lib/ory-oathkeeper-client/models/update_rule_unauthorized.rb +11 -23
  190. data/lib/ory-oathkeeper-client/models/update_rule_unauthorized_body.rb +12 -24
  191. data/lib/ory-oathkeeper-client/models/upstream.rb +12 -24
  192. data/lib/ory-oathkeeper-client/models/version.rb +12 -23
  193. data/lib/ory-oathkeeper-client/version.rb +4 -4
  194. data/lib/ory-oathkeeper-client.rb +6 -76
  195. data/ory-oathkeeper-client.gemspec +6 -5
  196. data/spec/api/health_api_spec.rb +2 -2
  197. data/spec/api/version_api_spec.rb +2 -2
  198. data/spec/api_client_spec.rb +32 -32
  199. data/spec/configuration_spec.rb +5 -5
  200. data/spec/spec_helper.rb +2 -2
  201. metadata +99 -79
@@ -1,28 +1,27 @@
1
- # OryOathkeeperClient::UpdateRuleNotFoundBody
1
+ # OryHydraClient::UpdateRuleNotFoundBody
2
2
 
3
3
  ## Properties
4
4
 
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **code** | **Integer** | code | [optional] |
8
- | **details** | **Array<Object>** | details | [optional] |
9
- | **message** | **String** | message | [optional] |
10
- | **reason** | **String** | reason | [optional] |
11
- | **request** | **String** | request | [optional] |
12
- | **status** | **String** | status | [optional] |
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **code** | **Integer** | code | [optional]
8
+ **details** | **Array<Hash<String, Object>>** | details | [optional]
9
+ **message** | **String** | message | [optional]
10
+ **reason** | **String** | reason | [optional]
11
+ **request** | **String** | request | [optional]
12
+ **status** | **String** | status | [optional]
13
13
 
14
- ## Example
14
+ ## Code Sample
15
15
 
16
16
  ```ruby
17
- require 'ory-oathkeeper-client'
17
+ require 'OryHydraClient'
18
18
 
19
- instance = OryOathkeeperClient::UpdateRuleNotFoundBody.new(
20
- code: null,
21
- details: null,
22
- message: null,
23
- reason: null,
24
- request: null,
25
- status: null
26
- )
19
+ instance = OryHydraClient::UpdateRuleNotFoundBody.new(code: null,
20
+ details: null,
21
+ message: null,
22
+ reason: null,
23
+ request: null,
24
+ status: null)
27
25
  ```
28
26
 
27
+
data/docs/UpdateRuleOK.md CHANGED
@@ -1,18 +1,17 @@
1
- # OryOathkeeperClient::UpdateRuleOK
1
+ # OryHydraClient::UpdateRuleOK
2
2
 
3
3
  ## Properties
4
4
 
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **payload** | [**SwaggerRule**](SwaggerRule.md) | | [optional] |
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **payload** | [**SwaggerRule**](SwaggerRule.md) | | [optional]
8
8
 
9
- ## Example
9
+ ## Code Sample
10
10
 
11
11
  ```ruby
12
- require 'ory-oathkeeper-client'
12
+ require 'OryHydraClient'
13
13
 
14
- instance = OryOathkeeperClient::UpdateRuleOK.new(
15
- payload: null
16
- )
14
+ instance = OryHydraClient::UpdateRuleOK.new(payload: null)
17
15
  ```
18
16
 
17
+
@@ -1,18 +1,17 @@
1
- # OryOathkeeperClient::UpdateRuleUnauthorized
1
+ # OryHydraClient::UpdateRuleUnauthorized
2
2
 
3
3
  ## Properties
4
4
 
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **payload** | [**UpdateRuleUnauthorizedBody**](UpdateRuleUnauthorizedBody.md) | | [optional] |
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **payload** | [**UpdateRuleUnauthorizedBody**](UpdateRuleUnauthorizedBody.md) | | [optional]
8
8
 
9
- ## Example
9
+ ## Code Sample
10
10
 
11
11
  ```ruby
12
- require 'ory-oathkeeper-client'
12
+ require 'OryHydraClient'
13
13
 
14
- instance = OryOathkeeperClient::UpdateRuleUnauthorized.new(
15
- payload: null
16
- )
14
+ instance = OryHydraClient::UpdateRuleUnauthorized.new(payload: null)
17
15
  ```
18
16
 
17
+
@@ -1,28 +1,27 @@
1
- # OryOathkeeperClient::UpdateRuleUnauthorizedBody
1
+ # OryHydraClient::UpdateRuleUnauthorizedBody
2
2
 
3
3
  ## Properties
4
4
 
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **code** | **Integer** | code | [optional] |
8
- | **details** | **Array<Object>** | details | [optional] |
9
- | **message** | **String** | message | [optional] |
10
- | **reason** | **String** | reason | [optional] |
11
- | **request** | **String** | request | [optional] |
12
- | **status** | **String** | status | [optional] |
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **code** | **Integer** | code | [optional]
8
+ **details** | **Array<Hash<String, Object>>** | details | [optional]
9
+ **message** | **String** | message | [optional]
10
+ **reason** | **String** | reason | [optional]
11
+ **request** | **String** | request | [optional]
12
+ **status** | **String** | status | [optional]
13
13
 
14
- ## Example
14
+ ## Code Sample
15
15
 
16
16
  ```ruby
17
- require 'ory-oathkeeper-client'
17
+ require 'OryHydraClient'
18
18
 
19
- instance = OryOathkeeperClient::UpdateRuleUnauthorizedBody.new(
20
- code: null,
21
- details: null,
22
- message: null,
23
- reason: null,
24
- request: null,
25
- status: null
26
- )
19
+ instance = OryHydraClient::UpdateRuleUnauthorizedBody.new(code: null,
20
+ details: null,
21
+ message: null,
22
+ reason: null,
23
+ request: null,
24
+ status: null)
27
25
  ```
28
26
 
27
+
data/docs/Upstream.md CHANGED
@@ -1,22 +1,21 @@
1
- # OryOathkeeperClient::Upstream
1
+ # OryHydraClient::Upstream
2
2
 
3
3
  ## Properties
4
4
 
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **preserve_host** | **Boolean** | PreserveHost, if false (the default), tells ORY Oathkeeper to set the upstream request's Host header to the hostname of the API's upstream's URL. Setting this flag to true instructs ORY Oathkeeper not to do so. | [optional] |
8
- | **strip_path** | **String** | StripPath if set, replaces the provided path prefix when forwarding the requested URL to the upstream URL. | [optional] |
9
- | **url** | **String** | URL is the URL the request will be proxied to. | [optional] |
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **preserve_host** | **Boolean** | PreserveHost, if false (the default), tells ORY Oathkeeper to set the upstream request's Host header to the hostname of the API's upstream's URL. Setting this flag to true instructs ORY Oathkeeper not to do so. | [optional]
8
+ **strip_path** | **String** | StripPath if set, replaces the provided path prefix when forwarding the requested URL to the upstream URL. | [optional]
9
+ **url** | **String** | URL is the URL the request will be proxied to. | [optional]
10
10
 
11
- ## Example
11
+ ## Code Sample
12
12
 
13
13
  ```ruby
14
- require 'ory-oathkeeper-client'
14
+ require 'OryHydraClient'
15
15
 
16
- instance = OryOathkeeperClient::Upstream.new(
17
- preserve_host: null,
18
- strip_path: null,
19
- url: null
20
- )
16
+ instance = OryHydraClient::Upstream.new(preserve_host: null,
17
+ strip_path: null,
18
+ url: null)
21
19
  ```
22
20
 
21
+
data/docs/Version.md CHANGED
@@ -1,18 +1,17 @@
1
- # OryOathkeeperClient::Version
1
+ # OryHydraClient::Version
2
2
 
3
3
  ## Properties
4
4
 
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **version** | **String** | Version is the service's version. | [optional] |
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **version** | **String** | Version is the service's version. | [optional]
8
8
 
9
- ## Example
9
+ ## Code Sample
10
10
 
11
11
  ```ruby
12
- require 'ory-oathkeeper-client'
12
+ require 'OryHydraClient'
13
13
 
14
- instance = OryOathkeeperClient::Version.new(
15
- version: null
16
- )
14
+ instance = OryHydraClient::Version.new(version: null)
17
15
  ```
18
16
 
17
+
@@ -3,16 +3,16 @@
3
3
 
4
4
  #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.
5
5
 
6
- The version of the OpenAPI document: v0.0.0-alpha.62
6
+ The version of the OpenAPI document: Latest
7
7
  Contact: hi@ory.am
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 4.2.2
10
10
 
11
11
  =end
12
12
 
13
13
  require 'cgi'
14
14
 
15
- module OryOathkeeperClient
15
+ module OryHydraClient
16
16
  class ApiApi
17
17
  attr_accessor :api_client
18
18
 
@@ -51,16 +51,15 @@ module OryOathkeeperClient
51
51
  form_params = opts[:form_params] || {}
52
52
 
53
53
  # http body (model)
54
- post_body = opts[:debug_body]
54
+ post_body = opts[:body]
55
55
 
56
56
  # return_type
57
- return_type = opts[:debug_return_type]
57
+ return_type = opts[:return_type]
58
58
 
59
59
  # auth_names
60
- auth_names = opts[:debug_auth_names] || []
60
+ auth_names = opts[:auth_names] || []
61
61
 
62
62
  new_options = opts.merge(
63
- :operation => :"ApiApi.decisions",
64
63
  :header_params => header_params,
65
64
  :query_params => query_params,
66
65
  :form_params => form_params,
@@ -114,16 +113,15 @@ module OryOathkeeperClient
114
113
  form_params = opts[:form_params] || {}
115
114
 
116
115
  # http body (model)
117
- post_body = opts[:debug_body]
116
+ post_body = opts[:body]
118
117
 
119
118
  # return_type
120
- return_type = opts[:debug_return_type] || 'Rule'
119
+ return_type = opts[:return_type] || 'Rule'
121
120
 
122
121
  # auth_names
123
- auth_names = opts[:debug_auth_names] || []
122
+ auth_names = opts[:auth_names] || []
124
123
 
125
124
  new_options = opts.merge(
126
- :operation => :"ApiApi.get_rule",
127
125
  :header_params => header_params,
128
126
  :query_params => query_params,
129
127
  :form_params => form_params,
@@ -139,63 +137,6 @@ module OryOathkeeperClient
139
137
  return data, status_code, headers
140
138
  end
141
139
 
142
- # Get service version
143
- # 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.
144
- # @param [Hash] opts the optional parameters
145
- # @return [Version]
146
- def get_version(opts = {})
147
- data, _status_code, _headers = get_version_with_http_info(opts)
148
- data
149
- end
150
-
151
- # Get service version
152
- # 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.
153
- # @param [Hash] opts the optional parameters
154
- # @return [Array<(Version, Integer, Hash)>] Version data, response status code and response headers
155
- def get_version_with_http_info(opts = {})
156
- if @api_client.config.debugging
157
- @api_client.config.logger.debug 'Calling API: ApiApi.get_version ...'
158
- end
159
- # resource path
160
- local_var_path = '/version'
161
-
162
- # query parameters
163
- query_params = opts[:query_params] || {}
164
-
165
- # header parameters
166
- header_params = opts[:header_params] || {}
167
- # HTTP header 'Accept' (if needed)
168
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
169
-
170
- # form parameters
171
- form_params = opts[:form_params] || {}
172
-
173
- # http body (model)
174
- post_body = opts[:debug_body]
175
-
176
- # return_type
177
- return_type = opts[:debug_return_type] || 'Version'
178
-
179
- # auth_names
180
- auth_names = opts[:debug_auth_names] || []
181
-
182
- new_options = opts.merge(
183
- :operation => :"ApiApi.get_version",
184
- :header_params => header_params,
185
- :query_params => query_params,
186
- :form_params => form_params,
187
- :body => post_body,
188
- :auth_names => auth_names,
189
- :return_type => return_type
190
- )
191
-
192
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
193
- if @api_client.config.debugging
194
- @api_client.config.logger.debug "API called: ApiApi#get_version\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
195
- end
196
- return data, status_code, headers
197
- end
198
-
199
140
  # Lists cryptographic keys
200
141
  # This endpoint returns cryptographic keys that are required to, for example, verify signatures of ID Tokens.
201
142
  # @param [Hash] opts the optional parameters
@@ -228,16 +169,15 @@ module OryOathkeeperClient
228
169
  form_params = opts[:form_params] || {}
229
170
 
230
171
  # http body (model)
231
- post_body = opts[:debug_body]
172
+ post_body = opts[:body]
232
173
 
233
174
  # return_type
234
- return_type = opts[:debug_return_type] || 'JsonWebKeySet'
175
+ return_type = opts[:return_type] || 'JsonWebKeySet'
235
176
 
236
177
  # auth_names
237
- auth_names = opts[:debug_auth_names] || []
178
+ auth_names = opts[:auth_names] || []
238
179
 
239
180
  new_options = opts.merge(
240
- :operation => :"ApiApi.get_well_known_json_web_keys",
241
181
  :header_params => header_params,
242
182
  :query_params => query_params,
243
183
  :form_params => form_params,
@@ -253,120 +193,6 @@ module OryOathkeeperClient
253
193
  return data, status_code, headers
254
194
  end
255
195
 
256
- # Check alive status
257
- # 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.
258
- # @param [Hash] opts the optional parameters
259
- # @return [HealthStatus]
260
- def is_instance_alive(opts = {})
261
- data, _status_code, _headers = is_instance_alive_with_http_info(opts)
262
- data
263
- end
264
-
265
- # Check alive status
266
- # 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 &#x60;X-Forwarded-Proto&#x60; 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.
267
- # @param [Hash] opts the optional parameters
268
- # @return [Array<(HealthStatus, Integer, Hash)>] HealthStatus data, response status code and response headers
269
- def is_instance_alive_with_http_info(opts = {})
270
- if @api_client.config.debugging
271
- @api_client.config.logger.debug 'Calling API: ApiApi.is_instance_alive ...'
272
- end
273
- # resource path
274
- local_var_path = '/health/alive'
275
-
276
- # query parameters
277
- query_params = opts[:query_params] || {}
278
-
279
- # header parameters
280
- header_params = opts[:header_params] || {}
281
- # HTTP header 'Accept' (if needed)
282
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
283
-
284
- # form parameters
285
- form_params = opts[:form_params] || {}
286
-
287
- # http body (model)
288
- post_body = opts[:debug_body]
289
-
290
- # return_type
291
- return_type = opts[:debug_return_type] || 'HealthStatus'
292
-
293
- # auth_names
294
- auth_names = opts[:debug_auth_names] || []
295
-
296
- new_options = opts.merge(
297
- :operation => :"ApiApi.is_instance_alive",
298
- :header_params => header_params,
299
- :query_params => query_params,
300
- :form_params => form_params,
301
- :body => post_body,
302
- :auth_names => auth_names,
303
- :return_type => return_type
304
- )
305
-
306
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
307
- if @api_client.config.debugging
308
- @api_client.config.logger.debug "API called: ApiApi#is_instance_alive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
309
- end
310
- return data, status_code, headers
311
- end
312
-
313
- # Check readiness status
314
- # 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.
315
- # @param [Hash] opts the optional parameters
316
- # @return [HealthStatus]
317
- def is_instance_ready(opts = {})
318
- data, _status_code, _headers = is_instance_ready_with_http_info(opts)
319
- data
320
- end
321
-
322
- # Check readiness status
323
- # 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 &#x60;X-Forwarded-Proto&#x60; 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.
324
- # @param [Hash] opts the optional parameters
325
- # @return [Array<(HealthStatus, Integer, Hash)>] HealthStatus data, response status code and response headers
326
- def is_instance_ready_with_http_info(opts = {})
327
- if @api_client.config.debugging
328
- @api_client.config.logger.debug 'Calling API: ApiApi.is_instance_ready ...'
329
- end
330
- # resource path
331
- local_var_path = '/health/ready'
332
-
333
- # query parameters
334
- query_params = opts[:query_params] || {}
335
-
336
- # header parameters
337
- header_params = opts[:header_params] || {}
338
- # HTTP header 'Accept' (if needed)
339
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
340
-
341
- # form parameters
342
- form_params = opts[:form_params] || {}
343
-
344
- # http body (model)
345
- post_body = opts[:debug_body]
346
-
347
- # return_type
348
- return_type = opts[:debug_return_type] || 'HealthStatus'
349
-
350
- # auth_names
351
- auth_names = opts[:debug_auth_names] || []
352
-
353
- new_options = opts.merge(
354
- :operation => :"ApiApi.is_instance_ready",
355
- :header_params => header_params,
356
- :query_params => query_params,
357
- :form_params => form_params,
358
- :body => post_body,
359
- :auth_names => auth_names,
360
- :return_type => return_type
361
- )
362
-
363
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
364
- if @api_client.config.debugging
365
- @api_client.config.logger.debug "API called: ApiApi#is_instance_ready\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
366
- end
367
- return data, status_code, headers
368
- end
369
-
370
196
  # List all rules
371
197
  # 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.
372
198
  # @param [Hash] opts the optional parameters
@@ -405,16 +231,15 @@ module OryOathkeeperClient
405
231
  form_params = opts[:form_params] || {}
406
232
 
407
233
  # http body (model)
408
- post_body = opts[:debug_body]
234
+ post_body = opts[:body]
409
235
 
410
236
  # return_type
411
- return_type = opts[:debug_return_type] || 'Array<Rule>'
237
+ return_type = opts[:return_type] || 'Array<Rule>'
412
238
 
413
239
  # auth_names
414
- auth_names = opts[:debug_auth_names] || []
240
+ auth_names = opts[:auth_names] || []
415
241
 
416
242
  new_options = opts.merge(
417
- :operation => :"ApiApi.list_rules",
418
243
  :header_params => header_params,
419
244
  :query_params => query_params,
420
245
  :form_params => form_params,
@@ -3,10 +3,10 @@
3
3
 
4
4
  #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.
5
5
 
6
- The version of the OpenAPI document: v0.38.5-beta.1
6
+ The version of the OpenAPI document: Latest
7
7
  Contact: hi@ory.am
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ OpenAPI Generator version: 4.2.2
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #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.
5
5
 
6
- The version of the OpenAPI document: v0.38.5-beta.1
6
+ The version of the OpenAPI document: Latest
7
7
  Contact: hi@ory.am
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ OpenAPI Generator version: 4.2.2
10
10
 
11
11
  =end
12
12