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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +49 -0
- data/Rakefile +10 -0
- data/docs/ACLCreate.md +28 -0
- data/docs/ACLOut.md +34 -0
- data/docs/AccessApi.md +234 -0
- data/docs/AccessDecisionResponse.md +30 -0
- data/docs/AccessRequest.md +28 -0
- data/docs/AdminLoginRequest.md +20 -0
- data/docs/AdminLoginResponse.md +26 -0
- data/docs/AuditRecordOut.md +42 -0
- data/docs/AuthApi.md +133 -0
- data/docs/AuthModelCreate.md +18 -0
- data/docs/AuthModelOut.md +26 -0
- data/docs/BatchAccessItem.md +20 -0
- data/docs/BatchAccessRequest.md +24 -0
- data/docs/BatchAccessResponse.md +20 -0
- data/docs/BatchAccessResult.md +22 -0
- data/docs/DataValue.md +15 -0
- data/docs/DevApi.md +132 -0
- data/docs/HTTPValidationError.md +18 -0
- data/docs/HealthApi.md +187 -0
- data/docs/ImpactAnalysisRequest.md +18 -0
- data/docs/ImpactAnalysisResponse.md +20 -0
- data/docs/LocationInner.md +15 -0
- data/docs/ManagementApi.md +2096 -0
- data/docs/MetaBody.md +24 -0
- data/docs/PermissionCreate.md +18 -0
- data/docs/PermissionOut.md +20 -0
- data/docs/PermissionUpdate.md +18 -0
- data/docs/PlaygroundApi.md +80 -0
- data/docs/PlaygroundEvaluateRequest.md +20 -0
- data/docs/PlaygroundInput.md +24 -0
- data/docs/PlaygroundPolicy.md +26 -0
- data/docs/PolicyCreate.md +26 -0
- data/docs/PolicyOut.md +28 -0
- data/docs/PolicySimulationInput.md +22 -0
- data/docs/PolicySimulationRequest.md +20 -0
- data/docs/PolicySimulationResponse.md +20 -0
- data/docs/RelationshipCreate.md +26 -0
- data/docs/RelationshipOut.md +28 -0
- data/docs/RoleCreate.md +18 -0
- data/docs/RoleOut.md +20 -0
- data/docs/RoleUpdate.md +18 -0
- data/docs/SimulationResponse.md +30 -0
- data/docs/SuccessResponseACLOut.md +22 -0
- data/docs/SuccessResponseAccessDecisionResponse.md +22 -0
- data/docs/SuccessResponseAdminLoginResponse.md +22 -0
- data/docs/SuccessResponseAuthModelOut.md +22 -0
- data/docs/SuccessResponseBatchAccessResponse.md +22 -0
- data/docs/SuccessResponseDictStrAny.md +22 -0
- data/docs/SuccessResponseDictStrInt.md +22 -0
- data/docs/SuccessResponseDictStrObject.md +22 -0
- data/docs/SuccessResponseDictStrStr.md +22 -0
- data/docs/SuccessResponseDictStrUnionIntStr.md +22 -0
- data/docs/SuccessResponseImpactAnalysisResponse.md +22 -0
- data/docs/SuccessResponseListACLOut.md +22 -0
- data/docs/SuccessResponseListAuditRecordOut.md +22 -0
- data/docs/SuccessResponseListDictStrStr.md +22 -0
- data/docs/SuccessResponseListPermissionOut.md +22 -0
- data/docs/SuccessResponseListPolicyOut.md +22 -0
- data/docs/SuccessResponseListRoleOut.md +22 -0
- data/docs/SuccessResponsePermissionOut.md +22 -0
- data/docs/SuccessResponsePolicyOut.md +22 -0
- data/docs/SuccessResponsePolicySimulationResponse.md +22 -0
- data/docs/SuccessResponseRelationshipOut.md +22 -0
- data/docs/SuccessResponseSimulationResponse.md +22 -0
- data/docs/ValidationError.md +26 -0
- data/git_push.sh +57 -0
- data/keynetra-client.gemspec +39 -0
- data/lib/keynetra-client/api/access_api.rb +226 -0
- data/lib/keynetra-client/api/auth_api.rb +154 -0
- data/lib/keynetra-client/api/dev_api.rb +135 -0
- data/lib/keynetra-client/api/health_api.rb +187 -0
- data/lib/keynetra-client/api/management_api.rb +1851 -0
- data/lib/keynetra-client/api/playground_api.rb +88 -0
- data/lib/keynetra-client/api_client.rb +397 -0
- data/lib/keynetra-client/api_error.rb +58 -0
- data/lib/keynetra-client/api_model_base.rb +88 -0
- data/lib/keynetra-client/configuration.rb +315 -0
- data/lib/keynetra-client/models/access_decision_response.rb +242 -0
- data/lib/keynetra-client/models/access_request.rb +219 -0
- data/lib/keynetra-client/models/acl_create.rb +294 -0
- data/lib/keynetra-client/models/acl_out.rb +356 -0
- data/lib/keynetra-client/models/admin_login_request.rb +190 -0
- data/lib/keynetra-client/models/admin_login_response.rb +238 -0
- data/lib/keynetra-client/models/audit_record_out.rb +454 -0
- data/lib/keynetra-client/models/auth_model_create.rb +164 -0
- data/lib/keynetra-client/models/auth_model_out.rb +272 -0
- data/lib/keynetra-client/models/batch_access_item.rb +175 -0
- data/lib/keynetra-client/models/batch_access_request.rb +198 -0
- data/lib/keynetra-client/models/batch_access_response.rb +176 -0
- data/lib/keynetra-client/models/batch_access_result.rb +200 -0
- data/lib/keynetra-client/models/data_value.rb +103 -0
- data/lib/keynetra-client/models/http_validation_error.rb +149 -0
- data/lib/keynetra-client/models/impact_analysis_request.rb +164 -0
- data/lib/keynetra-client/models/impact_analysis_response.rb +160 -0
- data/lib/keynetra-client/models/location_inner.rb +103 -0
- data/lib/keynetra-client/models/meta_body.rb +179 -0
- data/lib/keynetra-client/models/permission_create.rb +164 -0
- data/lib/keynetra-client/models/permission_out.rb +190 -0
- data/lib/keynetra-client/models/permission_update.rb +164 -0
- data/lib/keynetra-client/models/playground_evaluate_request.rb +192 -0
- data/lib/keynetra-client/models/playground_input.rb +182 -0
- data/lib/keynetra-client/models/playground_policy.rb +207 -0
- data/lib/keynetra-client/models/policy_create.rb +208 -0
- data/lib/keynetra-client/models/policy_out.rb +281 -0
- data/lib/keynetra-client/models/policy_simulation_input.rb +172 -0
- data/lib/keynetra-client/models/policy_simulation_request.rb +158 -0
- data/lib/keynetra-client/models/policy_simulation_response.rb +194 -0
- data/lib/keynetra-client/models/relationship_create.rb +268 -0
- data/lib/keynetra-client/models/relationship_out.rb +294 -0
- data/lib/keynetra-client/models/role_create.rb +164 -0
- data/lib/keynetra-client/models/role_out.rb +190 -0
- data/lib/keynetra-client/models/role_update.rb +164 -0
- data/lib/keynetra-client/models/simulation_response.rb +244 -0
- data/lib/keynetra-client/models/success_response_access_decision_response.rb +182 -0
- data/lib/keynetra-client/models/success_response_acl_out.rb +182 -0
- data/lib/keynetra-client/models/success_response_admin_login_response.rb +182 -0
- data/lib/keynetra-client/models/success_response_auth_model_out.rb +182 -0
- data/lib/keynetra-client/models/success_response_batch_access_response.rb +182 -0
- data/lib/keynetra-client/models/success_response_dict_str_any.rb +184 -0
- data/lib/keynetra-client/models/success_response_dict_str_int.rb +184 -0
- data/lib/keynetra-client/models/success_response_dict_str_object.rb +184 -0
- data/lib/keynetra-client/models/success_response_dict_str_str.rb +184 -0
- data/lib/keynetra-client/models/success_response_dict_str_union_int_str.rb +184 -0
- data/lib/keynetra-client/models/success_response_impact_analysis_response.rb +182 -0
- data/lib/keynetra-client/models/success_response_list_acl_out.rb +184 -0
- data/lib/keynetra-client/models/success_response_list_audit_record_out.rb +184 -0
- data/lib/keynetra-client/models/success_response_list_dict_str_str.rb +184 -0
- data/lib/keynetra-client/models/success_response_list_permission_out.rb +184 -0
- data/lib/keynetra-client/models/success_response_list_policy_out.rb +184 -0
- data/lib/keynetra-client/models/success_response_list_role_out.rb +184 -0
- data/lib/keynetra-client/models/success_response_permission_out.rb +182 -0
- data/lib/keynetra-client/models/success_response_policy_out.rb +182 -0
- data/lib/keynetra-client/models/success_response_policy_simulation_response.rb +182 -0
- data/lib/keynetra-client/models/success_response_relationship_out.rb +182 -0
- data/lib/keynetra-client/models/success_response_simulation_response.rb +182 -0
- data/lib/keynetra-client/models/validation_error.rb +237 -0
- data/lib/keynetra-client/version.rb +15 -0
- data/lib/keynetra-client.rb +105 -0
- data/spec/api/access_api_spec.rb +70 -0
- data/spec/api/auth_api_spec.rb +57 -0
- data/spec/api/dev_api_spec.rb +56 -0
- data/spec/api/health_api_spec.rb +65 -0
- data/spec/api/management_api_spec.rb +361 -0
- data/spec/api/playground_api_spec.rb +46 -0
- data/spec/models/access_decision_response_spec.rb +72 -0
- data/spec/models/access_request_spec.rb +66 -0
- data/spec/models/acl_create_spec.rb +66 -0
- data/spec/models/acl_out_spec.rb +84 -0
- data/spec/models/admin_login_request_spec.rb +42 -0
- data/spec/models/admin_login_response_spec.rb +60 -0
- data/spec/models/audit_record_out_spec.rb +108 -0
- data/spec/models/auth_model_create_spec.rb +36 -0
- data/spec/models/auth_model_out_spec.rb +60 -0
- data/spec/models/batch_access_item_spec.rb +42 -0
- data/spec/models/batch_access_request_spec.rb +54 -0
- data/spec/models/batch_access_response_spec.rb +42 -0
- data/spec/models/batch_access_result_spec.rb +48 -0
- data/spec/models/data_value_spec.rb +21 -0
- data/spec/models/http_validation_error_spec.rb +36 -0
- data/spec/models/impact_analysis_request_spec.rb +36 -0
- data/spec/models/impact_analysis_response_spec.rb +42 -0
- data/spec/models/location_inner_spec.rb +21 -0
- data/spec/models/meta_body_spec.rb +54 -0
- data/spec/models/permission_create_spec.rb +36 -0
- data/spec/models/permission_out_spec.rb +42 -0
- data/spec/models/permission_update_spec.rb +36 -0
- data/spec/models/playground_evaluate_request_spec.rb +42 -0
- data/spec/models/playground_input_spec.rb +54 -0
- data/spec/models/playground_policy_spec.rb +60 -0
- data/spec/models/policy_create_spec.rb +60 -0
- data/spec/models/policy_out_spec.rb +66 -0
- data/spec/models/policy_simulation_input_spec.rb +48 -0
- data/spec/models/policy_simulation_request_spec.rb +42 -0
- data/spec/models/policy_simulation_response_spec.rb +42 -0
- data/spec/models/relationship_create_spec.rb +60 -0
- data/spec/models/relationship_out_spec.rb +66 -0
- data/spec/models/role_create_spec.rb +36 -0
- data/spec/models/role_out_spec.rb +42 -0
- data/spec/models/role_update_spec.rb +36 -0
- data/spec/models/simulation_response_spec.rb +72 -0
- data/spec/models/success_response_access_decision_response_spec.rb +48 -0
- data/spec/models/success_response_acl_out_spec.rb +48 -0
- data/spec/models/success_response_admin_login_response_spec.rb +48 -0
- data/spec/models/success_response_auth_model_out_spec.rb +48 -0
- data/spec/models/success_response_batch_access_response_spec.rb +48 -0
- data/spec/models/success_response_dict_str_any_spec.rb +48 -0
- data/spec/models/success_response_dict_str_int_spec.rb +48 -0
- data/spec/models/success_response_dict_str_object_spec.rb +48 -0
- data/spec/models/success_response_dict_str_str_spec.rb +48 -0
- data/spec/models/success_response_dict_str_union_int_str_spec.rb +48 -0
- data/spec/models/success_response_impact_analysis_response_spec.rb +48 -0
- data/spec/models/success_response_list_acl_out_spec.rb +48 -0
- data/spec/models/success_response_list_audit_record_out_spec.rb +48 -0
- data/spec/models/success_response_list_dict_str_str_spec.rb +48 -0
- data/spec/models/success_response_list_permission_out_spec.rb +48 -0
- data/spec/models/success_response_list_policy_out_spec.rb +48 -0
- data/spec/models/success_response_list_role_out_spec.rb +48 -0
- data/spec/models/success_response_permission_out_spec.rb +48 -0
- data/spec/models/success_response_policy_out_spec.rb +48 -0
- data/spec/models/success_response_policy_simulation_response_spec.rb +48 -0
- data/spec/models/success_response_relationship_out_spec.rb +48 -0
- data/spec/models/success_response_simulation_response_spec.rb +48 -0
- data/spec/models/validation_error_spec.rb +60 -0
- data/spec/spec_helper.rb +111 -0
- 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<PlaygroundPolicy>**](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<String, Object>** | | [optional] |
|
|
8
|
+
| **resource** | **Hash<String, Object>** | | [optional] |
|
|
9
|
+
| **action** | **String** | | [optional][default to ''] |
|
|
10
|
+
| **context** | **Hash<String, Object>** | | [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 'allow'] |
|
|
9
|
+
| **priority** | **Integer** | | [optional][default to 100] |
|
|
10
|
+
| **policy_id** | **String** | | [optional] |
|
|
11
|
+
| **conditions** | **Hash<String, Object>** | | [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 'allow'] |
|
|
9
|
+
| **priority** | **Integer** | | [optional][default to 100] |
|
|
10
|
+
| **state** | **String** | | [optional][default to 'active'] |
|
|
11
|
+
| **conditions** | **Hash<String, Object>** | | [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 'active'] |
|
|
12
|
+
| **conditions** | **Hash<String, Object>** | | |
|
|
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<String, Object>** | | [optional] |
|
|
9
|
+
| **role_change** | **Hash<String, Object>** | | [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<String, Object>** | | [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<String, Object>** | | |
|
|
8
|
+
| **decision_after** | **Hash<String, Object>** | | |
|
|
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
|
+
|
data/docs/RoleCreate.md
ADDED
|
@@ -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
|
+
|
data/docs/RoleUpdate.md
ADDED
|
@@ -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<String>** | | |
|
|
9
|
+
| **reason** | **String** | | [optional] |
|
|
10
|
+
| **policy_id** | **String** | | [optional] |
|
|
11
|
+
| **explain_trace** | **Array<Hash<String, Object>>** | | [optional] |
|
|
12
|
+
| **failed_conditions** | **Array<String>** | | [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<String, Object>** | | |
|
|
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<String, Integer>** | | |
|
|
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<String, Object>** | | |
|
|
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
|
+
|