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
@@ -0,0 +1,22 @@
1
+ # KeyNetra::SuccessResponseDictStrStr
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | **Hash<String, String>** | | |
8
+ | **meta** | [**MetaBody**](MetaBody.md) | | [optional] |
9
+ | **error** | **Object** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'keynetra-client'
15
+
16
+ instance = KeyNetra::SuccessResponseDictStrStr.new(
17
+ data: null,
18
+ meta: null,
19
+ error: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # KeyNetra::SuccessResponseDictStrUnionIntStr
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Hash<String, DataValue>**](DataValue.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::SuccessResponseDictStrUnionIntStr.new(
17
+ data: null,
18
+ meta: null,
19
+ error: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # KeyNetra::SuccessResponseImpactAnalysisResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**ImpactAnalysisResponse**](ImpactAnalysisResponse.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::SuccessResponseImpactAnalysisResponse.new(
17
+ data: null,
18
+ meta: null,
19
+ error: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # KeyNetra::SuccessResponseListACLOut
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<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::SuccessResponseListACLOut.new(
17
+ data: null,
18
+ meta: null,
19
+ error: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # KeyNetra::SuccessResponseListAuditRecordOut
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<AuditRecordOut>**](AuditRecordOut.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::SuccessResponseListAuditRecordOut.new(
17
+ data: null,
18
+ meta: null,
19
+ error: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # KeyNetra::SuccessResponseListDictStrStr
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | **Array<Hash<String, String>>** | | |
8
+ | **meta** | [**MetaBody**](MetaBody.md) | | [optional] |
9
+ | **error** | **Object** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'keynetra-client'
15
+
16
+ instance = KeyNetra::SuccessResponseListDictStrStr.new(
17
+ data: null,
18
+ meta: null,
19
+ error: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # KeyNetra::SuccessResponseListPermissionOut
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<PermissionOut>**](PermissionOut.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::SuccessResponseListPermissionOut.new(
17
+ data: null,
18
+ meta: null,
19
+ error: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # KeyNetra::SuccessResponseListPolicyOut
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<PolicyOut>**](PolicyOut.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::SuccessResponseListPolicyOut.new(
17
+ data: null,
18
+ meta: null,
19
+ error: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # KeyNetra::SuccessResponseListRoleOut
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<RoleOut>**](RoleOut.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::SuccessResponseListRoleOut.new(
17
+ data: null,
18
+ meta: null,
19
+ error: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # KeyNetra::SuccessResponsePermissionOut
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**PermissionOut**](PermissionOut.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::SuccessResponsePermissionOut.new(
17
+ data: null,
18
+ meta: null,
19
+ error: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # KeyNetra::SuccessResponsePolicyOut
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**PolicyOut**](PolicyOut.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::SuccessResponsePolicyOut.new(
17
+ data: null,
18
+ meta: null,
19
+ error: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # KeyNetra::SuccessResponsePolicySimulationResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**PolicySimulationResponse**](PolicySimulationResponse.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::SuccessResponsePolicySimulationResponse.new(
17
+ data: null,
18
+ meta: null,
19
+ error: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # KeyNetra::SuccessResponseRelationshipOut
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**RelationshipOut**](RelationshipOut.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::SuccessResponseRelationshipOut.new(
17
+ data: null,
18
+ meta: null,
19
+ error: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # KeyNetra::SuccessResponseSimulationResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**SimulationResponse**](SimulationResponse.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::SuccessResponseSimulationResponse.new(
17
+ data: null,
18
+ meta: null,
19
+ error: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,26 @@
1
+ # KeyNetra::ValidationError
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **loc** | [**Array<LocationInner>**](LocationInner.md) | | |
8
+ | **msg** | **String** | | |
9
+ | **type** | **String** | | |
10
+ | **input** | **Object** | | [optional] |
11
+ | **ctx** | **Object** | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'keynetra-client'
17
+
18
+ instance = KeyNetra::ValidationError.new(
19
+ loc: null,
20
+ msg: null,
21
+ type: null,
22
+ input: null,
23
+ ctx: null
24
+ )
25
+ ```
26
+
data/git_push.sh ADDED
@@ -0,0 +1,57 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
15
+
16
+ if [ "$git_user_id" = "" ]; then
17
+ git_user_id="GIT_USER_ID"
18
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
+ fi
20
+
21
+ if [ "$git_repo_id" = "" ]; then
22
+ git_repo_id="GIT_REPO_ID"
23
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
+ fi
25
+
26
+ if [ "$release_note" = "" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "$release_note"
39
+
40
+ # Sets the new remote
41
+ git_remote=$(git remote)
42
+ if [ "$git_remote" = "" ]; then # git remote not defined
43
+
44
+ if [ "$GIT_TOKEN" = "" ]; then
45
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
+ else
48
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
+ fi
50
+
51
+ fi
52
+
53
+ git pull origin master
54
+
55
+ # Pushes (Forces) the changes in the local repository up to the remote repository
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
+ git push origin master 2>&1 | grep -v 'To https'
@@ -0,0 +1,39 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #KeyNetra
5
+
6
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 0.1.1
9
+
10
+ Generated by: https://openapi-generator.tech
11
+ Generator version: 7.21.0
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "keynetra-client/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "keynetra-client"
20
+ s.version = KeyNetra::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["SainathSapa"]
23
+ s.email = ["info.djsai@gmail.com"]
24
+ s.homepage = "https://github.com/keynetra/keynetra-client-ruby"
25
+ s.summary = "Official Ruby Client SDK for the KeyNetra authorization platform."
26
+ s.description = "Official Ruby SDK for the KeyNetra authorization platform."
27
+ s.license = "Apache-2.0"
28
+ s.required_ruby_version = ">= 2.7"
29
+ s.metadata = {}
30
+
31
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
32
+
33
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
+
35
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
36
+ s.test_files = `find spec/*`.split("\n")
37
+ s.executables = []
38
+ s.require_paths = ["lib"]
39
+ end
@@ -0,0 +1,226 @@
1
+ =begin
2
+ #KeyNetra
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: 0.1.1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.21.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module KeyNetra
16
+ class AccessApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Check Access Batch
23
+ # @param batch_access_request [BatchAccessRequest]
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :policy_set (default to 'active')
26
+ # @return [SuccessResponseBatchAccessResponse]
27
+ def check_access_batch_check_access_batch_post(batch_access_request, opts = {})
28
+ data, _status_code, _headers = check_access_batch_check_access_batch_post_with_http_info(batch_access_request, opts)
29
+ data
30
+ end
31
+
32
+ # Check Access Batch
33
+ # @param batch_access_request [BatchAccessRequest]
34
+ # @param [Hash] opts the optional parameters
35
+ # @option opts [String] :policy_set (default to 'active')
36
+ # @return [Array<(SuccessResponseBatchAccessResponse, Integer, Hash)>] SuccessResponseBatchAccessResponse data, response status code and response headers
37
+ def check_access_batch_check_access_batch_post_with_http_info(batch_access_request, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: AccessApi.check_access_batch_check_access_batch_post ...'
40
+ end
41
+ # verify the required parameter 'batch_access_request' is set
42
+ if @api_client.config.client_side_validation && batch_access_request.nil?
43
+ fail ArgumentError, "Missing the required parameter 'batch_access_request' when calling AccessApi.check_access_batch_check_access_batch_post"
44
+ end
45
+ # resource path
46
+ local_var_path = '/check-access-batch'
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+ query_params[:'policy_set'] = opts[:'policy_set'] if !opts[:'policy_set'].nil?
51
+
52
+ # header parameters
53
+ header_params = opts[:header_params] || {}
54
+ # HTTP header 'Accept' (if needed)
55
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
56
+ # HTTP header 'Content-Type'
57
+ content_type = @api_client.select_header_content_type(['application/json'])
58
+ if !content_type.nil?
59
+ header_params['Content-Type'] = content_type
60
+ end
61
+
62
+ # form parameters
63
+ form_params = opts[:form_params] || {}
64
+
65
+ # http body (model)
66
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_access_request)
67
+
68
+ # return_type
69
+ return_type = opts[:debug_return_type] || 'SuccessResponseBatchAccessResponse'
70
+
71
+ # auth_names
72
+ auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
73
+
74
+ new_options = opts.merge(
75
+ :operation => :"AccessApi.check_access_batch_check_access_batch_post",
76
+ :header_params => header_params,
77
+ :query_params => query_params,
78
+ :form_params => form_params,
79
+ :body => post_body,
80
+ :auth_names => auth_names,
81
+ :return_type => return_type
82
+ )
83
+
84
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
85
+ if @api_client.config.debugging
86
+ @api_client.config.logger.debug "API called: AccessApi#check_access_batch_check_access_batch_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
+ end
88
+ return data, status_code, headers
89
+ end
90
+
91
+ # Check Access
92
+ # @param access_request [AccessRequest]
93
+ # @param [Hash] opts the optional parameters
94
+ # @option opts [String] :policy_set (default to 'active')
95
+ # @return [SuccessResponseAccessDecisionResponse]
96
+ def check_access_check_access_post(access_request, opts = {})
97
+ data, _status_code, _headers = check_access_check_access_post_with_http_info(access_request, opts)
98
+ data
99
+ end
100
+
101
+ # Check Access
102
+ # @param access_request [AccessRequest]
103
+ # @param [Hash] opts the optional parameters
104
+ # @option opts [String] :policy_set (default to 'active')
105
+ # @return [Array<(SuccessResponseAccessDecisionResponse, Integer, Hash)>] SuccessResponseAccessDecisionResponse data, response status code and response headers
106
+ def check_access_check_access_post_with_http_info(access_request, opts = {})
107
+ if @api_client.config.debugging
108
+ @api_client.config.logger.debug 'Calling API: AccessApi.check_access_check_access_post ...'
109
+ end
110
+ # verify the required parameter 'access_request' is set
111
+ if @api_client.config.client_side_validation && access_request.nil?
112
+ fail ArgumentError, "Missing the required parameter 'access_request' when calling AccessApi.check_access_check_access_post"
113
+ end
114
+ # resource path
115
+ local_var_path = '/check-access'
116
+
117
+ # query parameters
118
+ query_params = opts[:query_params] || {}
119
+ query_params[:'policy_set'] = opts[:'policy_set'] if !opts[:'policy_set'].nil?
120
+
121
+ # header parameters
122
+ header_params = opts[:header_params] || {}
123
+ # HTTP header 'Accept' (if needed)
124
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
125
+ # HTTP header 'Content-Type'
126
+ content_type = @api_client.select_header_content_type(['application/json'])
127
+ if !content_type.nil?
128
+ header_params['Content-Type'] = content_type
129
+ end
130
+
131
+ # form parameters
132
+ form_params = opts[:form_params] || {}
133
+
134
+ # http body (model)
135
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(access_request)
136
+
137
+ # return_type
138
+ return_type = opts[:debug_return_type] || 'SuccessResponseAccessDecisionResponse'
139
+
140
+ # auth_names
141
+ auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
142
+
143
+ new_options = opts.merge(
144
+ :operation => :"AccessApi.check_access_check_access_post",
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(:POST, local_var_path, new_options)
154
+ if @api_client.config.debugging
155
+ @api_client.config.logger.debug "API called: AccessApi#check_access_check_access_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
156
+ end
157
+ return data, status_code, headers
158
+ end
159
+
160
+ # Simulate
161
+ # @param access_request [AccessRequest]
162
+ # @param [Hash] opts the optional parameters
163
+ # @return [SuccessResponseSimulationResponse]
164
+ def simulate_simulate_post(access_request, opts = {})
165
+ data, _status_code, _headers = simulate_simulate_post_with_http_info(access_request, opts)
166
+ data
167
+ end
168
+
169
+ # Simulate
170
+ # @param access_request [AccessRequest]
171
+ # @param [Hash] opts the optional parameters
172
+ # @return [Array<(SuccessResponseSimulationResponse, Integer, Hash)>] SuccessResponseSimulationResponse data, response status code and response headers
173
+ def simulate_simulate_post_with_http_info(access_request, opts = {})
174
+ if @api_client.config.debugging
175
+ @api_client.config.logger.debug 'Calling API: AccessApi.simulate_simulate_post ...'
176
+ end
177
+ # verify the required parameter 'access_request' is set
178
+ if @api_client.config.client_side_validation && access_request.nil?
179
+ fail ArgumentError, "Missing the required parameter 'access_request' when calling AccessApi.simulate_simulate_post"
180
+ end
181
+ # resource path
182
+ local_var_path = '/simulate'
183
+
184
+ # query parameters
185
+ query_params = opts[:query_params] || {}
186
+
187
+ # header parameters
188
+ header_params = opts[:header_params] || {}
189
+ # HTTP header 'Accept' (if needed)
190
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
191
+ # HTTP header 'Content-Type'
192
+ content_type = @api_client.select_header_content_type(['application/json'])
193
+ if !content_type.nil?
194
+ header_params['Content-Type'] = content_type
195
+ end
196
+
197
+ # form parameters
198
+ form_params = opts[:form_params] || {}
199
+
200
+ # http body (model)
201
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(access_request)
202
+
203
+ # return_type
204
+ return_type = opts[:debug_return_type] || 'SuccessResponseSimulationResponse'
205
+
206
+ # auth_names
207
+ auth_names = opts[:debug_auth_names] || ['APIKeyHeader', 'HTTPBearer']
208
+
209
+ new_options = opts.merge(
210
+ :operation => :"AccessApi.simulate_simulate_post",
211
+ :header_params => header_params,
212
+ :query_params => query_params,
213
+ :form_params => form_params,
214
+ :body => post_body,
215
+ :auth_names => auth_names,
216
+ :return_type => return_type
217
+ )
218
+
219
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
220
+ if @api_client.config.debugging
221
+ @api_client.config.logger.debug "API called: AccessApi#simulate_simulate_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
222
+ end
223
+ return data, status_code, headers
224
+ end
225
+ end
226
+ end