ory-keto-client 0.4.0.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (221) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +129 -0
  4. data/Rakefile +10 -0
  5. data/docs/AddOryAccessControlPolicyRoleMembers.md +21 -0
  6. data/docs/AddOryAccessControlPolicyRoleMembersBody.md +17 -0
  7. data/docs/AddOryAccessControlPolicyRoleMembersInternalServerError.md +17 -0
  8. data/docs/AddOryAccessControlPolicyRoleMembersInternalServerErrorBody.md +27 -0
  9. data/docs/AddOryAccessControlPolicyRoleMembersOK.md +17 -0
  10. data/docs/AuthorizationResult.md +17 -0
  11. data/docs/DeleteOryAccessControlPolicy.md +19 -0
  12. data/docs/DeleteOryAccessControlPolicyInternalServerError.md +17 -0
  13. data/docs/DeleteOryAccessControlPolicyInternalServerErrorBody.md +27 -0
  14. data/docs/DeleteOryAccessControlPolicyRole.md +19 -0
  15. data/docs/DeleteOryAccessControlPolicyRoleInternalServerError.md +17 -0
  16. data/docs/DeleteOryAccessControlPolicyRoleInternalServerErrorBody.md +27 -0
  17. data/docs/DoOryAccessControlPoliciesAllow.md +19 -0
  18. data/docs/DoOryAccessControlPoliciesAllowForbidden.md +17 -0
  19. data/docs/DoOryAccessControlPoliciesAllowInternalServerError.md +17 -0
  20. data/docs/DoOryAccessControlPoliciesAllowInternalServerErrorBody.md +27 -0
  21. data/docs/DoOryAccessControlPoliciesAllowOK.md +17 -0
  22. data/docs/EnginesApi.md +579 -0
  23. data/docs/GetOryAccessControlPolicy.md +19 -0
  24. data/docs/GetOryAccessControlPolicyInternalServerError.md +17 -0
  25. data/docs/GetOryAccessControlPolicyInternalServerErrorBody.md +27 -0
  26. data/docs/GetOryAccessControlPolicyNotFound.md +17 -0
  27. data/docs/GetOryAccessControlPolicyNotFoundBody.md +27 -0
  28. data/docs/GetOryAccessControlPolicyOK.md +17 -0
  29. data/docs/GetOryAccessControlPolicyRole.md +19 -0
  30. data/docs/GetOryAccessControlPolicyRoleInternalServerError.md +17 -0
  31. data/docs/GetOryAccessControlPolicyRoleInternalServerErrorBody.md +27 -0
  32. data/docs/GetOryAccessControlPolicyRoleNotFound.md +17 -0
  33. data/docs/GetOryAccessControlPolicyRoleNotFoundBody.md +27 -0
  34. data/docs/GetOryAccessControlPolicyRoleOK.md +17 -0
  35. data/docs/HealthApi.md +96 -0
  36. data/docs/HealthNotReadyStatus.md +17 -0
  37. data/docs/HealthStatus.md +17 -0
  38. data/docs/InlineResponse500.md +27 -0
  39. data/docs/Input.md +23 -0
  40. data/docs/IsInstanceAliveInternalServerError.md +17 -0
  41. data/docs/IsInstanceAliveInternalServerErrorBody.md +27 -0
  42. data/docs/IsInstanceAliveOK.md +17 -0
  43. data/docs/ListOryAccessControlPolicies.md +21 -0
  44. data/docs/ListOryAccessControlPoliciesInternalServerError.md +17 -0
  45. data/docs/ListOryAccessControlPoliciesInternalServerErrorBody.md +27 -0
  46. data/docs/ListOryAccessControlPoliciesOK.md +17 -0
  47. data/docs/ListOryAccessControlPolicyRoles.md +21 -0
  48. data/docs/ListOryAccessControlPolicyRolesInternalServerError.md +17 -0
  49. data/docs/ListOryAccessControlPolicyRolesInternalServerErrorBody.md +27 -0
  50. data/docs/ListOryAccessControlPolicyRolesOK.md +17 -0
  51. data/docs/OryAccessControlPolicies.md +17 -0
  52. data/docs/OryAccessControlPolicy.md +29 -0
  53. data/docs/OryAccessControlPolicyAllowedInput.md +23 -0
  54. data/docs/OryAccessControlPolicyRole.md +19 -0
  55. data/docs/OryAccessControlPolicyRoles.md +17 -0
  56. data/docs/Policy.md +29 -0
  57. data/docs/RemoveOryAccessControlPolicyRoleMembers.md +21 -0
  58. data/docs/RemoveOryAccessControlPolicyRoleMembersInternalServerError.md +17 -0
  59. data/docs/RemoveOryAccessControlPolicyRoleMembersInternalServerErrorBody.md +27 -0
  60. data/docs/Role.md +19 -0
  61. data/docs/SwaggerHealthStatus.md +17 -0
  62. data/docs/SwaggerNotReadyStatus.md +17 -0
  63. data/docs/SwaggerVersion.md +17 -0
  64. data/docs/UpsertOryAccessControlPolicy.md +19 -0
  65. data/docs/UpsertOryAccessControlPolicyInternalServerError.md +17 -0
  66. data/docs/UpsertOryAccessControlPolicyInternalServerErrorBody.md +27 -0
  67. data/docs/UpsertOryAccessControlPolicyOK.md +17 -0
  68. data/docs/UpsertOryAccessControlPolicyRole.md +19 -0
  69. data/docs/UpsertOryAccessControlPolicyRoleInternalServerError.md +17 -0
  70. data/docs/UpsertOryAccessControlPolicyRoleInternalServerErrorBody.md +27 -0
  71. data/docs/UpsertOryAccessControlPolicyRoleOK.md +17 -0
  72. data/docs/Version.md +17 -0
  73. data/docs/VersionApi.md +52 -0
  74. data/lib/ory-keto-client.rb +65 -0
  75. data/lib/ory-keto-client/api/engines_api.rb +778 -0
  76. data/lib/ory-keto-client/api/health_api.rb +134 -0
  77. data/lib/ory-keto-client/api/version_api.rb +78 -0
  78. data/lib/ory-keto-client/api_client.rb +385 -0
  79. data/lib/ory-keto-client/api_error.rb +57 -0
  80. data/lib/ory-keto-client/configuration.rb +241 -0
  81. data/lib/ory-keto-client/models/add_ory_access_control_policy_role_members.rb +237 -0
  82. data/lib/ory-keto-client/models/add_ory_access_control_policy_role_members_body.rb +209 -0
  83. data/lib/ory-keto-client/models/add_ory_access_control_policy_role_members_internal_server_error.rb +207 -0
  84. data/lib/ory-keto-client/models/add_ory_access_control_policy_role_members_internal_server_error_body.rb +260 -0
  85. data/lib/ory-keto-client/models/add_ory_access_control_policy_role_members_ok.rb +207 -0
  86. data/lib/ory-keto-client/models/authorization_result.rb +212 -0
  87. data/lib/ory-keto-client/models/delete_ory_access_control_policy.rb +228 -0
  88. data/lib/ory-keto-client/models/delete_ory_access_control_policy_internal_server_error.rb +207 -0
  89. data/lib/ory-keto-client/models/delete_ory_access_control_policy_internal_server_error_body.rb +260 -0
  90. data/lib/ory-keto-client/models/delete_ory_access_control_policy_role.rb +228 -0
  91. data/lib/ory-keto-client/models/delete_ory_access_control_policy_role_internal_server_error.rb +207 -0
  92. data/lib/ory-keto-client/models/delete_ory_access_control_policy_role_internal_server_error_body.rb +260 -0
  93. data/lib/ory-keto-client/models/do_ory_access_control_policies_allow.rb +222 -0
  94. data/lib/ory-keto-client/models/do_ory_access_control_policies_allow_forbidden.rb +207 -0
  95. data/lib/ory-keto-client/models/do_ory_access_control_policies_allow_internal_server_error.rb +207 -0
  96. data/lib/ory-keto-client/models/do_ory_access_control_policies_allow_internal_server_error_body.rb +260 -0
  97. data/lib/ory-keto-client/models/do_ory_access_control_policies_allow_ok.rb +207 -0
  98. data/lib/ory-keto-client/models/get_ory_access_control_policy.rb +228 -0
  99. data/lib/ory-keto-client/models/get_ory_access_control_policy_internal_server_error.rb +207 -0
  100. data/lib/ory-keto-client/models/get_ory_access_control_policy_internal_server_error_body.rb +260 -0
  101. data/lib/ory-keto-client/models/get_ory_access_control_policy_not_found.rb +207 -0
  102. data/lib/ory-keto-client/models/get_ory_access_control_policy_not_found_body.rb +260 -0
  103. data/lib/ory-keto-client/models/get_ory_access_control_policy_ok.rb +207 -0
  104. data/lib/ory-keto-client/models/get_ory_access_control_policy_role.rb +228 -0
  105. data/lib/ory-keto-client/models/get_ory_access_control_policy_role_internal_server_error.rb +207 -0
  106. data/lib/ory-keto-client/models/get_ory_access_control_policy_role_internal_server_error_body.rb +260 -0
  107. data/lib/ory-keto-client/models/get_ory_access_control_policy_role_not_found.rb +207 -0
  108. data/lib/ory-keto-client/models/get_ory_access_control_policy_role_not_found_body.rb +260 -0
  109. data/lib/ory-keto-client/models/get_ory_access_control_policy_role_ok.rb +207 -0
  110. data/lib/ory-keto-client/models/health_not_ready_status.rb +209 -0
  111. data/lib/ory-keto-client/models/health_status.rb +207 -0
  112. data/lib/ory-keto-client/models/inline_response500.rb +253 -0
  113. data/lib/ory-keto-client/models/input.rb +239 -0
  114. data/lib/ory-keto-client/models/is_instance_alive_internal_server_error.rb +207 -0
  115. data/lib/ory-keto-client/models/is_instance_alive_internal_server_error_body.rb +260 -0
  116. data/lib/ory-keto-client/models/is_instance_alive_ok.rb +207 -0
  117. data/lib/ory-keto-client/models/list_ory_access_control_policies.rb +233 -0
  118. data/lib/ory-keto-client/models/list_ory_access_control_policies_internal_server_error.rb +207 -0
  119. data/lib/ory-keto-client/models/list_ory_access_control_policies_internal_server_error_body.rb +260 -0
  120. data/lib/ory-keto-client/models/list_ory_access_control_policies_ok.rb +210 -0
  121. data/lib/ory-keto-client/models/list_ory_access_control_policy_roles.rb +233 -0
  122. data/lib/ory-keto-client/models/list_ory_access_control_policy_roles_internal_server_error.rb +207 -0
  123. data/lib/ory-keto-client/models/list_ory_access_control_policy_roles_internal_server_error_body.rb +260 -0
  124. data/lib/ory-keto-client/models/list_ory_access_control_policy_roles_ok.rb +210 -0
  125. data/lib/ory-keto-client/models/ory_access_control_policies.rb +209 -0
  126. data/lib/ory-keto-client/models/ory_access_control_policy.rb +275 -0
  127. data/lib/ory-keto-client/models/ory_access_control_policy_allowed_input.rb +239 -0
  128. data/lib/ory-keto-client/models/ory_access_control_policy_role.rb +220 -0
  129. data/lib/ory-keto-client/models/ory_access_control_policy_roles.rb +209 -0
  130. data/lib/ory-keto-client/models/policy.rb +275 -0
  131. data/lib/ory-keto-client/models/remove_ory_access_control_policy_role_members.rb +243 -0
  132. data/lib/ory-keto-client/models/remove_ory_access_control_policy_role_members_internal_server_error.rb +207 -0
  133. data/lib/ory-keto-client/models/remove_ory_access_control_policy_role_members_internal_server_error_body.rb +260 -0
  134. data/lib/ory-keto-client/models/role.rb +220 -0
  135. data/lib/ory-keto-client/models/swagger_health_status.rb +208 -0
  136. data/lib/ory-keto-client/models/swagger_not_ready_status.rb +210 -0
  137. data/lib/ory-keto-client/models/swagger_version.rb +208 -0
  138. data/lib/ory-keto-client/models/upsert_ory_access_control_policy.rb +222 -0
  139. data/lib/ory-keto-client/models/upsert_ory_access_control_policy_internal_server_error.rb +207 -0
  140. data/lib/ory-keto-client/models/upsert_ory_access_control_policy_internal_server_error_body.rb +260 -0
  141. data/lib/ory-keto-client/models/upsert_ory_access_control_policy_ok.rb +207 -0
  142. data/lib/ory-keto-client/models/upsert_ory_access_control_policy_role.rb +222 -0
  143. data/lib/ory-keto-client/models/upsert_ory_access_control_policy_role_internal_server_error.rb +207 -0
  144. data/lib/ory-keto-client/models/upsert_ory_access_control_policy_role_internal_server_error_body.rb +260 -0
  145. data/lib/ory-keto-client/models/upsert_ory_access_control_policy_role_ok.rb +207 -0
  146. data/lib/ory-keto-client/models/version.rb +208 -0
  147. data/lib/ory-keto-client/version.rb +15 -0
  148. data/ory-keto-client.gemspec +39 -0
  149. data/spec/api/engines_api_spec.rb +182 -0
  150. data/spec/api/health_api_spec.rb +57 -0
  151. data/spec/api/version_api_spec.rb +46 -0
  152. data/spec/api_client_spec.rb +226 -0
  153. data/spec/configuration_spec.rb +42 -0
  154. data/spec/models/add_ory_access_control_policy_role_members_body_spec.rb +41 -0
  155. data/spec/models/add_ory_access_control_policy_role_members_internal_server_error_body_spec.rb +71 -0
  156. data/spec/models/add_ory_access_control_policy_role_members_internal_server_error_spec.rb +41 -0
  157. data/spec/models/add_ory_access_control_policy_role_members_ok_spec.rb +41 -0
  158. data/spec/models/add_ory_access_control_policy_role_members_spec.rb +53 -0
  159. data/spec/models/authorization_result_spec.rb +41 -0
  160. data/spec/models/delete_ory_access_control_policy_internal_server_error_body_spec.rb +71 -0
  161. data/spec/models/delete_ory_access_control_policy_internal_server_error_spec.rb +41 -0
  162. data/spec/models/delete_ory_access_control_policy_role_internal_server_error_body_spec.rb +71 -0
  163. data/spec/models/delete_ory_access_control_policy_role_internal_server_error_spec.rb +41 -0
  164. data/spec/models/delete_ory_access_control_policy_role_spec.rb +47 -0
  165. data/spec/models/delete_ory_access_control_policy_spec.rb +47 -0
  166. data/spec/models/do_ory_access_control_policies_allow_forbidden_spec.rb +41 -0
  167. data/spec/models/do_ory_access_control_policies_allow_internal_server_error_body_spec.rb +71 -0
  168. data/spec/models/do_ory_access_control_policies_allow_internal_server_error_spec.rb +41 -0
  169. data/spec/models/do_ory_access_control_policies_allow_ok_spec.rb +41 -0
  170. data/spec/models/do_ory_access_control_policies_allow_spec.rb +47 -0
  171. data/spec/models/get_ory_access_control_policy_internal_server_error_body_spec.rb +71 -0
  172. data/spec/models/get_ory_access_control_policy_internal_server_error_spec.rb +41 -0
  173. data/spec/models/get_ory_access_control_policy_not_found_body_spec.rb +71 -0
  174. data/spec/models/get_ory_access_control_policy_not_found_spec.rb +41 -0
  175. data/spec/models/get_ory_access_control_policy_ok_spec.rb +41 -0
  176. data/spec/models/get_ory_access_control_policy_role_internal_server_error_body_spec.rb +71 -0
  177. data/spec/models/get_ory_access_control_policy_role_internal_server_error_spec.rb +41 -0
  178. data/spec/models/get_ory_access_control_policy_role_not_found_body_spec.rb +71 -0
  179. data/spec/models/get_ory_access_control_policy_role_not_found_spec.rb +41 -0
  180. data/spec/models/get_ory_access_control_policy_role_ok_spec.rb +41 -0
  181. data/spec/models/get_ory_access_control_policy_role_spec.rb +47 -0
  182. data/spec/models/get_ory_access_control_policy_spec.rb +47 -0
  183. data/spec/models/health_not_ready_status_spec.rb +41 -0
  184. data/spec/models/health_status_spec.rb +41 -0
  185. data/spec/models/inline_response500_spec.rb +71 -0
  186. data/spec/models/input_spec.rb +59 -0
  187. data/spec/models/is_instance_alive_internal_server_error_body_spec.rb +71 -0
  188. data/spec/models/is_instance_alive_internal_server_error_spec.rb +41 -0
  189. data/spec/models/is_instance_alive_ok_spec.rb +41 -0
  190. data/spec/models/list_ory_access_control_policies_internal_server_error_body_spec.rb +71 -0
  191. data/spec/models/list_ory_access_control_policies_internal_server_error_spec.rb +41 -0
  192. data/spec/models/list_ory_access_control_policies_ok_spec.rb +41 -0
  193. data/spec/models/list_ory_access_control_policies_spec.rb +53 -0
  194. data/spec/models/list_ory_access_control_policy_roles_internal_server_error_body_spec.rb +71 -0
  195. data/spec/models/list_ory_access_control_policy_roles_internal_server_error_spec.rb +41 -0
  196. data/spec/models/list_ory_access_control_policy_roles_ok_spec.rb +41 -0
  197. data/spec/models/list_ory_access_control_policy_roles_spec.rb +53 -0
  198. data/spec/models/ory_access_control_policies_spec.rb +41 -0
  199. data/spec/models/ory_access_control_policy_allowed_input_spec.rb +59 -0
  200. data/spec/models/ory_access_control_policy_role_spec.rb +47 -0
  201. data/spec/models/ory_access_control_policy_roles_spec.rb +41 -0
  202. data/spec/models/ory_access_control_policy_spec.rb +77 -0
  203. data/spec/models/policy_spec.rb +77 -0
  204. data/spec/models/remove_ory_access_control_policy_role_members_internal_server_error_body_spec.rb +71 -0
  205. data/spec/models/remove_ory_access_control_policy_role_members_internal_server_error_spec.rb +41 -0
  206. data/spec/models/remove_ory_access_control_policy_role_members_spec.rb +53 -0
  207. data/spec/models/role_spec.rb +47 -0
  208. data/spec/models/swagger_health_status_spec.rb +41 -0
  209. data/spec/models/swagger_not_ready_status_spec.rb +41 -0
  210. data/spec/models/swagger_version_spec.rb +41 -0
  211. data/spec/models/upsert_ory_access_control_policy_internal_server_error_body_spec.rb +71 -0
  212. data/spec/models/upsert_ory_access_control_policy_internal_server_error_spec.rb +41 -0
  213. data/spec/models/upsert_ory_access_control_policy_ok_spec.rb +41 -0
  214. data/spec/models/upsert_ory_access_control_policy_role_internal_server_error_body_spec.rb +71 -0
  215. data/spec/models/upsert_ory_access_control_policy_role_internal_server_error_spec.rb +41 -0
  216. data/spec/models/upsert_ory_access_control_policy_role_ok_spec.rb +41 -0
  217. data/spec/models/upsert_ory_access_control_policy_role_spec.rb +47 -0
  218. data/spec/models/upsert_ory_access_control_policy_spec.rb +47 -0
  219. data/spec/models/version_spec.rb +41 -0
  220. data/spec/spec_helper.rb +111 -0
  221. metadata +396 -0
