keynetra-client 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +49 -0
  4. data/Rakefile +10 -0
  5. data/docs/ACLCreate.md +28 -0
  6. data/docs/ACLOut.md +34 -0
  7. data/docs/AccessApi.md +234 -0
  8. data/docs/AccessDecisionResponse.md +30 -0
  9. data/docs/AccessRequest.md +28 -0
  10. data/docs/AdminLoginRequest.md +20 -0
  11. data/docs/AdminLoginResponse.md +26 -0
  12. data/docs/AuditRecordOut.md +42 -0
  13. data/docs/AuthApi.md +133 -0
  14. data/docs/AuthModelCreate.md +18 -0
  15. data/docs/AuthModelOut.md +26 -0
  16. data/docs/BatchAccessItem.md +20 -0
  17. data/docs/BatchAccessRequest.md +24 -0
  18. data/docs/BatchAccessResponse.md +20 -0
  19. data/docs/BatchAccessResult.md +22 -0
  20. data/docs/DataValue.md +15 -0
  21. data/docs/DevApi.md +132 -0
  22. data/docs/HTTPValidationError.md +18 -0
  23. data/docs/HealthApi.md +187 -0
  24. data/docs/ImpactAnalysisRequest.md +18 -0
  25. data/docs/ImpactAnalysisResponse.md +20 -0
  26. data/docs/LocationInner.md +15 -0
  27. data/docs/ManagementApi.md +2096 -0
  28. data/docs/MetaBody.md +24 -0
  29. data/docs/PermissionCreate.md +18 -0
  30. data/docs/PermissionOut.md +20 -0
  31. data/docs/PermissionUpdate.md +18 -0
  32. data/docs/PlaygroundApi.md +80 -0
  33. data/docs/PlaygroundEvaluateRequest.md +20 -0
  34. data/docs/PlaygroundInput.md +24 -0
  35. data/docs/PlaygroundPolicy.md +26 -0
  36. data/docs/PolicyCreate.md +26 -0
  37. data/docs/PolicyOut.md +28 -0
  38. data/docs/PolicySimulationInput.md +22 -0
  39. data/docs/PolicySimulationRequest.md +20 -0
  40. data/docs/PolicySimulationResponse.md +20 -0
  41. data/docs/RelationshipCreate.md +26 -0
  42. data/docs/RelationshipOut.md +28 -0
  43. data/docs/RoleCreate.md +18 -0
  44. data/docs/RoleOut.md +20 -0
  45. data/docs/RoleUpdate.md +18 -0
  46. data/docs/SimulationResponse.md +30 -0
  47. data/docs/SuccessResponseACLOut.md +22 -0
  48. data/docs/SuccessResponseAccessDecisionResponse.md +22 -0
  49. data/docs/SuccessResponseAdminLoginResponse.md +22 -0
  50. data/docs/SuccessResponseAuthModelOut.md +22 -0
  51. data/docs/SuccessResponseBatchAccessResponse.md +22 -0
  52. data/docs/SuccessResponseDictStrAny.md +22 -0
  53. data/docs/SuccessResponseDictStrInt.md +22 -0
  54. data/docs/SuccessResponseDictStrObject.md +22 -0
  55. data/docs/SuccessResponseDictStrStr.md +22 -0
  56. data/docs/SuccessResponseDictStrUnionIntStr.md +22 -0
  57. data/docs/SuccessResponseImpactAnalysisResponse.md +22 -0
  58. data/docs/SuccessResponseListACLOut.md +22 -0
  59. data/docs/SuccessResponseListAuditRecordOut.md +22 -0
  60. data/docs/SuccessResponseListDictStrStr.md +22 -0
  61. data/docs/SuccessResponseListPermissionOut.md +22 -0
  62. data/docs/SuccessResponseListPolicyOut.md +22 -0
  63. data/docs/SuccessResponseListRoleOut.md +22 -0
  64. data/docs/SuccessResponsePermissionOut.md +22 -0
  65. data/docs/SuccessResponsePolicyOut.md +22 -0
  66. data/docs/SuccessResponsePolicySimulationResponse.md +22 -0
  67. data/docs/SuccessResponseRelationshipOut.md +22 -0
  68. data/docs/SuccessResponseSimulationResponse.md +22 -0
  69. data/docs/ValidationError.md +26 -0
  70. data/git_push.sh +57 -0
  71. data/keynetra-client.gemspec +39 -0
  72. data/lib/keynetra-client/api/access_api.rb +226 -0
  73. data/lib/keynetra-client/api/auth_api.rb +154 -0
  74. data/lib/keynetra-client/api/dev_api.rb +135 -0
  75. data/lib/keynetra-client/api/health_api.rb +187 -0
  76. data/lib/keynetra-client/api/management_api.rb +1851 -0
  77. data/lib/keynetra-client/api/playground_api.rb +88 -0
  78. data/lib/keynetra-client/api_client.rb +397 -0
  79. data/lib/keynetra-client/api_error.rb +58 -0
  80. data/lib/keynetra-client/api_model_base.rb +88 -0
  81. data/lib/keynetra-client/configuration.rb +315 -0
  82. data/lib/keynetra-client/models/access_decision_response.rb +242 -0
  83. data/lib/keynetra-client/models/access_request.rb +219 -0
  84. data/lib/keynetra-client/models/acl_create.rb +294 -0
  85. data/lib/keynetra-client/models/acl_out.rb +356 -0
  86. data/lib/keynetra-client/models/admin_login_request.rb +190 -0
  87. data/lib/keynetra-client/models/admin_login_response.rb +238 -0
  88. data/lib/keynetra-client/models/audit_record_out.rb +454 -0
  89. data/lib/keynetra-client/models/auth_model_create.rb +164 -0
  90. data/lib/keynetra-client/models/auth_model_out.rb +272 -0
  91. data/lib/keynetra-client/models/batch_access_item.rb +175 -0
  92. data/lib/keynetra-client/models/batch_access_request.rb +198 -0
  93. data/lib/keynetra-client/models/batch_access_response.rb +176 -0
  94. data/lib/keynetra-client/models/batch_access_result.rb +200 -0
  95. data/lib/keynetra-client/models/data_value.rb +103 -0
  96. data/lib/keynetra-client/models/http_validation_error.rb +149 -0
  97. data/lib/keynetra-client/models/impact_analysis_request.rb +164 -0
  98. data/lib/keynetra-client/models/impact_analysis_response.rb +160 -0
  99. data/lib/keynetra-client/models/location_inner.rb +103 -0
  100. data/lib/keynetra-client/models/meta_body.rb +179 -0
  101. data/lib/keynetra-client/models/permission_create.rb +164 -0
  102. data/lib/keynetra-client/models/permission_out.rb +190 -0
  103. data/lib/keynetra-client/models/permission_update.rb +164 -0
  104. data/lib/keynetra-client/models/playground_evaluate_request.rb +192 -0
  105. data/lib/keynetra-client/models/playground_input.rb +182 -0
  106. data/lib/keynetra-client/models/playground_policy.rb +207 -0
  107. data/lib/keynetra-client/models/policy_create.rb +208 -0
  108. data/lib/keynetra-client/models/policy_out.rb +281 -0
  109. data/lib/keynetra-client/models/policy_simulation_input.rb +172 -0
  110. data/lib/keynetra-client/models/policy_simulation_request.rb +158 -0
  111. data/lib/keynetra-client/models/policy_simulation_response.rb +194 -0
  112. data/lib/keynetra-client/models/relationship_create.rb +268 -0
  113. data/lib/keynetra-client/models/relationship_out.rb +294 -0
  114. data/lib/keynetra-client/models/role_create.rb +164 -0
  115. data/lib/keynetra-client/models/role_out.rb +190 -0
  116. data/lib/keynetra-client/models/role_update.rb +164 -0
  117. data/lib/keynetra-client/models/simulation_response.rb +244 -0
  118. data/lib/keynetra-client/models/success_response_access_decision_response.rb +182 -0
  119. data/lib/keynetra-client/models/success_response_acl_out.rb +182 -0
  120. data/lib/keynetra-client/models/success_response_admin_login_response.rb +182 -0
  121. data/lib/keynetra-client/models/success_response_auth_model_out.rb +182 -0
  122. data/lib/keynetra-client/models/success_response_batch_access_response.rb +182 -0
  123. data/lib/keynetra-client/models/success_response_dict_str_any.rb +184 -0
  124. data/lib/keynetra-client/models/success_response_dict_str_int.rb +184 -0
  125. data/lib/keynetra-client/models/success_response_dict_str_object.rb +184 -0
  126. data/lib/keynetra-client/models/success_response_dict_str_str.rb +184 -0
  127. data/lib/keynetra-client/models/success_response_dict_str_union_int_str.rb +184 -0
  128. data/lib/keynetra-client/models/success_response_impact_analysis_response.rb +182 -0
  129. data/lib/keynetra-client/models/success_response_list_acl_out.rb +184 -0
  130. data/lib/keynetra-client/models/success_response_list_audit_record_out.rb +184 -0
  131. data/lib/keynetra-client/models/success_response_list_dict_str_str.rb +184 -0
  132. data/lib/keynetra-client/models/success_response_list_permission_out.rb +184 -0
  133. data/lib/keynetra-client/models/success_response_list_policy_out.rb +184 -0
  134. data/lib/keynetra-client/models/success_response_list_role_out.rb +184 -0
  135. data/lib/keynetra-client/models/success_response_permission_out.rb +182 -0
  136. data/lib/keynetra-client/models/success_response_policy_out.rb +182 -0
  137. data/lib/keynetra-client/models/success_response_policy_simulation_response.rb +182 -0
  138. data/lib/keynetra-client/models/success_response_relationship_out.rb +182 -0
  139. data/lib/keynetra-client/models/success_response_simulation_response.rb +182 -0
  140. data/lib/keynetra-client/models/validation_error.rb +237 -0
  141. data/lib/keynetra-client/version.rb +15 -0
  142. data/lib/keynetra-client.rb +105 -0
  143. data/spec/api/access_api_spec.rb +70 -0
  144. data/spec/api/auth_api_spec.rb +57 -0
  145. data/spec/api/dev_api_spec.rb +56 -0
  146. data/spec/api/health_api_spec.rb +65 -0
  147. data/spec/api/management_api_spec.rb +361 -0
  148. data/spec/api/playground_api_spec.rb +46 -0
  149. data/spec/models/access_decision_response_spec.rb +72 -0
  150. data/spec/models/access_request_spec.rb +66 -0
  151. data/spec/models/acl_create_spec.rb +66 -0
  152. data/spec/models/acl_out_spec.rb +84 -0
  153. data/spec/models/admin_login_request_spec.rb +42 -0
  154. data/spec/models/admin_login_response_spec.rb +60 -0
  155. data/spec/models/audit_record_out_spec.rb +108 -0
  156. data/spec/models/auth_model_create_spec.rb +36 -0
  157. data/spec/models/auth_model_out_spec.rb +60 -0
  158. data/spec/models/batch_access_item_spec.rb +42 -0
  159. data/spec/models/batch_access_request_spec.rb +54 -0
  160. data/spec/models/batch_access_response_spec.rb +42 -0
  161. data/spec/models/batch_access_result_spec.rb +48 -0
  162. data/spec/models/data_value_spec.rb +21 -0
  163. data/spec/models/http_validation_error_spec.rb +36 -0
  164. data/spec/models/impact_analysis_request_spec.rb +36 -0
  165. data/spec/models/impact_analysis_response_spec.rb +42 -0
  166. data/spec/models/location_inner_spec.rb +21 -0
  167. data/spec/models/meta_body_spec.rb +54 -0
  168. data/spec/models/permission_create_spec.rb +36 -0
  169. data/spec/models/permission_out_spec.rb +42 -0
  170. data/spec/models/permission_update_spec.rb +36 -0
  171. data/spec/models/playground_evaluate_request_spec.rb +42 -0
  172. data/spec/models/playground_input_spec.rb +54 -0
  173. data/spec/models/playground_policy_spec.rb +60 -0
  174. data/spec/models/policy_create_spec.rb +60 -0
  175. data/spec/models/policy_out_spec.rb +66 -0
  176. data/spec/models/policy_simulation_input_spec.rb +48 -0
  177. data/spec/models/policy_simulation_request_spec.rb +42 -0
  178. data/spec/models/policy_simulation_response_spec.rb +42 -0
  179. data/spec/models/relationship_create_spec.rb +60 -0
  180. data/spec/models/relationship_out_spec.rb +66 -0
  181. data/spec/models/role_create_spec.rb +36 -0
  182. data/spec/models/role_out_spec.rb +42 -0
  183. data/spec/models/role_update_spec.rb +36 -0
  184. data/spec/models/simulation_response_spec.rb +72 -0
  185. data/spec/models/success_response_access_decision_response_spec.rb +48 -0
  186. data/spec/models/success_response_acl_out_spec.rb +48 -0
  187. data/spec/models/success_response_admin_login_response_spec.rb +48 -0
  188. data/spec/models/success_response_auth_model_out_spec.rb +48 -0
  189. data/spec/models/success_response_batch_access_response_spec.rb +48 -0
  190. data/spec/models/success_response_dict_str_any_spec.rb +48 -0
  191. data/spec/models/success_response_dict_str_int_spec.rb +48 -0
  192. data/spec/models/success_response_dict_str_object_spec.rb +48 -0
  193. data/spec/models/success_response_dict_str_str_spec.rb +48 -0
  194. data/spec/models/success_response_dict_str_union_int_str_spec.rb +48 -0
  195. data/spec/models/success_response_impact_analysis_response_spec.rb +48 -0
  196. data/spec/models/success_response_list_acl_out_spec.rb +48 -0
  197. data/spec/models/success_response_list_audit_record_out_spec.rb +48 -0
  198. data/spec/models/success_response_list_dict_str_str_spec.rb +48 -0
  199. data/spec/models/success_response_list_permission_out_spec.rb +48 -0
  200. data/spec/models/success_response_list_policy_out_spec.rb +48 -0
  201. data/spec/models/success_response_list_role_out_spec.rb +48 -0
  202. data/spec/models/success_response_permission_out_spec.rb +48 -0
  203. data/spec/models/success_response_policy_out_spec.rb +48 -0
  204. data/spec/models/success_response_policy_simulation_response_spec.rb +48 -0
  205. data/spec/models/success_response_relationship_out_spec.rb +48 -0
  206. data/spec/models/success_response_simulation_response_spec.rb +48 -0
  207. data/spec/models/validation_error_spec.rb +60 -0
  208. data/spec/spec_helper.rb +111 -0
  209. metadata +356 -0
