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,361 @@
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 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for KeyNetra::ManagementApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'ManagementApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = KeyNetra::ManagementApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ManagementApi' do
30
+ it 'should create an instance of ManagementApi' do
31
+ expect(@api_instance).to be_instance_of(KeyNetra::ManagementApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for add_permission_to_role_roles_role_id_permissions_permission_id_post
36
+ # Add Permission To Role
37
+ # @param role_id
38
+ # @param permission_id
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [SuccessResponsePermissionOut]
41
+ describe 'add_permission_to_role_roles_role_id_permissions_permission_id_post test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
+ end
45
+ end
46
+
47
+ # unit tests for create_acl_entry_acl_post
48
+ # Create Acl Entry
49
+ # @param acl_create
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [SuccessResponseACLOut]
52
+ describe 'create_acl_entry_acl_post test' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
55
+ end
56
+ end
57
+
58
+ # unit tests for create_auth_model_auth_model_post
59
+ # Create Auth Model
60
+ # @param auth_model_create
61
+ # @param [Hash] opts the optional parameters
62
+ # @return [SuccessResponseAuthModelOut]
63
+ describe 'create_auth_model_auth_model_post test' do
64
+ it 'should work' do
65
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
66
+ end
67
+ end
68
+
69
+ # unit tests for create_permission_permissions_post
70
+ # Create Permission
71
+ # @param permission_create
72
+ # @param [Hash] opts the optional parameters
73
+ # @return [PermissionOut]
74
+ describe 'create_permission_permissions_post test' do
75
+ it 'should work' do
76
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
77
+ end
78
+ end
79
+
80
+ # unit tests for create_policy_from_dsl_policies_dsl_post
81
+ # Create Policy From Dsl
82
+ # @param dsl
83
+ # @param [Hash] opts the optional parameters
84
+ # @return [SuccessResponsePolicyOut]
85
+ describe 'create_policy_from_dsl_policies_dsl_post test' do
86
+ it 'should work' do
87
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
88
+ end
89
+ end
90
+
91
+ # unit tests for create_policy_policies_post
92
+ # Create Policy
93
+ # @param policy_create
94
+ # @param [Hash] opts the optional parameters
95
+ # @return [SuccessResponsePolicyOut]
96
+ describe 'create_policy_policies_post test' do
97
+ it 'should work' do
98
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
99
+ end
100
+ end
101
+
102
+ # unit tests for create_relationship_relationships_post
103
+ # Create Relationship
104
+ # @param relationship_create
105
+ # @param [Hash] opts the optional parameters
106
+ # @return [SuccessResponseRelationshipOut]
107
+ describe 'create_relationship_relationships_post test' do
108
+ it 'should work' do
109
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
110
+ end
111
+ end
112
+
113
+ # unit tests for create_role_roles_post
114
+ # Create Role
115
+ # @param role_create
116
+ # @param [Hash] opts the optional parameters
117
+ # @return [RoleOut]
118
+ describe 'create_role_roles_post test' do
119
+ it 'should work' do
120
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
121
+ end
122
+ end
123
+
124
+ # unit tests for delete_acl_entry_acl_acl_id_delete
125
+ # Delete Acl Entry
126
+ # @param acl_id
127
+ # @param [Hash] opts the optional parameters
128
+ # @return [SuccessResponseDictStrInt]
129
+ describe 'delete_acl_entry_acl_acl_id_delete test' do
130
+ it 'should work' do
131
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
132
+ end
133
+ end
134
+
135
+ # unit tests for delete_permission_permissions_permission_id_delete
136
+ # Delete Permission
137
+ # @param permission_id
138
+ # @param [Hash] opts the optional parameters
139
+ # @return [SuccessResponseDictStrInt]
140
+ describe 'delete_permission_permissions_permission_id_delete test' do
141
+ it 'should work' do
142
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
143
+ end
144
+ end
145
+
146
+ # unit tests for delete_policy_policies_policy_key_delete
147
+ # Delete Policy
148
+ # @param policy_key
149
+ # @param [Hash] opts the optional parameters
150
+ # @return [SuccessResponseDictStrStr]
151
+ describe 'delete_policy_policies_policy_key_delete test' do
152
+ it 'should work' do
153
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
154
+ end
155
+ end
156
+
157
+ # unit tests for delete_role_roles_role_id_delete
158
+ # Delete Role
159
+ # @param role_id
160
+ # @param [Hash] opts the optional parameters
161
+ # @return [SuccessResponseDictStrInt]
162
+ describe 'delete_role_roles_role_id_delete test' do
163
+ it 'should work' do
164
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
165
+ end
166
+ end
167
+
168
+ # unit tests for get_auth_model_auth_model_get
169
+ # Get Auth Model
170
+ # @param [Hash] opts the optional parameters
171
+ # @return [SuccessResponseAuthModelOut]
172
+ describe 'get_auth_model_auth_model_get test' do
173
+ it 'should work' do
174
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
175
+ end
176
+ end
177
+
178
+ # unit tests for impact_analysis_impact_analysis_post
179
+ # Impact Analysis
180
+ # @param impact_analysis_request
181
+ # @param [Hash] opts the optional parameters
182
+ # @return [SuccessResponseImpactAnalysisResponse]
183
+ describe 'impact_analysis_impact_analysis_post test' do
184
+ it 'should work' do
185
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
186
+ end
187
+ end
188
+
189
+ # unit tests for list_acl_entries_acl_resource_type_resource_id_get
190
+ # List Acl Entries
191
+ # @param resource_type
192
+ # @param resource_id
193
+ # @param [Hash] opts the optional parameters
194
+ # @return [SuccessResponseListACLOut]
195
+ describe 'list_acl_entries_acl_resource_type_resource_id_get test' do
196
+ it 'should work' do
197
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
198
+ end
199
+ end
200
+
201
+ # unit tests for list_audit_logs_audit_get
202
+ # List Audit Logs
203
+ # @param [Hash] opts the optional parameters
204
+ # @option opts [Integer] :limit
205
+ # @option opts [String] :cursor
206
+ # @option opts [String] :user_id
207
+ # @option opts [String] :resource_id
208
+ # @option opts [String] :decision
209
+ # @option opts [Time] :start_time
210
+ # @option opts [Time] :end_time
211
+ # @return [SuccessResponseListAuditRecordOut]
212
+ describe 'list_audit_logs_audit_get test' do
213
+ it 'should work' do
214
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
215
+ end
216
+ end
217
+
218
+ # unit tests for list_permission_roles_permissions_permission_id_roles_get
219
+ # List Permission Roles
220
+ # @param permission_id
221
+ # @param [Hash] opts the optional parameters
222
+ # @return [SuccessResponseListRoleOut]
223
+ describe 'list_permission_roles_permissions_permission_id_roles_get test' do
224
+ it 'should work' do
225
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
226
+ end
227
+ end
228
+
229
+ # unit tests for list_permissions_permissions_get
230
+ # List Permissions
231
+ # @param [Hash] opts the optional parameters
232
+ # @option opts [Integer] :limit
233
+ # @option opts [String] :cursor
234
+ # @return [SuccessResponseListPermissionOut]
235
+ describe 'list_permissions_permissions_get test' do
236
+ it 'should work' do
237
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
238
+ end
239
+ end
240
+
241
+ # unit tests for list_policies_policies_get
242
+ # List Policies
243
+ # @param [Hash] opts the optional parameters
244
+ # @option opts [Integer] :limit
245
+ # @option opts [String] :cursor
246
+ # @return [SuccessResponseListPolicyOut]
247
+ describe 'list_policies_policies_get test' do
248
+ it 'should work' do
249
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
250
+ end
251
+ end
252
+
253
+ # unit tests for list_relationships_relationships_get
254
+ # List Relationships
255
+ # @param subject_type
256
+ # @param subject_id
257
+ # @param [Hash] opts the optional parameters
258
+ # @option opts [Integer] :limit
259
+ # @option opts [String] :cursor
260
+ # @return [SuccessResponseListDictStrStr]
261
+ describe 'list_relationships_relationships_get test' do
262
+ it 'should work' do
263
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
264
+ end
265
+ end
266
+
267
+ # unit tests for list_role_permissions_roles_role_id_permissions_get
268
+ # List Role Permissions
269
+ # @param role_id
270
+ # @param [Hash] opts the optional parameters
271
+ # @return [SuccessResponseListPermissionOut]
272
+ describe 'list_role_permissions_roles_role_id_permissions_get test' do
273
+ it 'should work' do
274
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
275
+ end
276
+ end
277
+
278
+ # unit tests for list_roles_roles_get
279
+ # List Roles
280
+ # @param [Hash] opts the optional parameters
281
+ # @option opts [Integer] :limit
282
+ # @option opts [String] :cursor
283
+ # @return [SuccessResponseListRoleOut]
284
+ describe 'list_roles_roles_get test' do
285
+ it 'should work' do
286
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
287
+ end
288
+ end
289
+
290
+ # unit tests for remove_permission_from_role_roles_role_id_permissions_permission_id_delete
291
+ # Remove Permission From Role
292
+ # @param role_id
293
+ # @param permission_id
294
+ # @param [Hash] opts the optional parameters
295
+ # @return [SuccessResponseDictStrInt]
296
+ describe 'remove_permission_from_role_roles_role_id_permissions_permission_id_delete test' do
297
+ it 'should work' do
298
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
299
+ end
300
+ end
301
+
302
+ # unit tests for rollback_policy_policies_policy_key_rollback_version_post
303
+ # Rollback Policy
304
+ # @param policy_key
305
+ # @param version
306
+ # @param [Hash] opts the optional parameters
307
+ # @return [SuccessResponseDictStrUnionIntStr]
308
+ describe 'rollback_policy_policies_policy_key_rollback_version_post test' do
309
+ it 'should work' do
310
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
311
+ end
312
+ end
313
+
314
+ # unit tests for simulate_policy_simulate_policy_post
315
+ # Simulate Policy
316
+ # @param policy_simulation_request
317
+ # @param [Hash] opts the optional parameters
318
+ # @return [SuccessResponsePolicySimulationResponse]
319
+ describe 'simulate_policy_simulate_policy_post test' do
320
+ it 'should work' do
321
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
322
+ end
323
+ end
324
+
325
+ # unit tests for update_permission_permissions_permission_id_put
326
+ # Update Permission
327
+ # @param permission_id
328
+ # @param permission_update
329
+ # @param [Hash] opts the optional parameters
330
+ # @return [PermissionOut]
331
+ describe 'update_permission_permissions_permission_id_put test' do
332
+ it 'should work' do
333
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
334
+ end
335
+ end
336
+
337
+ # unit tests for update_policy_policies_policy_key_put
338
+ # Update Policy
339
+ # @param policy_key
340
+ # @param policy_create
341
+ # @param [Hash] opts the optional parameters
342
+ # @return [SuccessResponsePolicyOut]
343
+ describe 'update_policy_policies_policy_key_put test' do
344
+ it 'should work' do
345
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
346
+ end
347
+ end
348
+
349
+ # unit tests for update_role_roles_role_id_put
350
+ # Update Role
351
+ # @param role_id
352
+ # @param role_update
353
+ # @param [Hash] opts the optional parameters
354
+ # @return [RoleOut]
355
+ describe 'update_role_roles_role_id_put test' do
356
+ it 'should work' do
357
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
358
+ end
359
+ end
360
+
361
+ end
@@ -0,0 +1,46 @@
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 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for KeyNetra::PlaygroundApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'PlaygroundApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = KeyNetra::PlaygroundApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of PlaygroundApi' do
30
+ it 'should create an instance of PlaygroundApi' do
31
+ expect(@api_instance).to be_instance_of(KeyNetra::PlaygroundApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for evaluate_playground_evaluate_post
36
+ # Evaluate
37
+ # @param playground_evaluate_request
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [SuccessResponseDictStrAny]
40
+ describe 'evaluate_playground_evaluate_post test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
+ end
44
+ end
45
+
46
+ end
@@ -0,0 +1,72 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for KeyNetra::AccessDecisionResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe KeyNetra::AccessDecisionResponse do
21
+ #let(:instance) { KeyNetra::AccessDecisionResponse.new }
22
+
23
+ describe 'test an instance of AccessDecisionResponse' do
24
+ it 'should create an instance of AccessDecisionResponse' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(KeyNetra::AccessDecisionResponse)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "allowed"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "decision"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "matched_policies"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "reason"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
54
+ describe 'test attribute "policy_id"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
60
+ describe 'test attribute "explain_trace"' do
61
+ it 'should work' do
62
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
63
+ end
64
+ end
65
+
66
+ describe 'test attribute "revision"' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
+ end
70
+ end
71
+
72
+ end
@@ -0,0 +1,66 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for KeyNetra::AccessRequest
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe KeyNetra::AccessRequest do
21
+ #let(:instance) { KeyNetra::AccessRequest.new }
22
+
23
+ describe 'test an instance of AccessRequest' do
24
+ it 'should create an instance of AccessRequest' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(KeyNetra::AccessRequest)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "user"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "action"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "resource"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "context"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
54
+ describe 'test attribute "consistency"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
60
+ describe 'test attribute "revision"' do
61
+ it 'should work' do
62
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
63
+ end
64
+ end
65
+
66
+ end
@@ -0,0 +1,66 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for KeyNetra::ACLCreate
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe KeyNetra::ACLCreate do
21
+ #let(:instance) { KeyNetra::ACLCreate.new }
22
+
23
+ describe 'test an instance of ACLCreate' do
24
+ it 'should create an instance of ACLCreate' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(KeyNetra::ACLCreate)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "subject_type"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "subject_id"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "resource_type"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "resource_id"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
54
+ describe 'test attribute "action"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
60
+ describe 'test attribute "effect"' do
61
+ it 'should work' do
62
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
63
+ end
64
+ end
65
+
66
+ end
@@ -0,0 +1,84 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for KeyNetra::ACLOut
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe KeyNetra::ACLOut do
21
+ #let(:instance) { KeyNetra::ACLOut.new }
22
+
23
+ describe 'test an instance of ACLOut' do
24
+ it 'should create an instance of ACLOut' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(KeyNetra::ACLOut)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "subject_type"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "subject_id"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ describe 'test attribute "resource_type"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "resource_id"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
54
+ describe 'test attribute "action"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
60
+ describe 'test attribute "effect"' do
61
+ it 'should work' do
62
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
63
+ end
64
+ end
65
+
66
+ describe 'test attribute "id"' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
+ end
70
+ end
71
+
72
+ describe 'test attribute "tenant_id"' do
73
+ it 'should work' do
74
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
75
+ end
76
+ end
77
+
78
+ describe 'test attribute "created_at"' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
81
+ end
82
+ end
83
+
84
+ end