@@ -0,0 +1,19 @@
1
+ # OryHydraClient::Role
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **String** | ID is the role's unique id. | [optional]
8
+ **members** | **Array<String>** | Members is who belongs to the role. | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'OryHydraClient'
14
+
15
+ instance = OryHydraClient::Role.new(id: null,
16
+ members: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,17 @@
1
+ # OryHydraClient::SwaggerHealthStatus
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **status** | **String** | Status always contains \"ok\". | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'OryHydraClient'
13
+
14
+ instance = OryHydraClient::SwaggerHealthStatus.new(status: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,17 @@
1
+ # OryHydraClient::SwaggerNotReadyStatus
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **errors** | **Hash<String, String>** | Errors contains a list of errors that caused the not ready status. | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'OryHydraClient'
13
+
14
+ instance = OryHydraClient::SwaggerNotReadyStatus.new(errors: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,17 @@
1
+ # OryHydraClient::SwaggerVersion
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **version** | **String** | Version is the service's version. | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'OryHydraClient'
13
+
14
+ instance = OryHydraClient::SwaggerVersion.new(version: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,19 @@
1
+ # OryHydraClient::UpsertOryAccessControlPolicy
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **body** | [**OryAccessControlPolicy**](OryAccessControlPolicy.md) | | [optional]
8
+ **flavor** | **String** | The ORY Access Control Policy flavor. Can be \"regex\", \"glob\", and \"exact\". in: path |
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'OryHydraClient'
14
+
15
+ instance = OryHydraClient::UpsertOryAccessControlPolicy.new(body: null,
16
+ flavor: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,17 @@
1
+ # OryHydraClient::UpsertOryAccessControlPolicyInternalServerError
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **payload** | [**UpsertOryAccessControlPolicyInternalServerErrorBody**](UpsertOryAccessControlPolicyInternalServerErrorBody.md) | | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'OryHydraClient'
13
+
14
+ instance = OryHydraClient::UpsertOryAccessControlPolicyInternalServerError.new(payload: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,27 @@
1
+ # OryHydraClient::UpsertOryAccessControlPolicyInternalServerErrorBody
2
+
3
+ ## Properties
4
+
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
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'OryHydraClient'
18
+
19
+ instance = OryHydraClient::UpsertOryAccessControlPolicyInternalServerErrorBody.new(code: null,
20
+ details: null,
21
+ message: null,
22
+ reason: null,
23
+ request: null,
24
+ status: null)
25
+ ```
26
+
27
+
@@ -0,0 +1,17 @@
1
+ # OryHydraClient::UpsertOryAccessControlPolicyOK
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **payload** | [**OryAccessControlPolicy**](OryAccessControlPolicy.md) | | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'OryHydraClient'
13
+
14
+ instance = OryHydraClient::UpsertOryAccessControlPolicyOK.new(payload: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,19 @@
1
+ # OryHydraClient::UpsertOryAccessControlPolicyRole
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **body** | [**OryAccessControlPolicyRole**](OryAccessControlPolicyRole.md) | | [optional]
8
+ **flavor** | **String** | The ORY Access Control Policy flavor. Can be \"regex\", \"glob\", and \"exact\". in: path |
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'OryHydraClient'
14
+
15
+ instance = OryHydraClient::UpsertOryAccessControlPolicyRole.new(body: null,
16
+ flavor: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,17 @@
1
+ # OryHydraClient::UpsertOryAccessControlPolicyRoleInternalServerError
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **payload** | [**UpsertOryAccessControlPolicyRoleInternalServerErrorBody**](UpsertOryAccessControlPolicyRoleInternalServerErrorBody.md) | | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'OryHydraClient'
13
+
14
+ instance = OryHydraClient::UpsertOryAccessControlPolicyRoleInternalServerError.new(payload: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,27 @@
1
+ # OryHydraClient::UpsertOryAccessControlPolicyRoleInternalServerErrorBody
2
+
3
+ ## Properties
4
+
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
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'OryHydraClient'
18
+
19
+ instance = OryHydraClient::UpsertOryAccessControlPolicyRoleInternalServerErrorBody.new(code: null,
20
+ details: null,
21
+ message: null,
22
+ reason: null,
23
+ request: null,
24
+ status: null)
25
+ ```
26
+
27
+
@@ -0,0 +1,17 @@
1
+ # OryHydraClient::UpsertOryAccessControlPolicyRoleOK
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **payload** | [**OryAccessControlPolicyRole**](OryAccessControlPolicyRole.md) | | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'OryHydraClient'
13
+
14
+ instance = OryHydraClient::UpsertOryAccessControlPolicyRoleOK.new(payload: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,17 @@
1
+ # OryHydraClient::Version
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **version** | **String** | Version is the service's version. | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'OryHydraClient'
13
+
14
+ instance = OryHydraClient::Version.new(version: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,52 @@
1
+ # OryHydraClient::VersionApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**get_version**](VersionApi.md#get_version) | **GET** /version | Get service version
8
+
9
+
10
+
11
+ ## get_version
12
+
13
+ > Version get_version
14
+
15
+ Get service version
16
+
17
+ 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.
18
+
19
+ ### Example
20
+
21
+ ```ruby
22
+ # load the gem
23
+ require 'ory-keto-client'
24
+
25
+ api_instance = OryHydraClient::VersionApi.new
26
+
27
+ begin
28
+ #Get service version
29
+ result = api_instance.get_version
30
+ p result
31
+ rescue OryHydraClient::ApiError => e
32
+ puts "Exception when calling VersionApi->get_version: #{e}"
33
+ end
34
+ ```
35
+
36
+ ### Parameters
37
+
38
+ This endpoint does not need any parameter.
39
+
40
+ ### Return type
41
+
42
+ [**Version**](Version.md)
43
+
44
+ ### Authorization
45
+
46
+ No authorization required
47
+
48
+ ### HTTP request headers
49
+
50
+ - **Content-Type**: Not defined
51
+ - **Accept**: application/json
52
+
@@ -0,0 +1,65 @@
1
+ =begin
2
+ #ORY Keto
3
+
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
+
6
+ The version of the OpenAPI document: Latest
7
+ Contact: hi@ory.sh
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.2
10
+
11
+ =end
12
+
13
+ # Common files
14
+ require 'ory-keto-client/api_client'
15
+ require 'ory-keto-client/api_error'
16
+ require 'ory-keto-client/version'
17
+ require 'ory-keto-client/configuration'
18
+
19
+ # Models
20
+ require 'ory-keto-client/models/add_ory_access_control_policy_role_members_body'
21
+ require 'ory-keto-client/models/add_ory_access_control_policy_role_members_internal_server_error_body'
22
+ require 'ory-keto-client/models/authorization_result'
23
+ require 'ory-keto-client/models/delete_ory_access_control_policy_internal_server_error_body'
24
+ require 'ory-keto-client/models/delete_ory_access_control_policy_role_internal_server_error_body'
25
+ require 'ory-keto-client/models/do_ory_access_control_policies_allow_internal_server_error_body'
26
+ require 'ory-keto-client/models/get_ory_access_control_policy_internal_server_error_body'
27
+ require 'ory-keto-client/models/get_ory_access_control_policy_not_found_body'
28
+ require 'ory-keto-client/models/get_ory_access_control_policy_role_internal_server_error_body'
29
+ require 'ory-keto-client/models/get_ory_access_control_policy_role_not_found_body'
30
+ require 'ory-keto-client/models/health_not_ready_status'
31
+ require 'ory-keto-client/models/health_status'
32
+ require 'ory-keto-client/models/inline_response500'
33
+ require 'ory-keto-client/models/is_instance_alive_internal_server_error_body'
34
+ require 'ory-keto-client/models/list_ory_access_control_policies_internal_server_error_body'
35
+ require 'ory-keto-client/models/list_ory_access_control_policy_roles_internal_server_error_body'
36
+ require 'ory-keto-client/models/ory_access_control_policy'
37
+ require 'ory-keto-client/models/ory_access_control_policy_allowed_input'
38
+ require 'ory-keto-client/models/ory_access_control_policy_role'
39
+ require 'ory-keto-client/models/remove_ory_access_control_policy_role_members_internal_server_error_body'
40
+ require 'ory-keto-client/models/upsert_ory_access_control_policy_internal_server_error_body'
41
+ require 'ory-keto-client/models/upsert_ory_access_control_policy_role_internal_server_error_body'
42
+ require 'ory-keto-client/models/version'
43
+
44
+ # APIs
45
+ require 'ory-keto-client/api/engines_api'
46
+ require 'ory-keto-client/api/health_api'
47
+ require 'ory-keto-client/api/version_api'
48
+
49
+ module OryHydraClient
50
+ class << self
51
+ # Customize default settings for the SDK using block.
52
+ # OryHydraClient.configure do |config|
53
+ # config.username = "xxx"
54
+ # config.password = "xxx"
55
+ # end
56
+ # If no block given, return the default Configuration object.
57
+ def configure
58
+ if block_given?
59
+ yield(Configuration.default)
60
+ else
61
+ Configuration.default
62
+ end
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,778 @@
1
+ =begin
2
+ #ORY Keto
3
+
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
+
6
+ The version of the OpenAPI document: Latest
7
+ Contact: hi@ory.sh
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.2
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module OryHydraClient
16
+ class EnginesApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Add a member to an ORY Access Control Policy Role
23
+ # Roles group several subjects into one. Rules can be assigned to ORY Access Control Policy (OACP) by using the Role ID as subject in the OACP.
24
+ # @param flavor [String] The ORY Access Control Policy flavor. Can be \&quot;regex\&quot;, \&quot;glob\&quot;, and \&quot;exact\&quot;.
25
+ # @param id [String] The ID of the ORY Access Control Policy Role.
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [AddOryAccessControlPolicyRoleMembersBody] :body
28
+ # @return [OryAccessControlPolicyRole]
29
+ def add_ory_access_control_policy_role_members(flavor, id, opts = {})
30
+ data, _status_code, _headers = add_ory_access_control_policy_role_members_with_http_info(flavor, id, opts)
31
+ data
32
+ end
33
+
34
+ # Add a member to an ORY Access Control Policy Role
35
+ # Roles group several subjects into one. Rules can be assigned to ORY Access Control Policy (OACP) by using the Role ID as subject in the OACP.
36
+ # @param flavor [String] The ORY Access Control Policy flavor. Can be \&quot;regex\&quot;, \&quot;glob\&quot;, and \&quot;exact\&quot;.
37
+ # @param id [String] The ID of the ORY Access Control Policy Role.
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [AddOryAccessControlPolicyRoleMembersBody] :body
40
+ # @return [Array<(OryAccessControlPolicyRole, Integer, Hash)>] OryAccessControlPolicyRole data, response status code and response headers
41
+ def add_ory_access_control_policy_role_members_with_http_info(flavor, id, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: EnginesApi.add_ory_access_control_policy_role_members ...'
44
+ end
45
+ # verify the required parameter 'flavor' is set
46
+ if @api_client.config.client_side_validation && flavor.nil?
47
+ fail ArgumentError, "Missing the required parameter 'flavor' when calling EnginesApi.add_ory_access_control_policy_role_members"
48
+ end
49
+ # verify the required parameter 'id' is set
50
+ if @api_client.config.client_side_validation && id.nil?
51
+ fail ArgumentError, "Missing the required parameter 'id' when calling EnginesApi.add_ory_access_control_policy_role_members"
52
+ end
53
+ # resource path
54
+ local_var_path = '/engines/acp/ory/{flavor}/roles/{id}/members'.sub('{' + 'flavor' + '}', CGI.escape(flavor.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
55
+
56
+ # query parameters
57
+ query_params = opts[:query_params] || {}
58
+
59
+ # header parameters
60
+ header_params = opts[:header_params] || {}
61
+ # HTTP header 'Accept' (if needed)
62
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
63
+ # HTTP header 'Content-Type'
64
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
65
+
66
+ # form parameters
67
+ form_params = opts[:form_params] || {}
68
+
69
+ # http body (model)
70
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
71
+
72
+ # return_type
73
+ return_type = opts[:return_type] || 'OryAccessControlPolicyRole'
74
+
75
+ # auth_names
76
+ auth_names = opts[:auth_names] || []
77
+
78
+ new_options = opts.merge(
79
+ :header_params => header_params,
80
+ :query_params => query_params,
81
+ :form_params => form_params,
82
+ :body => post_body,
83
+ :auth_names => auth_names,
84
+ :return_type => return_type
85
+ )
86
+
87
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
88
+ if @api_client.config.debugging
89
+ @api_client.config.logger.debug "API called: EnginesApi#add_ory_access_control_policy_role_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
90
+ end
91
+ return data, status_code, headers
92
+ end
93
+
94
+ # Delete an ORY Access Control Policy
95
+ # @param flavor [String] The ORY Access Control Policy flavor. Can be \&quot;regex\&quot;, \&quot;glob\&quot;, and \&quot;exact\&quot;.
96
+ # @param id [String] The ID of the ORY Access Control Policy Role.
97
+ # @param [Hash] opts the optional parameters
98
+ # @return [nil]
99
+ def delete_ory_access_control_policy(flavor, id, opts = {})
100
+ delete_ory_access_control_policy_with_http_info(flavor, id, opts)
101
+ nil
102
+ end
103
+
104
+ # Delete an ORY Access Control Policy
105
+ # @param flavor [String] The ORY Access Control Policy flavor. Can be \&quot;regex\&quot;, \&quot;glob\&quot;, and \&quot;exact\&quot;.
106
+ # @param id [String] The ID of the ORY Access Control Policy Role.
107
+ # @param [Hash] opts the optional parameters
108
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
109
+ def delete_ory_access_control_policy_with_http_info(flavor, id, opts = {})
110
+ if @api_client.config.debugging
111
+ @api_client.config.logger.debug 'Calling API: EnginesApi.delete_ory_access_control_policy ...'
112
+ end
113
+ # verify the required parameter 'flavor' is set
114
+ if @api_client.config.client_side_validation && flavor.nil?
115
+ fail ArgumentError, "Missing the required parameter 'flavor' when calling EnginesApi.delete_ory_access_control_policy"
116
+ end
117
+ # verify the required parameter 'id' is set
118
+ if @api_client.config.client_side_validation && id.nil?
119
+ fail ArgumentError, "Missing the required parameter 'id' when calling EnginesApi.delete_ory_access_control_policy"
120
+ end
121
+ # resource path
122
+ local_var_path = '/engines/acp/ory/{flavor}/policies/{id}'.sub('{' + 'flavor' + '}', CGI.escape(flavor.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
123
+
124
+ # query parameters
125
+ query_params = opts[:query_params] || {}
126
+
127
+ # header parameters
128
+ header_params = opts[:header_params] || {}
129
+ # HTTP header 'Accept' (if needed)
130
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
131
+
132
+ # form parameters
133
+ form_params = opts[:form_params] || {}
134
+
135
+ # http body (model)
136
+ post_body = opts[:body]
137
+
138
+ # return_type
139
+ return_type = opts[:return_type]
140
+
141
+ # auth_names
142
+ auth_names = opts[:auth_names] || []
143
+
144
+ new_options = opts.merge(
145
+ :header_params => header_params,
146
+ :query_params => query_params,
147
+ :form_params => form_params,
148
+ :body => post_body,
149
+ :auth_names => auth_names,
150
+ :return_type => return_type
151
+ )
152
+
153
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
154
+ if @api_client.config.debugging
155
+ @api_client.config.logger.debug "API called: EnginesApi#delete_ory_access_control_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
156
+ end
157
+ return data, status_code, headers
158
+ end
159
+
160
+ # Delete an ORY Access Control Policy Role
161
+ # Roles group several subjects into one. Rules can be assigned to ORY Access Control Policy (OACP) by using the Role ID as subject in the OACP.
162
+ # @param flavor [String] The ORY Access Control Policy flavor. Can be \&quot;regex\&quot;, \&quot;glob\&quot;, and \&quot;exact\&quot;.
163
+ # @param id [String] The ID of the ORY Access Control Policy Role.
164
+ # @param [Hash] opts the optional parameters
165
+ # @return [nil]
166
+ def delete_ory_access_control_policy_role(flavor, id, opts = {})
167
+ delete_ory_access_control_policy_role_with_http_info(flavor, id, opts)
168
+ nil
169
+ end
170
+
171
+ # Delete an ORY Access Control Policy Role
172
+ # Roles group several subjects into one. Rules can be assigned to ORY Access Control Policy (OACP) by using the Role ID as subject in the OACP.
173
+ # @param flavor [String] The ORY Access Control Policy flavor. Can be \&quot;regex\&quot;, \&quot;glob\&quot;, and \&quot;exact\&quot;.
174
+ # @param id [String] The ID of the ORY Access Control Policy Role.
175
+ # @param [Hash] opts the optional parameters
176
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
177
+ def delete_ory_access_control_policy_role_with_http_info(flavor, id, opts = {})
178
+ if @api_client.config.debugging
179
+ @api_client.config.logger.debug 'Calling API: EnginesApi.delete_ory_access_control_policy_role ...'
180
+ end
181
+ # verify the required parameter 'flavor' is set
182
+ if @api_client.config.client_side_validation && flavor.nil?
183
+ fail ArgumentError, "Missing the required parameter 'flavor' when calling EnginesApi.delete_ory_access_control_policy_role"
184
+ end
185
+ # verify the required parameter 'id' is set
186
+ if @api_client.config.client_side_validation && id.nil?
187
+ fail ArgumentError, "Missing the required parameter 'id' when calling EnginesApi.delete_ory_access_control_policy_role"
188
+ end
189
+ # resource path
190
+ local_var_path = '/engines/acp/ory/{flavor}/roles/{id}'.sub('{' + 'flavor' + '}', CGI.escape(flavor.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
191
+
192
+ # query parameters
193
+ query_params = opts[:query_params] || {}
194
+
195
+ # header parameters
196
+ header_params = opts[:header_params] || {}
197
+ # HTTP header 'Accept' (if needed)
198
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
199
+
200
+ # form parameters
201
+ form_params = opts[:form_params] || {}
202
+
203
+ # http body (model)
204
+ post_body = opts[:body]
205
+
206
+ # return_type
207
+ return_type = opts[:return_type]
208
+
209
+ # auth_names
210
+ auth_names = opts[:auth_names] || []
211
+
212
+ new_options = opts.merge(
213
+ :header_params => header_params,
214
+ :query_params => query_params,
215
+ :form_params => form_params,
216
+ :body => post_body,
217
+ :auth_names => auth_names,
218
+ :return_type => return_type
219
+ )
220
+
221
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
222
+ if @api_client.config.debugging
223
+ @api_client.config.logger.debug "API called: EnginesApi#delete_ory_access_control_policy_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
224
+ end
225
+ return data, status_code, headers
226
+ end
227
+
228
+ # Check if a request is allowed
229
+ # Use this endpoint to check if a request is allowed or not. If the request is allowed, a 200 response with `{\"allowed\":\"true\"}` will be sent. If the request is denied, a 403 response with `{\"allowed\":\"false\"}` will be sent instead.
230
+ # @param flavor [String] The ORY Access Control Policy flavor. Can be \&quot;regex\&quot;, \&quot;glob\&quot;, and \&quot;exact\&quot;.
231
+ # @param [Hash] opts the optional parameters
232
+ # @option opts [OryAccessControlPolicyAllowedInput] :body
233
+ # @return [AuthorizationResult]
234
+ def do_ory_access_control_policies_allow(flavor, opts = {})
235
+ data, _status_code, _headers = do_ory_access_control_policies_allow_with_http_info(flavor, opts)
236
+ data
237
+ end
238
+
239
+ # Check if a request is allowed
240
+ # Use this endpoint to check if a request is allowed or not. If the request is allowed, a 200 response with &#x60;{\&quot;allowed\&quot;:\&quot;true\&quot;}&#x60; will be sent. If the request is denied, a 403 response with &#x60;{\&quot;allowed\&quot;:\&quot;false\&quot;}&#x60; will be sent instead.
241
+ # @param flavor [String] The ORY Access Control Policy flavor. Can be \&quot;regex\&quot;, \&quot;glob\&quot;, and \&quot;exact\&quot;.
242
+ # @param [Hash] opts the optional parameters
243
+ # @option opts [OryAccessControlPolicyAllowedInput] :body
244
+ # @return [Array<(AuthorizationResult, Integer, Hash)>] AuthorizationResult data, response status code and response headers
245
+ def do_ory_access_control_policies_allow_with_http_info(flavor, opts = {})
246
+ if @api_client.config.debugging
247
+ @api_client.config.logger.debug 'Calling API: EnginesApi.do_ory_access_control_policies_allow ...'
248
+ end
249
+ # verify the required parameter 'flavor' is set
250
+ if @api_client.config.client_side_validation && flavor.nil?
251
+ fail ArgumentError, "Missing the required parameter 'flavor' when calling EnginesApi.do_ory_access_control_policies_allow"
252
+ end
253
+ # resource path
254
+ local_var_path = '/engines/acp/ory/{flavor}/allowed'.sub('{' + 'flavor' + '}', CGI.escape(flavor.to_s))
255
+
256
+ # query parameters
257
+ query_params = opts[:query_params] || {}
258
+
259
+ # header parameters
260
+ header_params = opts[:header_params] || {}
261
+ # HTTP header 'Accept' (if needed)
262
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
263
+ # HTTP header 'Content-Type'
264
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
265
+
266
+ # form parameters
267
+ form_params = opts[:form_params] || {}
268
+
269
+ # http body (model)
270
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
271
+
272
+ # return_type
273
+ return_type = opts[:return_type] || 'AuthorizationResult'
274
+
275
+ # auth_names
276
+ auth_names = opts[:auth_names] || []
277
+
278
+ new_options = opts.merge(
279
+ :header_params => header_params,
280
+ :query_params => query_params,
281
+ :form_params => form_params,
282
+ :body => post_body,
283
+ :auth_names => auth_names,
284
+ :return_type => return_type
285
+ )
286
+
287
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
288
+ if @api_client.config.debugging
289
+ @api_client.config.logger.debug "API called: EnginesApi#do_ory_access_control_policies_allow\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
290
+ end
291
+ return data, status_code, headers
292
+ end
293
+
294
+ # Get an ORY Access Control Policy
295
+ # @param flavor [String] The ORY Access Control Policy flavor. Can be \&quot;regex\&quot;, \&quot;glob\&quot;, and \&quot;exact\&quot;.
296
+ # @param id [String] The ID of the ORY Access Control Policy Role.
297
+ # @param [Hash] opts the optional parameters
298
+ # @return [OryAccessControlPolicy]
299
+ def get_ory_access_control_policy(flavor, id, opts = {})
300
+ data, _status_code, _headers = get_ory_access_control_policy_with_http_info(flavor, id, opts)
301
+ data
302
+ end
303
+
304
+ # Get an ORY Access Control Policy
305
+ # @param flavor [String] The ORY Access Control Policy flavor. Can be \&quot;regex\&quot;, \&quot;glob\&quot;, and \&quot;exact\&quot;.
306
+ # @param id [String] The ID of the ORY Access Control Policy Role.
307
+ # @param [Hash] opts the optional parameters
308
+ # @return [Array<(OryAccessControlPolicy, Integer, Hash)>] OryAccessControlPolicy data, response status code and response headers
309
+ def get_ory_access_control_policy_with_http_info(flavor, id, opts = {})
310
+ if @api_client.config.debugging
311
+ @api_client.config.logger.debug 'Calling API: EnginesApi.get_ory_access_control_policy ...'
312
+ end
313
+ # verify the required parameter 'flavor' is set
314
+ if @api_client.config.client_side_validation && flavor.nil?
315
+ fail ArgumentError, "Missing the required parameter 'flavor' when calling EnginesApi.get_ory_access_control_policy"
316
+ end
317
+ # verify the required parameter 'id' is set
318
+ if @api_client.config.client_side_validation && id.nil?
319
+ fail ArgumentError, "Missing the required parameter 'id' when calling EnginesApi.get_ory_access_control_policy"
320
+ end
321
+ # resource path
322
+ local_var_path = '/engines/acp/ory/{flavor}/policies/{id}'.sub('{' + 'flavor' + '}', CGI.escape(flavor.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
323
+
324
+ # query parameters
325
+ query_params = opts[:query_params] || {}
326
+
327
+ # header parameters
328
+ header_params = opts[:header_params] || {}
329
+ # HTTP header 'Accept' (if needed)
330
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
331
+
332
+ # form parameters
333
+ form_params = opts[:form_params] || {}
334
+
335
+ # http body (model)
336
+ post_body = opts[:body]
337
+
338
+ # return_type
339
+ return_type = opts[:return_type] || 'OryAccessControlPolicy'
340
+
341
+ # auth_names
342
+ auth_names = opts[:auth_names] || []
343
+
344
+ new_options = opts.merge(
345
+ :header_params => header_params,
346
+ :query_params => query_params,
347
+ :form_params => form_params,
348
+ :body => post_body,
349
+ :auth_names => auth_names,
350
+ :return_type => return_type
351
+ )
352
+
353
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
354
+ if @api_client.config.debugging
355
+ @api_client.config.logger.debug "API called: EnginesApi#get_ory_access_control_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
356
+ end
357
+ return data, status_code, headers
358
+ end
359
+
360
+ # Get an ORY Access Control Policy Role
361
+ # Roles group several subjects into one. Rules can be assigned to ORY Access Control Policy (OACP) by using the Role ID as subject in the OACP.
362
+ # @param flavor [String] The ORY Access Control Policy flavor. Can be \&quot;regex\&quot;, \&quot;glob\&quot;, and \&quot;exact\&quot;.
363
+ # @param id [String] The ID of the ORY Access Control Policy Role.
364
+ # @param [Hash] opts the optional parameters
365
+ # @return [OryAccessControlPolicyRole]
366
+ def get_ory_access_control_policy_role(flavor, id, opts = {})
367
+ data, _status_code, _headers = get_ory_access_control_policy_role_with_http_info(flavor, id, opts)
368
+ data
369
+ end
370
+
371
+ # Get an ORY Access Control Policy Role
372
+ # Roles group several subjects into one. Rules can be assigned to ORY Access Control Policy (OACP) by using the Role ID as subject in the OACP.
373
+ # @param flavor [String] The ORY Access Control Policy flavor. Can be \&quot;regex\&quot;, \&quot;glob\&quot;, and \&quot;exact\&quot;.
374
+ # @param id [String] The ID of the ORY Access Control Policy Role.
375
+ # @param [Hash] opts the optional parameters
376
+ # @return [Array<(OryAccessControlPolicyRole, Integer, Hash)>] OryAccessControlPolicyRole data, response status code and response headers
377
+ def get_ory_access_control_policy_role_with_http_info(flavor, id, opts = {})
378
+ if @api_client.config.debugging
379
+ @api_client.config.logger.debug 'Calling API: EnginesApi.get_ory_access_control_policy_role ...'
380
+ end
381
+ # verify the required parameter 'flavor' is set
382
+ if @api_client.config.client_side_validation && flavor.nil?
383
+ fail ArgumentError, "Missing the required parameter 'flavor' when calling EnginesApi.get_ory_access_control_policy_role"
384
+ end
385
+ # verify the required parameter 'id' is set
386
+ if @api_client.config.client_side_validation && id.nil?
387
+ fail ArgumentError, "Missing the required parameter 'id' when calling EnginesApi.get_ory_access_control_policy_role"
388
+ end
389
+ # resource path
390
+ local_var_path = '/engines/acp/ory/{flavor}/roles/{id}'.sub('{' + 'flavor' + '}', CGI.escape(flavor.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
391
+
392
+ # query parameters
393
+ query_params = opts[:query_params] || {}
394
+
395
+ # header parameters
396
+ header_params = opts[:header_params] || {}
397
+ # HTTP header 'Accept' (if needed)
398
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
399
+
400
+ # form parameters
401
+ form_params = opts[:form_params] || {}
402
+
403
+ # http body (model)
404
+ post_body = opts[:body]
405
+
406
+ # return_type
407
+ return_type = opts[:return_type] || 'OryAccessControlPolicyRole'
408
+
409
+ # auth_names
410
+ auth_names = opts[:auth_names] || []
411
+
412
+ new_options = opts.merge(
413
+ :header_params => header_params,
414
+ :query_params => query_params,
415
+ :form_params => form_params,
416
+ :body => post_body,
417
+ :auth_names => auth_names,
418
+ :return_type => return_type
419
+ )
420
+
421
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
422
+ if @api_client.config.debugging
423
+ @api_client.config.logger.debug "API called: EnginesApi#get_ory_access_control_policy_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
424
+ end
425
+ return data, status_code, headers
426
+ end
427
+
428
+ # List ORY Access Control Policies
429
+ # @param flavor [String] The ORY Access Control Policy flavor. Can be \&quot;regex\&quot;, \&quot;glob\&quot;, and \&quot;exact\&quot;
430
+ # @param [Hash] opts the optional parameters
431
+ # @option opts [Integer] :limit The maximum amount of policies returned.
432
+ # @option opts [Integer] :offset The offset from where to start looking.
433
+ # @option opts [String] :subject The subject for whom the policies are to be listed.
434
+ # @option opts [String] :resource The resource for which the policies are to be listed.
435
+ # @option opts [String] :action The action for which policies are to be listed.
436
+ # @return [Array<OryAccessControlPolicy>]
437
+ def list_ory_access_control_policies(flavor, opts = {})
438
+ data, _status_code, _headers = list_ory_access_control_policies_with_http_info(flavor, opts)
439
+ data
440
+ end
441
+
442
+ # List ORY Access Control Policies
443
+ # @param flavor [String] The ORY Access Control Policy flavor. Can be \&quot;regex\&quot;, \&quot;glob\&quot;, and \&quot;exact\&quot;
444
+ # @param [Hash] opts the optional parameters
445
+ # @option opts [Integer] :limit The maximum amount of policies returned.
446
+ # @option opts [Integer] :offset The offset from where to start looking.
447
+ # @option opts [String] :subject The subject for whom the policies are to be listed.
448
+ # @option opts [String] :resource The resource for which the policies are to be listed.
449
+ # @option opts [String] :action The action for which policies are to be listed.
450
+ # @return [Array<(Array<OryAccessControlPolicy>, Integer, Hash)>] Array<OryAccessControlPolicy> data, response status code and response headers
451
+ def list_ory_access_control_policies_with_http_info(flavor, opts = {})
452
+ if @api_client.config.debugging
453
+ @api_client.config.logger.debug 'Calling API: EnginesApi.list_ory_access_control_policies ...'
454
+ end
455
+ # verify the required parameter 'flavor' is set
456
+ if @api_client.config.client_side_validation && flavor.nil?
457
+ fail ArgumentError, "Missing the required parameter 'flavor' when calling EnginesApi.list_ory_access_control_policies"
458
+ end
459
+ # resource path
460
+ local_var_path = '/engines/acp/ory/{flavor}/policies'.sub('{' + 'flavor' + '}', CGI.escape(flavor.to_s))
461
+
462
+ # query parameters
463
+ query_params = opts[:query_params] || {}
464
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
465
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
466
+ query_params[:'subject'] = opts[:'subject'] if !opts[:'subject'].nil?
467
+ query_params[:'resource'] = opts[:'resource'] if !opts[:'resource'].nil?
468
+ query_params[:'action'] = opts[:'action'] if !opts[:'action'].nil?
469
+
470
+ # header parameters
471
+ header_params = opts[:header_params] || {}
472
+ # HTTP header 'Accept' (if needed)
473
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
474
+
475
+ # form parameters
476
+ form_params = opts[:form_params] || {}
477
+
478
+ # http body (model)
479
+ post_body = opts[:body]
480
+
481
+ # return_type
482
+ return_type = opts[:return_type] || 'Array<OryAccessControlPolicy>'
483
+
484
+ # auth_names
485
+ auth_names = opts[:auth_names] || []
486
+
487
+ new_options = opts.merge(
488
+ :header_params => header_params,
489
+ :query_params => query_params,
490
+ :form_params => form_params,
491
+ :body => post_body,
492
+ :auth_names => auth_names,
493
+ :return_type => return_type
494
+ )
495
+
496
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
497
+ if @api_client.config.debugging
498
+ @api_client.config.logger.debug "API called: EnginesApi#list_ory_access_control_policies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
499
+ end
500
+ return data, status_code, headers
501
+ end
502
+
503
+ # List ORY Access Control Policy Roles
504
+ # Roles group several subjects into one. Rules can be assigned to ORY Access Control Policy (OACP) by using the Role ID as subject in the OACP.
505
+ # @param flavor [String] The ORY Access Control Policy flavor. Can be \&quot;regex\&quot;, \&quot;glob\&quot;, and \&quot;exact\&quot;
506
+ # @param [Hash] opts the optional parameters
507
+ # @option opts [Integer] :limit The maximum amount of policies returned.
508
+ # @option opts [Integer] :offset The offset from where to start looking.
509
+ # @option opts [String] :member The member for which the roles are to be listed.
510
+ # @return [Array<OryAccessControlPolicyRole>]
511
+ def list_ory_access_control_policy_roles(flavor, opts = {})
512
+ data, _status_code, _headers = list_ory_access_control_policy_roles_with_http_info(flavor, opts)
513
+ data
514
+ end
515
+
516
+ # List ORY Access Control Policy Roles
517
+ # Roles group several subjects into one. Rules can be assigned to ORY Access Control Policy (OACP) by using the Role ID as subject in the OACP.
518
+ # @param flavor [String] The ORY Access Control Policy flavor. Can be \&quot;regex\&quot;, \&quot;glob\&quot;, and \&quot;exact\&quot;
519
+ # @param [Hash] opts the optional parameters
520
+ # @option opts [Integer] :limit The maximum amount of policies returned.
521
+ # @option opts [Integer] :offset The offset from where to start looking.
522
+ # @option opts [String] :member The member for which the roles are to be listed.
523
+ # @return [Array<(Array<OryAccessControlPolicyRole>, Integer, Hash)>] Array<OryAccessControlPolicyRole> data, response status code and response headers
524
+ def list_ory_access_control_policy_roles_with_http_info(flavor, opts = {})
525
+ if @api_client.config.debugging
526
+ @api_client.config.logger.debug 'Calling API: EnginesApi.list_ory_access_control_policy_roles ...'
527
+ end
528
+ # verify the required parameter 'flavor' is set
529
+ if @api_client.config.client_side_validation && flavor.nil?
530
+ fail ArgumentError, "Missing the required parameter 'flavor' when calling EnginesApi.list_ory_access_control_policy_roles"
531
+ end
532
+ # resource path
533
+ local_var_path = '/engines/acp/ory/{flavor}/roles'.sub('{' + 'flavor' + '}', CGI.escape(flavor.to_s))
534
+
535
+ # query parameters
536
+ query_params = opts[:query_params] || {}
537
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
538
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
539
+ query_params[:'member'] = opts[:'member'] if !opts[:'member'].nil?
540
+
541
+ # header parameters
542
+ header_params = opts[:header_params] || {}
543
+ # HTTP header 'Accept' (if needed)
544
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
545
+
546
+ # form parameters
547
+ form_params = opts[:form_params] || {}
548
+
549
+ # http body (model)
550
+ post_body = opts[:body]
551
+
552
+ # return_type
553
+ return_type = opts[:return_type] || 'Array<OryAccessControlPolicyRole>'
554
+
555
+ # auth_names
556
+ auth_names = opts[:auth_names] || []
557
+
558
+ new_options = opts.merge(
559
+ :header_params => header_params,
560
+ :query_params => query_params,
561
+ :form_params => form_params,
562
+ :body => post_body,
563
+ :auth_names => auth_names,
564
+ :return_type => return_type
565
+ )
566
+
567
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
568
+ if @api_client.config.debugging
569
+ @api_client.config.logger.debug "API called: EnginesApi#list_ory_access_control_policy_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
570
+ end
571
+ return data, status_code, headers
572
+ end
573
+
574
+ # Remove a member from an ORY Access Control Policy Role
575
+ # Roles group several subjects into one. Rules can be assigned to ORY Access Control Policy (OACP) by using the Role ID as subject in the OACP.
576
+ # @param flavor [String] The ORY Access Control Policy flavor. Can be \&quot;regex\&quot;, \&quot;glob\&quot;, and \&quot;exact\&quot;.
577
+ # @param id [String] The ID of the ORY Access Control Policy Role.
578
+ # @param member [String] The member to be removed.
579
+ # @param [Hash] opts the optional parameters
580
+ # @return [nil]
581
+ def remove_ory_access_control_policy_role_members(flavor, id, member, opts = {})
582
+ remove_ory_access_control_policy_role_members_with_http_info(flavor, id, member, opts)
583
+ nil
584
+ end
585
+
586
+ # Remove a member from an ORY Access Control Policy Role
587
+ # Roles group several subjects into one. Rules can be assigned to ORY Access Control Policy (OACP) by using the Role ID as subject in the OACP.
588
+ # @param flavor [String] The ORY Access Control Policy flavor. Can be \&quot;regex\&quot;, \&quot;glob\&quot;, and \&quot;exact\&quot;.
589
+ # @param id [String] The ID of the ORY Access Control Policy Role.
590
+ # @param member [String] The member to be removed.
591
+ # @param [Hash] opts the optional parameters
592
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
593
+ def remove_ory_access_control_policy_role_members_with_http_info(flavor, id, member, opts = {})
594
+ if @api_client.config.debugging
595
+ @api_client.config.logger.debug 'Calling API: EnginesApi.remove_ory_access_control_policy_role_members ...'
596
+ end
597
+ # verify the required parameter 'flavor' is set
598
+ if @api_client.config.client_side_validation && flavor.nil?
599
+ fail ArgumentError, "Missing the required parameter 'flavor' when calling EnginesApi.remove_ory_access_control_policy_role_members"
600
+ end
601
+ # verify the required parameter 'id' is set
602
+ if @api_client.config.client_side_validation && id.nil?
603
+ fail ArgumentError, "Missing the required parameter 'id' when calling EnginesApi.remove_ory_access_control_policy_role_members"
604
+ end
605
+ # verify the required parameter 'member' is set
606
+ if @api_client.config.client_side_validation && member.nil?
607
+ fail ArgumentError, "Missing the required parameter 'member' when calling EnginesApi.remove_ory_access_control_policy_role_members"
608
+ end
609
+ # resource path
610
+ local_var_path = '/engines/acp/ory/{flavor}/roles/{id}/members/{member}'.sub('{' + 'flavor' + '}', CGI.escape(flavor.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'member' + '}', CGI.escape(member.to_s))
611
+
612
+ # query parameters
613
+ query_params = opts[:query_params] || {}
614
+
615
+ # header parameters
616
+ header_params = opts[:header_params] || {}
617
+ # HTTP header 'Accept' (if needed)
618
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
619
+
620
+ # form parameters
621
+ form_params = opts[:form_params] || {}
622
+
623
+ # http body (model)
624
+ post_body = opts[:body]
625
+
626
+ # return_type
627
+ return_type = opts[:return_type]
628
+
629
+ # auth_names
630
+ auth_names = opts[:auth_names] || []
631
+
632
+ new_options = opts.merge(
633
+ :header_params => header_params,
634
+ :query_params => query_params,
635
+ :form_params => form_params,
636
+ :body => post_body,
637
+ :auth_names => auth_names,
638
+ :return_type => return_type
639
+ )
640
+
641
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
642
+ if @api_client.config.debugging
643
+ @api_client.config.logger.debug "API called: EnginesApi#remove_ory_access_control_policy_role_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
644
+ end
645
+ return data, status_code, headers
646
+ end
647
+
648
+ # Upsert an ORY Access Control Policy
649
+ # @param flavor [String] The ORY Access Control Policy flavor. Can be \&quot;regex\&quot;, \&quot;glob\&quot;, and \&quot;exact\&quot;.
650
+ # @param [Hash] opts the optional parameters
651
+ # @option opts [OryAccessControlPolicy] :body
652
+ # @return [OryAccessControlPolicy]
653
+ def upsert_ory_access_control_policy(flavor, opts = {})
654
+ data, _status_code, _headers = upsert_ory_access_control_policy_with_http_info(flavor, opts)
655
+ data
656
+ end
657
+
658
+ # Upsert an ORY Access Control Policy
659
+ # @param flavor [String] The ORY Access Control Policy flavor. Can be \&quot;regex\&quot;, \&quot;glob\&quot;, and \&quot;exact\&quot;.
660
+ # @param [Hash] opts the optional parameters
661
+ # @option opts [OryAccessControlPolicy] :body
662
+ # @return [Array<(OryAccessControlPolicy, Integer, Hash)>] OryAccessControlPolicy data, response status code and response headers
663
+ def upsert_ory_access_control_policy_with_http_info(flavor, opts = {})
664
+ if @api_client.config.debugging
665
+ @api_client.config.logger.debug 'Calling API: EnginesApi.upsert_ory_access_control_policy ...'
666
+ end
667
+ # verify the required parameter 'flavor' is set
668
+ if @api_client.config.client_side_validation && flavor.nil?
669
+ fail ArgumentError, "Missing the required parameter 'flavor' when calling EnginesApi.upsert_ory_access_control_policy"
670
+ end
671
+ # resource path
672
+ local_var_path = '/engines/acp/ory/{flavor}/policies'.sub('{' + 'flavor' + '}', CGI.escape(flavor.to_s))
673
+
674
+ # query parameters
675
+ query_params = opts[:query_params] || {}
676
+
677
+ # header parameters
678
+ header_params = opts[:header_params] || {}
679
+ # HTTP header 'Accept' (if needed)
680
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
681
+ # HTTP header 'Content-Type'
682
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
683
+
684
+ # form parameters
685
+ form_params = opts[:form_params] || {}
686
+
687
+ # http body (model)
688
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
689
+
690
+ # return_type
691
+ return_type = opts[:return_type] || 'OryAccessControlPolicy'
692
+
693
+ # auth_names
694
+ auth_names = opts[:auth_names] || []
695
+
696
+ new_options = opts.merge(
697
+ :header_params => header_params,
698
+ :query_params => query_params,
699
+ :form_params => form_params,
700
+ :body => post_body,
701
+ :auth_names => auth_names,
702
+ :return_type => return_type
703
+ )
704
+
705
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
706
+ if @api_client.config.debugging
707
+ @api_client.config.logger.debug "API called: EnginesApi#upsert_ory_access_control_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
708
+ end
709
+ return data, status_code, headers
710
+ end
711
+
712
+ # Upsert an ORY Access Control Policy Role
713
+ # Roles group several subjects into one. Rules can be assigned to ORY Access Control Policy (OACP) by using the Role ID as subject in the OACP.
714
+ # @param flavor [String] The ORY Access Control Policy flavor. Can be \&quot;regex\&quot;, \&quot;glob\&quot;, and \&quot;exact\&quot;.
715
+ # @param [Hash] opts the optional parameters
716
+ # @option opts [OryAccessControlPolicyRole] :body
717
+ # @return [OryAccessControlPolicyRole]
718
+ def upsert_ory_access_control_policy_role(flavor, opts = {})
719
+ data, _status_code, _headers = upsert_ory_access_control_policy_role_with_http_info(flavor, opts)
720
+ data
721
+ end
722
+
723
+ # Upsert an ORY Access Control Policy Role
724
+ # Roles group several subjects into one. Rules can be assigned to ORY Access Control Policy (OACP) by using the Role ID as subject in the OACP.
725
+ # @param flavor [String] The ORY Access Control Policy flavor. Can be \&quot;regex\&quot;, \&quot;glob\&quot;, and \&quot;exact\&quot;.
726
+ # @param [Hash] opts the optional parameters
727
+ # @option opts [OryAccessControlPolicyRole] :body
728
+ # @return [Array<(OryAccessControlPolicyRole, Integer, Hash)>] OryAccessControlPolicyRole data, response status code and response headers
729
+ def upsert_ory_access_control_policy_role_with_http_info(flavor, opts = {})
730
+ if @api_client.config.debugging
731
+ @api_client.config.logger.debug 'Calling API: EnginesApi.upsert_ory_access_control_policy_role ...'
732
+ end
733
+ # verify the required parameter 'flavor' is set
734
+ if @api_client.config.client_side_validation && flavor.nil?
735
+ fail ArgumentError, "Missing the required parameter 'flavor' when calling EnginesApi.upsert_ory_access_control_policy_role"
736
+ end
737
+ # resource path
738
+ local_var_path = '/engines/acp/ory/{flavor}/roles'.sub('{' + 'flavor' + '}', CGI.escape(flavor.to_s))
739
+
740
+ # query parameters
741
+ query_params = opts[:query_params] || {}
742
+
743
+ # header parameters
744
+ header_params = opts[:header_params] || {}
745
+ # HTTP header 'Accept' (if needed)
746
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
747
+ # HTTP header 'Content-Type'
748
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
749
+
750
+ # form parameters
751
+ form_params = opts[:form_params] || {}
752
+
753
+ # http body (model)
754
+ post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body'])
755
+
756
+ # return_type
757
+ return_type = opts[:return_type] || 'OryAccessControlPolicyRole'
758
+
759
+ # auth_names
760
+ auth_names = opts[:auth_names] || []
761
+
762
+ new_options = opts.merge(
763
+ :header_params => header_params,
764
+ :query_params => query_params,
765
+ :form_params => form_params,
766
+ :body => post_body,
767
+ :auth_names => auth_names,
768
+ :return_type => return_type
769
+ )
770
+
771
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
772
+ if @api_client.config.debugging
773
+ @api_client.config.logger.debug "API called: EnginesApi#upsert_ory_access_control_policy_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
774
+ end
775
+ return data, status_code, headers
776
+ end
777
+ end
778
+ end