data/docs/MetaBody.md ADDED
@@ -0,0 +1,24 @@
1
+ # KeyNetra::MetaBody
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **request_id** | **String** | | [optional] |
8
+ | **limit** | **Integer** | | [optional] |
9
+ | **next_cursor** | **String** | | [optional] |
10
+ | **extra** | **Hash<String, Object>** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'keynetra-client'
16
+
17
+ instance = KeyNetra::MetaBody.new(
18
+ request_id: null,
19
+ limit: null,
20
+ next_cursor: null,
21
+ extra: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,18 @@
1
+ # KeyNetra::PermissionCreate
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **action** | **String** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'keynetra-client'
13
+
14
+ instance = KeyNetra::PermissionCreate.new(
15
+ action: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,20 @@
1
+ # KeyNetra::PermissionOut
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **Integer** | | |
8
+ | **action** | **String** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'keynetra-client'
14
+
15
+ instance = KeyNetra::PermissionOut.new(
16
+ id: null,
17
+ action: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,18 @@
1
+ # KeyNetra::PermissionUpdate
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **action** | **String** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'keynetra-client'
13
+
14
+ instance = KeyNetra::PermissionUpdate.new(
15
+ action: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,80 @@
1
+ # KeyNetra::PlaygroundApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**evaluate_playground_evaluate_post**](PlaygroundApi.md#evaluate_playground_evaluate_post) | **POST** /playground/evaluate | Evaluate |
8
+
9
+
10
+ ## evaluate_playground_evaluate_post
11
+
12
+ > <SuccessResponseDictStrAny> evaluate_playground_evaluate_post(playground_evaluate_request)
13
+
14
+ Evaluate
15
+
16
+ ### Examples
17
+
18
+ ```ruby
19
+ require 'time'
20
+ require 'keynetra-client'
21
+ # setup authorization
22
+ KeyNetra.configure do |config|
23
+ # Configure API key authorization: APIKeyHeader
24
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
25
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
26
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
27
+
28
+ # Configure Bearer authorization: HTTPBearer
29
+ config.access_token = 'YOUR_BEARER_TOKEN'
30
+ end
31
+
32
+ api_instance = KeyNetra::PlaygroundApi.new
33
+ playground_evaluate_request = KeyNetra::PlaygroundEvaluateRequest.new({policies: [KeyNetra::PlaygroundPolicy.new({action: 'action_example'})], input: KeyNetra::PlaygroundInput.new}) # PlaygroundEvaluateRequest |
34
+
35
+ begin
36
+ # Evaluate
37
+ result = api_instance.evaluate_playground_evaluate_post(playground_evaluate_request)
38
+ p result
39
+ rescue KeyNetra::ApiError => e
40
+ puts "Error when calling PlaygroundApi->evaluate_playground_evaluate_post: #{e}"
41
+ end
42
+ ```
43
+
44
+ #### Using the evaluate_playground_evaluate_post_with_http_info variant
45
+
46
+ This returns an Array which contains the response data, status code and headers.
47
+
48
+ > <Array(<SuccessResponseDictStrAny>, Integer, Hash)> evaluate_playground_evaluate_post_with_http_info(playground_evaluate_request)
49
+
50
+ ```ruby
51
+ begin
52
+ # Evaluate
53
+ data, status_code, headers = api_instance.evaluate_playground_evaluate_post_with_http_info(playground_evaluate_request)
54
+ p status_code # => 2xx
55
+ p headers # => { ... }
56
+ p data # => <SuccessResponseDictStrAny>
57
+ rescue KeyNetra::ApiError => e
58
+ puts "Error when calling PlaygroundApi->evaluate_playground_evaluate_post_with_http_info: #{e}"
59
+ end
60
+ ```
61
+
62
+ ### Parameters
63
+
64
+ | Name | Type | Description | Notes |
65
+ | ---- | ---- | ----------- | ----- |
66
+ | **playground_evaluate_request** | [**PlaygroundEvaluateRequest**](PlaygroundEvaluateRequest.md) | | |
67
+
68
+ ### Return type
69
+
70
+ [**SuccessResponseDictStrAny**](SuccessResponseDictStrAny.md)
71
+
72
+ ### Authorization
73
+
74
+ [APIKeyHeader](../README.md#APIKeyHeader), [HTTPBearer](../README.md#HTTPBearer)
75
+
76
+ ### HTTP request headers
77
+
78
+ - **Content-Type**: application/json
79
+ - **Accept**: application/json
80
+
@@ -0,0 +1,20 @@
1
+ # KeyNetra::PlaygroundEvaluateRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **policies** | [**Array&lt;PlaygroundPolicy&gt;**](PlaygroundPolicy.md) | | |
8
+ | **input** | [**PlaygroundInput**](PlaygroundInput.md) | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'keynetra-client'
14
+
15
+ instance = KeyNetra::PlaygroundEvaluateRequest.new(
16
+ policies: null,
17
+ input: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,24 @@
1
+ # KeyNetra::PlaygroundInput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **user** | **Hash&lt;String, Object&gt;** | | [optional] |
8
+ | **resource** | **Hash&lt;String, Object&gt;** | | [optional] |
9
+ | **action** | **String** | | [optional][default to &#39;&#39;] |
10
+ | **context** | **Hash&lt;String, Object&gt;** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'keynetra-client'
16
+
17
+ instance = KeyNetra::PlaygroundInput.new(
18
+ user: null,
19
+ resource: null,
20
+ action: null,
21
+ context: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,26 @@
1
+ # KeyNetra::PlaygroundPolicy
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **action** | **String** | | |
8
+ | **effect** | **String** | | [optional][default to &#39;allow&#39;] |
9
+ | **priority** | **Integer** | | [optional][default to 100] |
10
+ | **policy_id** | **String** | | [optional] |
11
+ | **conditions** | **Hash&lt;String, Object&gt;** | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'keynetra-client'
17
+
18
+ instance = KeyNetra::PlaygroundPolicy.new(
19
+ action: null,
20
+ effect: null,
21
+ priority: null,
22
+ policy_id: null,
23
+ conditions: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,26 @@
1
+ # KeyNetra::PolicyCreate
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **action** | **String** | | |
8
+ | **effect** | **String** | | [optional][default to &#39;allow&#39;] |
9
+ | **priority** | **Integer** | | [optional][default to 100] |
10
+ | **state** | **String** | | [optional][default to &#39;active&#39;] |
11
+ | **conditions** | **Hash&lt;String, Object&gt;** | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'keynetra-client'
17
+
18
+ instance = KeyNetra::PolicyCreate.new(
19
+ action: null,
20
+ effect: null,
21
+ priority: null,
22
+ state: null,
23
+ conditions: null
24
+ )
25
+ ```
26
+
data/docs/PolicyOut.md ADDED
@@ -0,0 +1,28 @@
1
+ # KeyNetra::PolicyOut
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **Integer** | | |
8
+ | **action** | **String** | | |
9
+ | **effect** | **String** | | |
10
+ | **priority** | **Integer** | | |
11
+ | **state** | **String** | | [optional][default to &#39;active&#39;] |
12
+ | **conditions** | **Hash&lt;String, Object&gt;** | | |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'keynetra-client'
18
+
19
+ instance = KeyNetra::PolicyOut.new(
20
+ id: null,
21
+ action: null,
22
+ effect: null,
23
+ priority: null,
24
+ state: null,
25
+ conditions: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,22 @@
1
+ # KeyNetra::PolicySimulationInput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **policy_change** | **String** | | [optional] |
8
+ | **relationship_change** | **Hash&lt;String, Object&gt;** | | [optional] |
9
+ | **role_change** | **Hash&lt;String, Object&gt;** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'keynetra-client'
15
+
16
+ instance = KeyNetra::PolicySimulationInput.new(
17
+ policy_change: null,
18
+ relationship_change: null,
19
+ role_change: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,20 @@
1
+ # KeyNetra::PolicySimulationRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **simulate** | [**PolicySimulationInput**](PolicySimulationInput.md) | | [optional] |
8
+ | **request** | **Hash&lt;String, Object&gt;** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'keynetra-client'
14
+
15
+ instance = KeyNetra::PolicySimulationRequest.new(
16
+ simulate: null,
17
+ request: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # KeyNetra::PolicySimulationResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **decision_before** | **Hash&lt;String, Object&gt;** | | |
8
+ | **decision_after** | **Hash&lt;String, Object&gt;** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'keynetra-client'
14
+
15
+ instance = KeyNetra::PolicySimulationResponse.new(
16
+ decision_before: null,
17
+ decision_after: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,26 @@
1
+ # KeyNetra::RelationshipCreate
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **subject_type** | **String** | | |
8
+ | **subject_id** | **String** | | |
9
+ | **relation** | **String** | | |
10
+ | **object_type** | **String** | | |
11
+ | **object_id** | **String** | | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'keynetra-client'
17
+
18
+ instance = KeyNetra::RelationshipCreate.new(
19
+ subject_type: null,
20
+ subject_id: null,
21
+ relation: null,
22
+ object_type: null,
23
+ object_id: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,28 @@
1
+ # KeyNetra::RelationshipOut
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **subject_type** | **String** | | |
8
+ | **subject_id** | **String** | | |
9
+ | **relation** | **String** | | |
10
+ | **object_type** | **String** | | |
11
+ | **object_id** | **String** | | |
12
+ | **id** | **Integer** | | |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'keynetra-client'
18
+
19
+ instance = KeyNetra::RelationshipOut.new(
20
+ subject_type: null,
21
+ subject_id: null,
22
+ relation: null,
23
+ object_type: null,
24
+ object_id: null,
25
+ id: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,18 @@
1
+ # KeyNetra::RoleCreate
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'keynetra-client'
13
+
14
+ instance = KeyNetra::RoleCreate.new(
15
+ name: null
16
+ )
17
+ ```
18
+
data/docs/RoleOut.md ADDED
@@ -0,0 +1,20 @@
1
+ # KeyNetra::RoleOut
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **Integer** | | |
8
+ | **name** | **String** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'keynetra-client'
14
+
15
+ instance = KeyNetra::RoleOut.new(
16
+ id: null,
17
+ name: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,18 @@
1
+ # KeyNetra::RoleUpdate
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'keynetra-client'
13
+
14
+ instance = KeyNetra::RoleUpdate.new(
15
+ name: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,30 @@
1
+ # KeyNetra::SimulationResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **decision** | **String** | | |
8
+ | **matched_policies** | **Array&lt;String&gt;** | | |
9
+ | **reason** | **String** | | [optional] |
10
+ | **policy_id** | **String** | | [optional] |
11
+ | **explain_trace** | **Array&lt;Hash&lt;String, Object&gt;&gt;** | | [optional] |
12
+ | **failed_conditions** | **Array&lt;String&gt;** | | [optional] |
13
+ | **revision** | **Integer** | | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'keynetra-client'
19
+
20
+ instance = KeyNetra::SimulationResponse.new(
21
+ decision: null,
22
+ matched_policies: null,
23
+ reason: null,
24
+ policy_id: null,
25
+ explain_trace: null,
26
+ failed_conditions: null,
27
+ revision: null
28
+ )
29
+ ```
30
+
@@ -0,0 +1,22 @@
1
+ # KeyNetra::SuccessResponseACLOut
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**ACLOut**](ACLOut.md) | | |
8
+ | **meta** | [**MetaBody**](MetaBody.md) | | [optional] |
9
+ | **error** | **Object** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'keynetra-client'
15
+
16
+ instance = KeyNetra::SuccessResponseACLOut.new(
17
+ data: null,
18
+ meta: null,
19
+ error: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # KeyNetra::SuccessResponseAccessDecisionResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**AccessDecisionResponse**](AccessDecisionResponse.md) | | |
8
+ | **meta** | [**MetaBody**](MetaBody.md) | | [optional] |
9
+ | **error** | **Object** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'keynetra-client'
15
+
16
+ instance = KeyNetra::SuccessResponseAccessDecisionResponse.new(
17
+ data: null,
18
+ meta: null,
19
+ error: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # KeyNetra::SuccessResponseAdminLoginResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**AdminLoginResponse**](AdminLoginResponse.md) | | |
8
+ | **meta** | [**MetaBody**](MetaBody.md) | | [optional] |
9
+ | **error** | **Object** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'keynetra-client'
15
+
16
+ instance = KeyNetra::SuccessResponseAdminLoginResponse.new(
17
+ data: null,
18
+ meta: null,
19
+ error: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # KeyNetra::SuccessResponseAuthModelOut
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**AuthModelOut**](AuthModelOut.md) | | |
8
+ | **meta** | [**MetaBody**](MetaBody.md) | | [optional] |
9
+ | **error** | **Object** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'keynetra-client'
15
+
16
+ instance = KeyNetra::SuccessResponseAuthModelOut.new(
17
+ data: null,
18
+ meta: null,
19
+ error: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # KeyNetra::SuccessResponseBatchAccessResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**BatchAccessResponse**](BatchAccessResponse.md) | | |
8
+ | **meta** | [**MetaBody**](MetaBody.md) | | [optional] |
9
+ | **error** | **Object** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'keynetra-client'
15
+
16
+ instance = KeyNetra::SuccessResponseBatchAccessResponse.new(
17
+ data: null,
18
+ meta: null,
19
+ error: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # KeyNetra::SuccessResponseDictStrAny
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | **Hash&lt;String, Object&gt;** | | |
8
+ | **meta** | [**MetaBody**](MetaBody.md) | | [optional] |
9
+ | **error** | **Object** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'keynetra-client'
15
+
16
+ instance = KeyNetra::SuccessResponseDictStrAny.new(
17
+ data: null,
18
+ meta: null,
19
+ error: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # KeyNetra::SuccessResponseDictStrInt
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | **Hash&lt;String, Integer&gt;** | | |
8
+ | **meta** | [**MetaBody**](MetaBody.md) | | [optional] |
9
+ | **error** | **Object** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'keynetra-client'
15
+
16
+ instance = KeyNetra::SuccessResponseDictStrInt.new(
17
+ data: null,
18
+ meta: null,
19
+ error: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # KeyNetra::SuccessResponseDictStrObject
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | **Hash&lt;String, Object&gt;** | | |
8
+ | **meta** | [**MetaBody**](MetaBody.md) | | [optional] |
9
+ | **error** | **Object** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'keynetra-client'
15
+
16
+ instance = KeyNetra::SuccessResponseDictStrObject.new(
17
+ data: null,
18
+ meta: null,
19
+ error: null
20
+ )
21
+ ```
22
+